Expect(username).ToNot(Equal("")) apiKey = os.Getenv("SL_API_KEY") Expect(apiKey).ToNot(Equal("")) fakeClient = slclientfakes.NewFakeSoftLayerClient(username, apiKey) Expect(fakeClient).ToNot(BeNil()) hardwareService, err = fakeClient.GetSoftLayer_Hardware_Service() Expect(err).ToNot(HaveOccurred()) Expect(hardwareService).ToNot(BeNil()) }) Context("#GetName", func() { It("returns the name for the service", func() { name := hardwareService.GetName() Expect(name).To(Equal("SoftLayer_Hardware")) }) }) Context("#CreateObject", func() { var template datatypes.SoftLayer_Hardware_Template BeforeEach(func() { fakeClient.FakeHttpClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Hardware_Service_createObject.json") Expect(err).ToNot(HaveOccurred()) template = datatypes.SoftLayer_Hardware_Template{ Hostname: "softlayer", Domain: "testing.com", ProcessorCoreAmount: 2,