diff --git a/.travis.yml b/.travis.yml index 57147b004f..ec6ed80dac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ before_script: - export MAVEN_SKIP_RC=true install: - - travis_wait 60 mvn install --no-snapshot-updates -Pdistribution -DskipTests=true -B -V -q + - travis_wait 60 mvn install --no-snapshot-updates -Pdistribution -DskipTestsuite -B -V -q script: - ./travis-run-tests.sh $TESTS diff --git a/pom.xml b/pom.xml index eabcaa981e..4f128e29b5 100755 --- a/pom.xml +++ b/pom.xml @@ -192,7 +192,6 @@ adapters authz examples - testsuite misc @@ -1540,6 +1539,18 @@ + + testsuite + + + !skipTestsuite + + + + testsuite + + + distribution diff --git a/saml-core/src/test/java/org/keycloak/saml/processing/core/parsers/saml/SAMLParserTest.java b/saml-core/src/test/java/org/keycloak/saml/processing/core/parsers/saml/SAMLParserTest.java index 52dd7baa9a..713a5bdfe8 100644 --- a/saml-core/src/test/java/org/keycloak/saml/processing/core/parsers/saml/SAMLParserTest.java +++ b/saml-core/src/test/java/org/keycloak/saml/processing/core/parsers/saml/SAMLParserTest.java @@ -103,9 +103,9 @@ public class SAMLParserTest { assertNotNull(rtChoiceType.getEncryptedAssertion()); PrivateKey privateKey = DerUtils.decodePrivateKey(Base64.decode(PRIVATE_KEY)); - ResponseType rtWithDecryptedAssertion = AssertionUtil.decryptAssertion(resp, privateKey); + AssertionUtil.decryptAssertion(resp, privateKey); - rtChoiceType = rtWithDecryptedAssertion.getAssertions().get(0); + rtChoiceType = resp.getAssertions().get(0); assertNotNull(rtChoiceType.getAssertion()); assertNull(rtChoiceType.getEncryptedAssertion()); } diff --git a/travis-run-tests.sh b/travis-run-tests.sh index cf5f03b90c..fd5e5e3bbe 100755 --- a/travis-run-tests.sh +++ b/travis-run-tests.sh @@ -1,5 +1,7 @@ #!/bin/bash -e +mvn install --no-snapshot-updates -DskipTests=true -f testsuite + if [ $1 == "old" ]; then mvn test -B --no-snapshot-updates -f testsuite/integration mvn test -B --no-snapshot-updates -f testsuite/jetty