Skip to content

Commit

Permalink
small fixes for release testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhmkrutov committed Sep 3, 2024
1 parent 110c1ab commit b6902e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/src/main/java/io/brokerqe/claire/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public interface Constants {
String IMAGE_SYSTEMTEST_CLI_RHEA = "quay.io/messaging/cli-rhea:latest";
// String IMAGE_OPENLDAP = "docker.io/bitnami/openldap:latest";
// To be mirrored!
String IMAGE_OPENLDAP = "quay.io/rh_integration/openldap:latest";
String IMAGE_OPENLDAP = "quay.io/rh_integration/openldap:2.6.7";
String IMAGE_POSTGRES = "quay.io/rh_integration/postgresql:latest";
String IMAGE_MYSQL = "quay.io/rh_integration/mysql:latest";
String IMAGE_MARIADB = "quay.io/rh_integration/mariadb:latest";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,9 @@ public void waitForScaleDownDrainer(String namespace, String operatorName, Strin
int expectedDrainPodsCount = previousSize - newSize;
Pod operatorPod = getClient().getFirstPodByPrefixName(namespace, operatorName);

String podDateTime = getClient().executeCommandInPod(operatorPod, "date", Constants.DURATION_10_SECONDS).strip();
String podDateTime = getClient().executeCommandInPod(operatorPod, "date +\"%a %b %d %H:%M:%S %Z %Y\"", Constants.DURATION_10_SECONDS).strip();
// format: Thu Aug 15 09:34:26 UTC 2024
// format: Tue Sep 3 11:15:21 UTC 2024
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss zzz yyyy", Locale.ENGLISH);
ZonedDateTime zonedDateTime = ZonedDateTime.parse(podDateTime, formatter);
Instant now = zonedDateTime.toInstant().minus(Duration.ofSeconds(15));
Expand Down

0 comments on commit b6902e7

Please sign in to comment.