Expect(err).ToNot(HaveOccurred()) Expect(transaction).ToNot(Equal(datatypes.SoftLayer_Provisioning_Version1_Transaction{})) }) }) Context("#DetachDiskImage", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_detachDiskImage.json") Expect(err).ToNot(HaveOccurred()) }) It("detaches disk image with ID `1234567` to virtual guest instance", func() { imageId := 1234567 transaction, err := virtualGuestService.DetachDiskImage(virtualGuest.Id, imageId) Expect(err).ToNot(HaveOccurred()) Expect(transaction).ToNot(Equal(datatypes.SoftLayer_Provisioning_Version1_Transaction{})) }) }) Context("#ActivatePrivatePort", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_activatePrivatePort.json") Expect(err).ToNot(HaveOccurred()) }) It("activates private port for virtual guest instance", func() { activated, err := virtualGuestService.ActivatePrivatePort(virtualGuest.Id)