It("sucessfully retrieves SoftLayer_Virtual_Guest_State for RUNNING instance", func() { vgPowerState, err := virtualGuestService.GetPowerState(virtualGuest.Id) Expect(err).ToNot(HaveOccurred()) Expect(vgPowerState.KeyName).To(Equal("RUNNING")) }) }) Context("#GetPrimaryIpAddress", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse = []byte("159.99.99.99") Expect(err).ToNot(HaveOccurred()) }) It("sucessfully retrieves SoftLayer virtual guest's primary IP address instance", func() { vgPrimaryIpAddress, err := virtualGuestService.GetPrimaryIpAddress(virtualGuest.Id) Expect(err).ToNot(HaveOccurred()) Expect(vgPrimaryIpAddress).To(Equal("159.99.99.99")) }) }) Context("#GetActiveTransaction", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_getActiveTransaction.json") Expect(err).ToNot(HaveOccurred()) }) It("sucessfully retrieves SoftLayer_Provisioning_Version1_Transaction for virtual guest", func() { activeTransaction, err := virtualGuestService.GetActiveTransaction(virtualGuest.Id) Expect(err).ToNot(HaveOccurred())