activated, err := virtualGuestService.ActivatePrivatePort(virtualGuest.Id) Expect(err).ToNot(HaveOccurred()) Expect(activated).To(BeTrue()) }) }) Context("#ActivatePublicPort", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_activatePublicPort.json") Expect(err).ToNot(HaveOccurred()) }) It("activates public port for virtual guest instance", func() { activated, err := virtualGuestService.ActivatePublicPort(virtualGuest.Id) Expect(err).ToNot(HaveOccurred()) Expect(activated).To(BeTrue()) }) }) Context("#ShutdownPrivatePort", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_shutdownPrivatePort.json") Expect(err).ToNot(HaveOccurred()) }) It("shutdown private port for virtual guest instance", func() { shutdowned, err := virtualGuestService.ShutdownPrivatePort(virtualGuest.Id)