Expect(resp).To(Equal("true")) }) }) Context("#DetachIscsiVolume", func() { It("Revoke access to storage from virtual guest", func() { virtualGuest := datatypes.SoftLayer_Virtual_Guest{ AccountId: 123456, DedicatedAccountHostOnlyFlag: false, Domain: "softlayer.com", FullyQualifiedDomainName: "fake.softlayer.com", Hostname: "fake-hostname", Id: 1234567, MaxCpu: 2, MaxCpuUnits: "CORE", MaxMemory: 1024, StartCpus: 2, StatusId: 1001, Uuid: "fake-uuid", GlobalIdentifier: "fake-globalIdentifier", PrimaryBackendIpAddress: "fake-primary-backend-ip", PrimaryIpAddress: "fake-primary-ip", } fakeClient.DoRawHttpRequestResponse = []byte("true") err = networkStorageService.DetachIscsiVolume(virtualGuest, 123) Expect(err).ToNot(HaveOccurred()) }) }) })