networkStorageAllowedHostService softlayer.SoftLayer_Network_Storage_Allowed_Host_Service err error ) BeforeEach(func() { username = os.Getenv("SL_USERNAME") Expect(username).ToNot(Equal("")) apiKey = os.Getenv("SL_API_KEY") Expect(apiKey).ToNot(Equal("")) fakeClient = slclientfakes.NewFakeSoftLayerClient(username, apiKey) Expect(fakeClient).ToNot(BeNil()) networkStorageAllowedHostService, err = fakeClient.GetSoftLayer_Network_Storage_Allowed_Host_Service() Expect(err).ToNot(HaveOccurred()) Expect(networkStorageAllowedHostService).ToNot(BeNil()) }) Context("#GetName", func() { It("returns the name for the service", func() { name := networkStorageAllowedHostService.GetName() Expect(name).To(Equal("SoftLayer_Network_Storage_Allowed_Host")) }) }) Context("#GetCredential", func() { BeforeEach(func() { fakeClient.FakeHttpClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Network_Storage_Allowed_Host_Service_getCredential.json") Expect(err).ToNot(HaveOccurred())