[java-idp-integration-tests] 01/02: Return status page text when waiting for server to start.
Tom Zeller
tzeller at dragonacea.biz
Thu Jan 5 13:54:42 UTC 2023
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=5e149da2d48c67a7b9d783d36c4b7abc60dacc59
commit 5e149da2d48c67a7b9d783d36c4b7abc60dacc59
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Thu Jan 5 07:54:03 2023 -0600
Return status page text when waiting for server to start.
---
.../shibboleth/idp/integration/tests/AbstractServerProcess.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/test/java/net/shibboleth/idp/integration/tests/AbstractServerProcess.java b/src/test/java/net/shibboleth/idp/integration/tests/AbstractServerProcess.java
index 4fc3265..d5d0c9d 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/AbstractServerProcess.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/AbstractServerProcess.java
@@ -304,13 +304,15 @@ public class AbstractServerProcess extends AbstractInitializableComponent implem
*
* Set the 'waitForStatusPage' system property to change the maximum wait time.
*
+ * @return status page
* @throws RuntimeException if the actual status page text is not expected
* @throws Exception if an error occurs
*/
- public void waitForStatusPage() throws Exception {
+ @Nullable
+ public String waitForStatusPage() throws Exception {
final String retries = System.getProperty("waitForStatusPage", "60");
- log.debug("Waiting {} seconds for server to start ...", retries);
+ log.debug("Waiting {} seconds for server status page ...", retries);
final String statusPageText = getStatusPageText(Integer.parseInt(retries), 1000);
@@ -318,6 +320,8 @@ public class AbstractServerProcess extends AbstractInitializableComponent implem
log.error("Unable to determine if server has started.");
throw new RuntimeException("Unable to determine if server has started.");
}
+
+ return statusPageText;
}
/**
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list