Expect(vg.OperatingSystem.Passwords[0].Username).To(Equal("test_username")) }) }) Context("#EditObject", func() { BeforeEach(func() { virtualGuest.Id = 1234567 fakeClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Virtual_Guest_Service_editObject.json") Expect(err).ToNot(HaveOccurred()) }) It("edits an existing SoftLayer_Virtual_Guest instance", func() { virtualGuest := datatypes.SoftLayer_Virtual_Guest{ Notes: "fake-notes", } edited, err := virtualGuestService.EditObject(virtualGuest.Id, virtualGuest) Expect(err).ToNot(HaveOccurred()) Expect(edited).To(BeTrue()) }) }) Context("#ReloadOperatingSystem", func() { BeforeEach(func() { reload_OS_Config = datatypes.Image_Template_Config{ ImageTemplateId: "5b7bc66a-72c6-447a-94a1-967803fcd76b", } virtualGuest.Id = 1234567 }) It("sucessfully reload OS on the virtual guest instance", func() { fakeClient.DoRawHttpRequestResponse = []byte(`"1"`)