[java-idp-integration-tests] branch master updated: Fix client storage test
Tom Zeller
tzeller at dragonacea.biz
Thu Oct 3 15:37:47 EDT 2019
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch master
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=f99ec7480f3bbb495b55d1ed7541b0cccaa07027
The following commit(s) were added to refs/heads/master by this push:
new f99ec74 Fix client storage test
f99ec74 is described below
commit f99ec7480f3bbb495b55d1ed7541b0cccaa07027
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Thu Oct 3 14:37:32 2019 -0500
Fix client storage test
Looks like HtmlUnit is sometimes returning HTML instead of plain text,
so treat response as a string and look for "Not Found".
<html>
<head/>
<body>
Not Found
</body>
</html>
---
.../java/net/shibboleth/idp/test/clientstorage/ClientStorageTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/net/shibboleth/idp/test/clientstorage/ClientStorageTest.java b/src/test/java/net/shibboleth/idp/test/clientstorage/ClientStorageTest.java
index 7bcf077..d88c0c3 100644
--- a/src/test/java/net/shibboleth/idp/test/clientstorage/ClientStorageTest.java
+++ b/src/test/java/net/shibboleth/idp/test/clientstorage/ClientStorageTest.java
@@ -142,7 +142,7 @@ public class ClientStorageTest extends BaseIntegrationTest {
submitReadForm(DEFAULT_STORAGE_SERIVCE_ID, "context", "key");
- Assert.assertEquals(getPageSource(), HttpStatus.NOT_FOUND.getReasonPhrase());
+ Assert.assertTrue(getPageSource().contains(HttpStatus.NOT_FOUND.getReasonPhrase()));
}
@Test(dataProvider = "sauceOnDemandBrowserDataProvider")
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list