rebooted, err := virtualGuestService.PowerOffSoft(virtualGuest.Id) Expect(err).To(HaveOccurred()) Expect(rebooted).To(BeFalse()) }) }) Context("#PowerOn", func() { BeforeEach(func() { virtualGuest.Id = 1234567 }) It("sucessfully power on virtual guest instance", func() { fakeClient.DoRawHttpRequestResponse = []byte("true") rebooted, err := virtualGuestService.PowerOn(virtualGuest.Id) Expect(err).ToNot(HaveOccurred()) Expect(rebooted).To(BeTrue()) }) It("fails to power on virtual guest instance", func() { fakeClient.DoRawHttpRequestResponse = []byte("false") rebooted, err := virtualGuestService.PowerOn(virtualGuest.Id) Expect(err).To(HaveOccurred()) Expect(rebooted).To(BeFalse()) }) }) Context("#RebootDefault", func() { BeforeEach(func() {