. "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "errors" "os" "provisioner/fs" "provisioner/provisioner" "provisioner/provisioner/commands" "provisioner/provisioner/mocks" ) var _ = Describe("ReplaceDomain", func() { var ( mockCtrl *gomock.Controller mockFS *mocks.MockFS mockCmdRunner *mocks.MockCmdRunner cmd *commands.ReplaceDomain ) BeforeEach(func() { mockCtrl = gomock.NewController(GinkgoT()) mockFS = mocks.NewMockFS(mockCtrl) mockCmdRunner = mocks.NewMockCmdRunner(mockCtrl) cmd = &commands.ReplaceDomain{ FS: mockFS, CmdRunner: mockCmdRunner, NewDomain: "some-new-domain", } }) AfterEach(func() {
"github.com/golang/mock/gomock" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "os" "provisioner/fs" ) var _ = Describe("Provisioner", func() { Describe("#Provision", func() { var ( p *provisioner.Provisioner mockCtrl *gomock.Controller mockCert *mocks.MockCert mockCmdRunner *mocks.MockCmdRunner mockFS *mocks.MockFS mockUI *mocks.MockUI firstCommand *mocks.MockCommand secondCommand *mocks.MockCommand ) BeforeEach(func() { mockCtrl = gomock.NewController(GinkgoT()) mockCert = mocks.NewMockCert(mockCtrl) mockCmdRunner = mocks.NewMockCmdRunner(mockCtrl) mockFS = mocks.NewMockFS(mockCtrl) mockUI = mocks.NewMockUI(mockCtrl) firstCommand = mocks.NewMockCommand(mockCtrl) secondCommand = mocks.NewMockCommand(mockCtrl) p = &provisioner.Provisioner{