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) Expect(err).ToNot(HaveOccurred()) Expect(allowedHost).NotTo(BeNil()) Expect(allowedHost.Name).To(Equal("fake-iqn")) }) }) Context("#GetNetworkVlans", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_getNetworkVlans.json") Expect(err).ToNot(HaveOccurred()) }) It("gets network vlans for virtual guest", func() {