Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for access grant and revoking grant
- Loading branch information
Showing
10 changed files
with
502 additions
and
122 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<web-app xmlns="http://java.sun.com/xml/ns/javaee" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | |||
version="3.0"> | |||
|
|||
<module-name>js-console</module-name> | |||
</web-app> |
14 changes: 14 additions & 0 deletions
14
...y/src/test/java/org/keycloak/testsuite/adapter/example/WildflyDemoExampleAdapterTest.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
package org.keycloak.testsuite.adapter.example; | |||
|
|||
import org.keycloak.testsuite.arquillian.annotation.AdapterLibsLocationProperty; | |||
import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; | |||
|
|||
/** | |||
* | |||
* @author tkyjovsk | |||
*/ | |||
@AppServerContainer("app-server-wildfly") | |||
@AdapterLibsLocationProperty("adapter.libs.wildfly") | |||
public class WildflyDemoExampleAdapterTest extends AbstractDemoExampleAdapterTest { | |||
|
|||
} |
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
50 changes: 50 additions & 0 deletions
50
...rquillian/tests/base/src/main/java/org/keycloak/testsuite/auth/page/login/OAuthGrant.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,50 @@ | |||
/* | |||
* JBoss, Home of Professional Open Source. | |||
* Copyright 2012, Red Hat, Inc., and individual contributors | |||
* as indicated by the @author tags. See the copyright.txt file in the | |||
* distribution for a full listing of individual contributors. | |||
* | |||
* This is free software; you can redistribute it and/or modify it | |||
* under the terms of the GNU Lesser General Public License as | |||
* published by the Free Software Foundation; either version 2.1 of | |||
* the License, or (at your option) any later version. | |||
* | |||
* This software is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Lesser General Public | |||
* License along with this software; if not, write to the Free | |||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |||
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. | |||
*/ | |||
package org.keycloak.testsuite.auth.page.login; | |||
|
|||
import org.openqa.selenium.WebElement; | |||
import org.openqa.selenium.support.FindBy; | |||
|
|||
/** | |||
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a> | |||
*/ | |||
public class OAuthGrant extends LoginActions { | |||
|
|||
@FindBy(css = "input[name=\"accept\"]") | |||
private WebElement acceptButton; | |||
@FindBy(css = "input[name=\"cancel\"]") | |||
private WebElement cancelButton; | |||
|
|||
|
|||
public void accept() { | |||
acceptButton.click(); | |||
} | |||
|
|||
public void cancel() { | |||
cancelButton.click(); | |||
} | |||
|
|||
@Override | |||
public boolean isCurrent() { | |||
return driver.getTitle().equals("OAuth Grant"); | |||
} | |||
} |
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
Oops, something went wrong.