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() { ntpService := boshntp.NewConcreteService(platform.GetFs(), platform.GetDirProvider()) action, err := factory.Create("get_state") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewGetState(settingsService, specService, jobSupervisor, platform.GetVitalsService(), ntpService))) }) It("list_disk", func() { action, err := factory.Create("list_disk") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewListDisk(settingsService, platform, logger))) }) It("migrate_disk", func() { action, err := factory.Create("migrate_disk") Expect(err).ToNot(HaveOccurred()) Expect(action).To(Equal(NewMigrateDisk(platform, platform.GetDirProvider()))) }) It("mount_disk", func() {