public virtual void seedJobShouldGetPriorityFromOverridingJobDefinitionPriority() { // given var batch = helper.MigrateProcessInstancesAsync(2); var seedJobDefinition = helper.GetSeedJobDefinition(batch); managementService.SetOverridingJobPriorityForJobDefinition(seedJobDefinition.Id, CUSTOM_PRIORITY); // when helper.ExecuteSeedJob(batch); // then var seedJob = helper.GetSeedJob(batch); Assert.AreEqual(CUSTOM_PRIORITY, seedJob.Priority); }
public virtual void shouldSuspendSeedJobAndDefinition() { // given var batch = helper.MigrateProcessInstancesAsync(1); // when managementService.SuspendBatchById(batch.Id); // then var seedJobDefinition = helper.GetSeedJobDefinition(batch); Assert.True(seedJobDefinition.Suspended); var seedJob = helper.GetSeedJob(batch); Assert.True(seedJob.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); }