public virtual void monitorJobShouldGetPriorityOverridingJobDefinitionPriority() { // given var batch = helper.MigrateProcessInstancesAsync(1); var monitorJobDefinition = helper.GetMonitorJobDefinition(batch); managementService.SetOverridingJobPriorityForJobDefinition(monitorJobDefinition.Id, CUSTOM_PRIORITY); // when helper.ExecuteSeedJob(batch); // then var monitorJob = helper.GetMonitorJob(batch); Assert.AreEqual(CUSTOM_PRIORITY, monitorJob.Priority); }
public virtual void shouldSuspendMonitorJobAndDefinition() { // given var batch = helper.MigrateProcessInstancesAsync(1); helper.ExecuteSeedJob(batch); // when managementService.SuspendBatchById(batch.Id); // then var monitorJobDefinition = helper.GetMonitorJobDefinition(batch); Assert.True(monitorJobDefinition.Suspended); var monitorJob = helper.GetMonitorJob(batch); Assert.True(monitorJob.Suspended); }
[Test] public virtual void testBatchJobDefinitionsTenantId() { // given IBatch batch = batchHelper.MigrateProcessInstanceAsync(tenant1Definition, tenant1Definition); // then IJobDefinition migrationJobDefinition = batchHelper.GetExecutionJobDefinition(batch); Assert.AreEqual(TENANT_ONE, migrationJobDefinition.TenantId); IJobDefinition monitorJobDefinition = batchHelper.GetMonitorJobDefinition(batch); Assert.AreEqual(TENANT_ONE, monitorJobDefinition.TenantId); IJobDefinition seedJobDefinition = batchHelper.GetSeedJobDefinition(batch); Assert.AreEqual(TENANT_ONE, seedJobDefinition.TenantId); }