コード例 #1
0
ファイル: manager_test.go プロジェクト: emc-xchallenge/bbs
	"github.com/tedsuo/ifrit"
	"github.com/tedsuo/ifrit/ginkgomon"
)

var _ = Describe("Migration Manager", func() {
	var (
		manager          ifrit.Runner
		migrationProcess ifrit.Process

		logger     *lagertest.TestLogger
		fakeDB     *fakes.FakeDB
		migrations []migration.Migration

		ready          chan struct{}
		signals        chan os.Signal
		runErrChan     chan error
		migrationsDone chan struct{}

		dbVersion     *models.Version
		fakeMigration *migrationfakes.FakeMigration

		storeClient etcd.StoreClient
		cryptor     encryption.Cryptor

		sender *fake.FakeMetricSender
	)

	BeforeEach(func() {
		sender = fake.NewFakeMetricSender()
		metrics.Initialize(sender, nil)
コード例 #2
0
ファイル: manager_test.go プロジェクト: timani/bbs
	"github.com/tedsuo/ifrit"
	"github.com/tedsuo/ifrit/ginkgomon"
)

var _ = Describe("Migration Manager", func() {
	var (
		manager          ifrit.Runner
		migrationProcess ifrit.Process

		logger          *lagertest.TestLogger
		fakeETCDDB      *dbfakes.FakeDB
		etcdStoreClient etcd.StoreClient

		fakeSQLDB *dbfakes.FakeDB
		rawSQLDB  *sql.DB

		migrations []migration.Migration

		migrationsDone chan struct{}

		dbVersion     *models.Version
		fakeMigration *migrationfakes.FakeMigration

		cryptor encryption.Cryptor

		sender *fake.FakeMetricSender
	)

	BeforeEach(func() {
		sender = fake.NewFakeMetricSender()
		metrics.Initialize(sender, nil)