testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("unbind-running-security-group command", func() { var ( ui *testterm.FakeUI configRepo core_config.ReadWriter requirementsFactory *testreq.FakeReqFactory fakeSecurityGroupRepo *fakeSecurityGroup.FakeSecurityGroupRepo fakeRunningSecurityGroupsRepo *fakeRunningDefaults.FakeRunningSecurityGroupsRepo ) BeforeEach(func() { ui = &testterm.FakeUI{} configRepo = testconfig.NewRepositoryWithDefaults() requirementsFactory = &testreq.FakeReqFactory{} fakeSecurityGroupRepo = &fakeSecurityGroup.FakeSecurityGroupRepo{} fakeRunningSecurityGroupsRepo = &fakeRunningDefaults.FakeRunningSecurityGroupsRepo{} }) runCommand := func(args ...string) { cmd := NewUnbindFromRunningGroup(ui, configRepo, fakeSecurityGroupRepo, fakeRunningSecurityGroupsRepo) testcmd.RunCommand(cmd, args, requirementsFactory)
testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" . "github.com/nttlabs/cli/testhelpers/matchers" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("unbind-security-group command", func() { var ( ui *testterm.FakeUI securityGroupRepo *fakeSecurityGroup.FakeSecurityGroupRepo orgRepo *fake_org.FakeOrganizationRepository spaceRepo *fakes.FakeSpaceRepository secBinder *fakeBinder.FakeSecurityGroupSpaceBinder requirementsFactory *testreq.FakeReqFactory configRepo core_config.ReadWriter ) BeforeEach(func() { ui = &testterm.FakeUI{} requirementsFactory = &testreq.FakeReqFactory{} securityGroupRepo = &fakeSecurityGroup.FakeSecurityGroupRepo{} orgRepo = &fake_org.FakeOrganizationRepository{} spaceRepo = &fakes.FakeSpaceRepository{} secBinder = &fakeBinder.FakeSecurityGroupSpaceBinder{} configRepo = testconfig.NewRepositoryWithDefaults() })
"github.com/nttlabs/cli/cf/models" testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("list-security-groups command", func() { var ( ui *testterm.FakeUI repo *fakeSecurityGroup.FakeSecurityGroupRepo requirementsFactory *testreq.FakeReqFactory configRepo core_config.ReadWriter ) BeforeEach(func() { ui = &testterm.FakeUI{} requirementsFactory = &testreq.FakeReqFactory{} repo = &fakeSecurityGroup.FakeSecurityGroupRepo{} configRepo = testconfig.NewRepositoryWithDefaults() }) runCommand := func(args ...string) { cmd := NewSecurityGroups(ui, configRepo, repo) testcmd.RunCommand(cmd, args, requirementsFactory) }
"github.com/nttlabs/cli/cf/errors" testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("create-security-group command", func() { var ( ui *testterm.FakeUI securityGroupRepo *fakeSecurityGroup.FakeSecurityGroupRepo requirementsFactory *testreq.FakeReqFactory configRepo core_config.ReadWriter ) BeforeEach(func() { ui = &testterm.FakeUI{} requirementsFactory = &testreq.FakeReqFactory{} securityGroupRepo = &fakeSecurityGroup.FakeSecurityGroupRepo{} configRepo = testconfig.NewRepositoryWithDefaults() }) runCommand := func(args ...string) { cmd := NewCreateSecurityGroup(ui, configRepo, securityGroupRepo) testcmd.RunCommand(cmd, args, requirementsFactory) }
"github.com/nttlabs/cli/cf/models" testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("delete-security-group command", func() { var ( ui *testterm.FakeUI securityGroupRepo *fakeSecurityGroup.FakeSecurityGroupRepo requirementsFactory *testreq.FakeReqFactory configRepo core_config.ReadWriter ) BeforeEach(func() { ui = &testterm.FakeUI{} requirementsFactory = &testreq.FakeReqFactory{} securityGroupRepo = &fakeSecurityGroup.FakeSecurityGroupRepo{} configRepo = testconfig.NewRepositoryWithDefaults() }) runCommand := func(args ...string) { cmd := NewDeleteSecurityGroup(ui, configRepo, securityGroupRepo) testcmd.RunCommand(cmd, args, requirementsFactory) }
"github.com/nttlabs/cli/cf/models" testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("update-security-group command", func() { var ( ui *testterm.FakeUI securityGroupRepo *fakeSecurityGroup.FakeSecurityGroupRepo requirementsFactory *testreq.FakeReqFactory configRepo core_config.ReadWriter ) BeforeEach(func() { ui = &testterm.FakeUI{} requirementsFactory = &testreq.FakeReqFactory{} securityGroupRepo = &fakeSecurityGroup.FakeSecurityGroupRepo{} configRepo = testconfig.NewRepositoryWithDefaults() }) runCommand := func(args ...string) { cmd := NewUpdateSecurityGroup(ui, configRepo, securityGroupRepo) testcmd.RunCommand(cmd, args, requirementsFactory) }
testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("bind-running-security-group command", func() { var ( ui *testterm.FakeUI configRepo core_config.ReadWriter requirementsFactory *testreq.FakeReqFactory fakeSecurityGroupRepo *fakeSecurityGroup.FakeSecurityGroupRepo fakeRunningSecurityGroupRepo *fakeRunning.FakeRunningSecurityGroupsRepo ) BeforeEach(func() { ui = &testterm.FakeUI{} configRepo = testconfig.NewRepositoryWithDefaults() requirementsFactory = &testreq.FakeReqFactory{} fakeSecurityGroupRepo = &fakeSecurityGroup.FakeSecurityGroupRepo{} fakeRunningSecurityGroupRepo = &fakeRunning.FakeRunningSecurityGroupsRepo{} }) runCommand := func(args ...string) { cmd := NewBindToRunningGroup(ui, configRepo, fakeSecurityGroupRepo, fakeRunningSecurityGroupRepo) testcmd.RunCommand(cmd, args, requirementsFactory)
testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("bind-security-group command", func() { var ( ui *testterm.FakeUI cmd BindSecurityGroup configRepo core_config.ReadWriter fakeSecurityGroupRepo *testapi.FakeSecurityGroupRepo requirementsFactory *testreq.FakeReqFactory fakeSpaceRepo *fakes.FakeSpaceRepository fakeOrgRepo *test_org.FakeOrganizationRepository fakeSpaceBinder *zoidberg.FakeSecurityGroupSpaceBinder ) BeforeEach(func() { ui = &testterm.FakeUI{} fakeOrgRepo = &test_org.FakeOrganizationRepository{} fakeSpaceRepo = &fakes.FakeSpaceRepository{} requirementsFactory = &testreq.FakeReqFactory{} fakeSecurityGroupRepo = &testapi.FakeSecurityGroupRepo{} configRepo = testconfig.NewRepositoryWithDefaults() fakeSpaceBinder = &zoidberg.FakeSecurityGroupSpaceBinder{} cmd = NewBindSecurityGroup(ui, configRepo, fakeSecurityGroupRepo, fakeSpaceRepo, fakeOrgRepo, fakeSpaceBinder) })
"github.com/nttlabs/cli/cf/models" testcmd "github.com/nttlabs/cli/testhelpers/commands" testconfig "github.com/nttlabs/cli/testhelpers/configuration" testreq "github.com/nttlabs/cli/testhelpers/requirements" testterm "github.com/nttlabs/cli/testhelpers/terminal" . "github.com/nttlabs/cli/cf/commands/securitygroup" . "github.com/nttlabs/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("security-group command", func() { var ( ui *testterm.FakeUI securityGroupRepo *fakeSecurityGroup.FakeSecurityGroupRepo requirementsFactory *testreq.FakeReqFactory configRepo core_config.ReadWriter ) BeforeEach(func() { ui = &testterm.FakeUI{} requirementsFactory = &testreq.FakeReqFactory{} securityGroupRepo = &fakeSecurityGroup.FakeSecurityGroupRepo{} configRepo = testconfig.NewRepositoryWithDefaults() }) runCommand := func(args ...string) { cmd := NewShowSecurityGroup(ui, configRepo, securityGroupRepo) testcmd.RunCommand(cmd, args, requirementsFactory) }