-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1939 from mhajas/master
KEYCLOAK-1667 Added adapter tests of SAML to integration arquillian
- Loading branch information
Showing
68 changed files
with
2,456 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...st/java/org/keycloak/testsuite/adapter/example/WildflyRelativeSAMLExampleAdapterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.keycloak.testsuite.adapter.example; | ||
|
||
import org.keycloak.testsuite.arquillian.annotation.AdapterLibsLocationProperty; | ||
|
||
/** | ||
* | ||
* @author mhajas | ||
*/ | ||
@AdapterLibsLocationProperty("adapter.libs.wildfly") | ||
public class WildflyRelativeSAMLExampleAdapterTest extends AbstractSAMLExampleAdapterTest { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...t/java/org/keycloak/testsuite/adapter/servlet/WildflyRelativeSAMLServletsAdapterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.keycloak.testsuite.adapter.servlet; | ||
|
||
import org.keycloak.testsuite.arquillian.annotation.AdapterLibsLocationProperty; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
@AdapterLibsLocationProperty("adapter.libs.wildfly") | ||
public class WildflyRelativeSAMLServletsAdapterTest extends AbstractSAMLServletsAdapterTest { | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
.../base/src/main/java/org/keycloak/testsuite/adapter/page/BadClientSalesPostSigServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.keycloak.testsuite.adapter.page; | ||
|
||
import org.jboss.arquillian.container.test.api.OperateOnDeployment; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
public class BadClientSalesPostSigServlet extends SAMLServletWithLogout { | ||
public static final String DEPLOYMENT_NAME = "bad-client-sales-post-sig"; | ||
|
||
@ArquillianResource | ||
@OperateOnDeployment(DEPLOYMENT_NAME) | ||
private URL url; | ||
|
||
@Override | ||
public URL getInjectedUrl() { | ||
return url; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...s/base/src/main/java/org/keycloak/testsuite/adapter/page/BadRealmSalesPostSigServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.keycloak.testsuite.adapter.page; | ||
|
||
import org.jboss.arquillian.container.test.api.OperateOnDeployment; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
public class BadRealmSalesPostSigServlet extends SAMLServletWithLogout { | ||
public static final String DEPLOYMENT_NAME = "bad-realm-sales-post-sig"; | ||
|
||
@ArquillianResource | ||
@OperateOnDeployment(DEPLOYMENT_NAME) | ||
private URL url; | ||
|
||
@Override | ||
public URL getInjectedUrl() { | ||
return url; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...illian/tests/base/src/main/java/org/keycloak/testsuite/adapter/page/Employee2Servlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.keycloak.testsuite.adapter.page; | ||
|
||
import org.jboss.arquillian.container.test.api.OperateOnDeployment; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
public class Employee2Servlet extends SAMLServletWithLogout { | ||
public static final String DEPLOYMENT_NAME = "employee2"; | ||
|
||
@ArquillianResource | ||
@OperateOnDeployment(DEPLOYMENT_NAME) | ||
private URL url; | ||
|
||
@Override | ||
public URL getInjectedUrl() { | ||
return url; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...tests/base/src/main/java/org/keycloak/testsuite/adapter/page/EmployeeSigFrontServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.keycloak.testsuite.adapter.page; | ||
|
||
import org.jboss.arquillian.container.test.api.OperateOnDeployment; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
public class EmployeeSigFrontServlet extends SAMLServletWithLogout { | ||
public static final String DEPLOYMENT_NAME = "employee-sig-front"; | ||
|
||
@ArquillianResource | ||
@OperateOnDeployment(DEPLOYMENT_NAME) | ||
private URL url; | ||
|
||
@Override | ||
public URL getInjectedUrl() { | ||
return url; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...lian/tests/base/src/main/java/org/keycloak/testsuite/adapter/page/EmployeeSigServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.keycloak.testsuite.adapter.page; | ||
|
||
import org.jboss.arquillian.container.test.api.OperateOnDeployment; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
public class EmployeeSigServlet extends SAMLServletWithLogout { | ||
public static final String DEPLOYMENT_NAME = "employee-sig"; | ||
|
||
@ArquillianResource | ||
@OperateOnDeployment(DEPLOYMENT_NAME) | ||
private URL url; | ||
|
||
@Override | ||
public URL getInjectedUrl() { | ||
return url; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...lian/tests/base/src/main/java/org/keycloak/testsuite/adapter/page/SAMLPostEncExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.keycloak.testsuite.adapter.page; | ||
|
||
import org.jboss.arquillian.container.test.api.OperateOnDeployment; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl; | ||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.support.FindBy; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
public class SAMLPostEncExample extends AbstractPageWithInjectedUrl { | ||
public static final String DEPLOYMENT_NAME = "saml-post-encryption"; | ||
|
||
@ArquillianResource | ||
@OperateOnDeployment(DEPLOYMENT_NAME) | ||
private URL url; | ||
|
||
@FindBy(tagName = "a") | ||
WebElement logoutButton; | ||
|
||
@Override | ||
public URL getInjectedUrl() { | ||
return url; | ||
} | ||
|
||
public void logout() { | ||
logoutButton.click(); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...lian/tests/base/src/main/java/org/keycloak/testsuite/adapter/page/SAMLPostSigExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.keycloak.testsuite.adapter.page; | ||
|
||
import org.jboss.arquillian.container.test.api.OperateOnDeployment; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl; | ||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.support.FindBy; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* @author mhajas | ||
*/ | ||
public class SAMLPostSigExample extends AbstractPageWithInjectedUrl { | ||
public static final String DEPLOYMENT_NAME = "saml-post-signatures"; | ||
|
||
@ArquillianResource | ||
@OperateOnDeployment(DEPLOYMENT_NAME) | ||
private URL url; | ||
|
||
@FindBy(tagName = "a") | ||
WebElement logoutButton; | ||
|
||
@Override | ||
public URL getInjectedUrl() { | ||
return url; | ||
} | ||
|
||
public void logout() { | ||
logoutButton.click(); | ||
} | ||
} |
Oops, something went wrong.