}) }) It("get state should be synchronous", func() { Expect(action.IsAsynchronous()).To(BeFalse()) }) It("is not persistent", func() { Expect(action.IsPersistent()).To(BeFalse()) }) Describe("Run", func() { Context("when current spec can be retrieved", func() { Context("when vitals can be retrieved", func() { It("returns state", func() { settings.AgentID = "my-agent-id" settings.VM.Name = "vm-abc-def" jobSupervisor.StatusStatus = "running" specService.Spec = boshas.V1ApplySpec{ Deployment: "fake-deployment", } expectedSpec := GetStateV1ApplySpec{ V1ApplySpec: boshas.V1ApplySpec{ NetworkSpecs: map[string]boshas.NetworkSpec{}, ResourcePoolSpecs: map[string]interface{}{}, PackageSpecs: map[string]boshas.PackageSpec{}, }, AgentID: "my-agent-id",