diff --git a/agama/engine/pom.xml b/agama/engine/pom.xml index 872f92ef4c7..bb9e81908a8 100644 --- a/agama/engine/pom.xml +++ b/agama/engine/pom.xml @@ -26,6 +26,46 @@ + + + profiles/${cfg}/config-agama-test.properties + + + + + src/test/resources + true + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + + target/test-classes/testng.xml + + + + + + + + + set-configuration-name + + + !cfg + + + + default + + + + @@ -146,12 +186,45 @@ commons-codec + com.esotericsoftware kryo 5.3.0 + + + net.sourceforge.htmlunit + htmlunit + 2.65.1 + test + + + org.testng + testng + test + + + io.jans + agama-inbound + ${jans.version} + test + + + org.json + json + 20220924 + test + + + + org.apache.logging.log4j + log4j-jcl + 2.19.0 + test + + \ No newline at end of file diff --git a/agama/engine/profiles/default/config-agama-test.properties b/agama/engine/profiles/default/config-agama-test.properties new file mode 100644 index 00000000000..64cf8839cdf --- /dev/null +++ b/agama/engine/profiles/default/config-agama-test.properties @@ -0,0 +1,6 @@ +#The URL of your Jans installation +server=https://jgomer2001-guiding-herring.gluu.info + +clientId=1800.5e01b3bb-1f68-4847-b9ba-d5c999a05e33 + +custParamName=customParam1 diff --git a/agama/engine/src/test/resources/log4j2-test.xml b/agama/engine/src/test/resources/log4j2-test.xml new file mode 100644 index 00000000000..018859bed4c --- /dev/null +++ b/agama/engine/src/test/resources/log4j2-test.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/agama/engine/src/test/resources/testng.properties b/agama/engine/src/test/resources/testng.properties new file mode 100644 index 00000000000..125373fd648 --- /dev/null +++ b/agama/engine/src/test/resources/testng.properties @@ -0,0 +1,8 @@ + +authzEndpoint=${server}/jans-auth/restv1/authorize + +redirectUri=${server}/admin-ui + +clientId=${clientId} + +custParamName=${custParamName} diff --git a/agama/engine/src/test/resources/testng.xml b/agama/engine/src/test/resources/testng.xml new file mode 100644 index 00000000000..ec431e7e897 --- /dev/null +++ b/agama/engine/src/test/resources/testng.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +