Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
add waitForImpersonator helper to be used in SITs
Browse files Browse the repository at this point in the history
  • Loading branch information
danishnawab committed Sep 20, 2018
1 parent 28b4508 commit 588fc9e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=3.2.40
version=3.2.41
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,29 @@ public static SuccessOrFailure waitForPostgres(String logFile, String phraseToWa
return waitFor(logFile, phraseToWaitFor, "Postgres not ready yet");
}

/**
* Wait for impersonator to become ready by checking log for
* "Jetty has started"
*
* @param logFile The logfile to check
* @return SuccessOrFailure
*/
public static SuccessOrFailure waitForImpersonator(String logFile) {
return waitForImpersonator(logFile, "Jetty has started");
}

/**
* Wait for impersonator to become ready by checking log for
* some custom expected phrase
*
* @param logFile The logfile to check
* @param phraseToWaitFor The phrase in logs we wait for
* @return SuccessOrFailure
*/
public static SuccessOrFailure waitForImpersonator(String logFile, String phraseToWaitFor) {
return waitFor(logFile, phraseToWaitFor, "Impersonator not ready yet");
}

/**
* Wait for Consul to become ready by checking log for "consul: New leader elected"
*
Expand Down

0 comments on commit 588fc9e

Please sign in to comment.