It("apply", func() { action, err := factory.Create("apply") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewApply(applier, specService, settingsService))) }) It("drain", func() { action, err := factory.Create("drain") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewDrain(notifier, specService, drainScriptProvider, jobSupervisor, logger))) }) It("fetch_logs", func() { action, err := factory.Create("fetch_logs") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewFetchLogs(platform.GetCompressor(), platform.GetCopier(), blobstore, platform.GetDirProvider()))) }) It("get_task", func() { action, err := factory.Create("get_task") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewGetTask(taskService))) }) It("cancel_task", func() { action, err := factory.Create("cancel_task") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewCancelTask(taskService))) }) It("get_state", func() {