TSK-1991: fixed renaming of user properties

This commit is contained in:
Mustapha Zorgati 2023-03-21 11:57:00 +01:00
parent 221b97fe2c
commit 3f60a98ef2
4 changed files with 8 additions and 8 deletions

View File

@ -892,7 +892,7 @@ class TaskanaConfigurationTest {
assertThatThrownBy(call)
.isInstanceOf(InvalidArgumentException.class)
.hasMessageContaining(
"Parameter userRefreshJobRunEvery (taskana.jobs.user.refresh.runEvery)"
"Parameter userRefreshJobRunEvery (taskana.jobs.refresh.user.runEvery)"
+ " must be a positive duration");
}

View File

@ -47,8 +47,8 @@ taskana.jobs.priority.task.batchSize=50
taskana.jobs.priority.task.firstRunAt=2018-07-25T08:00:00Z
taskana.jobs.priority.task.runEvery=P3D
taskana.jobs.refresh.user.enable=true
taskana.jobs.user.refresh.firstRunAt=2018-07-25T08:00:00Z
taskana.jobs.user.refresh.runEvery=P4D
taskana.jobs.refresh.user.firstRunAt=2018-07-25T08:00:00Z
taskana.jobs.refresh.user.runEvery=P4D
taskana.jobs.customJobs=A | B | C
# user configuration
taskana.user.addAdditionalUserInfo=true

View File

@ -722,10 +722,10 @@ public class TaskanaConfiguration {
@TaskanaProperty("taskana.jobs.refresh.user.enable")
private boolean userInfoRefreshJobEnabled = false;
@TaskanaProperty("taskana.jobs.user.refresh.firstRunAt")
@TaskanaProperty("taskana.jobs.refresh.user.firstRunAt")
private Instant userRefreshJobFirstRun = Instant.parse("2023-01-01T23:00:00Z");
@TaskanaProperty("taskana.jobs.user.refresh.runEvery")
@TaskanaProperty("taskana.jobs.refresh.user.runEvery")
private Duration userRefreshJobRunEvery = Duration.ofDays(1);
@TaskanaProperty("taskana.jobs.customJobs")
@ -1229,7 +1229,7 @@ public class TaskanaConfiguration {
|| userRefreshJobRunEvery.isNegative()
|| userRefreshJobRunEvery.isZero()) {
throw new InvalidArgumentException(
"Parameter userRefreshJobRunEvery (taskana.jobs.user.refresh.runEvery)"
"Parameter userRefreshJobRunEvery (taskana.jobs.refresh.user.runEvery)"
+ " must be a positive duration");
}
if (jobSchedulerInitialStartDelay < 0) {

View File

@ -17,8 +17,8 @@ taskana.jobs.cleanup.history.simple.batchSize=50
taskana.jobs.history.cleanup.firstRunAt=2018-07-25T08:00:00Z
taskana.jobs.cleanup.history.simple.minimumAge=P14D
taskana.jobs.history.cleanup.runEvery=P1D
taskana.jobs.user.refresh.runEvery=P1D
taskana.jobs.user.refresh.firstRunAt=2018-07-25T23:00:00Z
taskana.jobs.refresh.user.runEvery=P1D
taskana.jobs.refresh.user.firstRunAt=2018-07-25T23:00:00Z
taskana.workingTime.holidays.german.enabled=true
taskana.workingTime.holidays.german.corpus-christi.enabled=true
taskana.history.logger.name=AUDIT