shutdowned, err := virtualGuestService.ShutdownPrivatePort(virtualGuest.Id) Expect(err).ToNot(HaveOccurred()) Expect(shutdowned).To(BeTrue()) }) }) Context("#ShutdownPublicPort", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_shutdownPublicPort.json") Expect(err).ToNot(HaveOccurred()) }) It("shuts down public port for virtual guest instance", func() { shutdowned, err := virtualGuestService.ShutdownPublicPort(virtualGuest.Id) Expect(err).ToNot(HaveOccurred()) Expect(shutdowned).To(BeTrue()) }) }) Context("#GetAllowedHost", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_getAllowedHost.json") Expect(err).ToNot(HaveOccurred()) }) It("gets allowed host for virtual guest", func() { allowedHost, err := virtualGuestService.GetAllowedHost(virtualGuest.Id)