Context("#GetName", func() { It("returns the name for the service", func() { name := vgbdtgService.GetName() Expect(name).To(Equal("SoftLayer_Virtual_Guest_Block_Device_Template_Group")) }) }) Context("#GetObject", func() { BeforeEach(func() { vgbdtGroup.Id = 200150 fakeClient.FakeHttpClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service_getObject.json") Expect(err).ToNot(HaveOccurred()) }) It("sucessfully retrieves SoftLayer_Virtual_Guest_Block_Device_Template_Group instance", func() { vgbdtg, err := vgbdtgService.GetObject(vgbdtGroup.Id) Expect(err).ToNot(HaveOccurred()) Expect(vgbdtg.AccountId).To(Equal(278444)) Expect(vgbdtg.CreateDate).ToNot(BeNil()) Expect(vgbdtg.Id).To(Equal(vgbdtGroup.Id)) Expect(vgbdtg.Name).To(Equal("BOSH-eCPI-packer-centos-2014-08-12T15:54:16Z")) Expect(vgbdtg.Note).To(Equal("centos image created by packer at 2014-08-12T15:54:16Z")) Expect(vgbdtg.ParentId).To(BeNil()) Expect(vgbdtg.PublicFlag).To(Equal(0)) Expect(vgbdtg.StatusId).To(Equal(1)) Expect(vgbdtg.Summary).To(Equal("centos image created by packer at 2014-08-12T15:54:16Z")) Expect(vgbdtg.TransactionId).To(BeNil()) Expect(vgbdtg.UserRecordId).To(Equal(239954)) Expect(vgbdtg.GlobalIdentifier).To(Equal("8071601b-5ee1-483e-a9e8-6e5582dcb9f7")) })