Skip to content

Commit

Permalink
upstream: b=main,r=fae719234b89149289f9b51c420c3a9c0865a4ab,t=2024-07…
Browse files Browse the repository at this point in the history
…-26-1243-04526
  • Loading branch information
sonatype-zion committed Jul 26, 2024
1 parent b05e9f5 commit 1c0dcf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ private void readEnvironmentVariables(final Properties properties) {

// Used by ZDU ITs to simulate migration failures
if (properties.getProperty(ZERO_DOWNTIME_BASELINE_FAIL) == null) {
properties.setProperty(ZERO_DOWNTIME_BASELINE_FAIL,
Optional.ofNullable(System.getenv("NEXUS_ZDU_BASELINE_FAIL")).orElse(FALSE));
Optional.ofNullable(System.getenv("NEXUS_ZDU_BASELINE_FAIL")).ifPresent(v ->
properties.setProperty(ZERO_DOWNTIME_BASELINE_FAIL, v));
}

// Used by ZDU ITs to simulate behavior when future migrations are available
if (properties.getProperty(ZERO_DOWNTIME_FUTURE_MIGRATION_ENABLED) == null) {
properties.setProperty(ZERO_DOWNTIME_FUTURE_MIGRATION_ENABLED,
Optional.ofNullable(System.getenv("NEXUS_ZDU_FUTURE_MIGRATION_ENABLED")).orElse(FALSE));
Optional.ofNullable(System.getenv("NEXUS_ZDU_FUTURE_MIGRATION_ENABLED")).ifPresent(v ->
properties.setProperty(ZERO_DOWNTIME_FUTURE_MIGRATION_ENABLED, v));
}
}

Expand Down
2 changes: 1 addition & 1 deletion revision.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b=main,r=228de351ac090d38e40dc91b8b16abb63dbe529c,t=2024-07-25-1510-2678
b=main,r=fae719234b89149289f9b51c420c3a9c0865a4ab,t=2024-07-26-1243-04526

0 comments on commit 1c0dcf4

Please sign in to comment.