cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/4] cxf-fediz git commit: Fixing CSRF test
Date Tue, 20 Dec 2016 10:57:30 GMT
Fixing CSRF test


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/a6f7a69a
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/a6f7a69a
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/a6f7a69a

Branch: refs/heads/master
Commit: a6f7a69a457d7459ce65d09592a82c0d8d8aedc8
Parents: 811da0c
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Dec 20 10:20:59 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Dec 20 10:20:59 2016 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/fediz/integrationtests/AbstractTests.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/a6f7a69a/systests/tests/src/test/java/org/apache/cxf/fediz/integrationtests/AbstractTests.java
----------------------------------------------------------------------
diff --git a/systests/tests/src/test/java/org/apache/cxf/fediz/integrationtests/AbstractTests.java
b/systests/tests/src/test/java/org/apache/cxf/fediz/integrationtests/AbstractTests.java
index 5908db8..c4e76eb 100644
--- a/systests/tests/src/test/java/org/apache/cxf/fediz/integrationtests/AbstractTests.java
+++ b/systests/tests/src/test/java/org/apache/cxf/fediz/integrationtests/AbstractTests.java
@@ -794,10 +794,7 @@ public abstract class AbstractTests {
         }
         
         try {
-            HtmlPage rpPage2 = webClient.getPage(request);
-            String bodyTextContent = rpPage2.getBody().getTextContent();
-            Assert.assertTrue("Principal not " + user,
-                              bodyTextContent.contains("userPrincipal=" + user));
+            webClient.getPage(request);
             Assert.fail("Failure expected on a CSRF attack");
         } catch (FailingHttpStatusCodeException ex) {
             // expected


Mime
View raw message