[msavy@mmbp apiman-qe-tests](master)$ mvn clean install -DfailIfNoTests=false -Prest-tests -Dapiman.keystore=/Users/msavy/apiman/apiman/distro/tomcat8/src/main/resources/overlay/conf/apiman.jks -Dapiman.test.tools.address=192.168.99.100 -Dit.test=KeycloakAuthenticationPolicyIT [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.jboss.apiman.qa:apiman-it-deployments:war:1.1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.wildfly.plugins:wildfly-maven-plugin is missing. @ org.jboss.apiman.qa:apiman-it-deployments:[unknown-version], /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/pom.xml, line 50, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] org.jboss.apiman.qa :: apiman-integration-tests [INFO] org.jboss.apiman.qa :: apiman-it-commons [INFO] org.jboss.apiman.qa :: apiman-it-deployments [INFO] org.jboss.apiman.qa :: apiman-it-coverage [INFO] org.jboss.apiman.qa :: apiman-it-rest [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building org.jboss.apiman.qa :: apiman-integration-tests 1.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ apiman-integration-tests --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ apiman-integration-tests --- [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/pom.xml to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-integration-tests/1.1.0-SNAPSHOT/apiman-integration-tests-1.1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building org.jboss.apiman.qa :: apiman-it-commons 1.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ apiman-it-commons --- [INFO] Deleting /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ apiman-it-commons --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ apiman-it-commons --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 71 source files to /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/target/classes [WARNING] /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/src/main/java/io/apiman/test/integration/runner/handlers/FieldAnnotationHandler.java: /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/src/main/java/io/apiman/test/integration/runner/handlers/FieldAnnotationHandler.java uses unchecked or unsafe operations. [WARNING] /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/src/main/java/io/apiman/test/integration/runner/handlers/FieldAnnotationHandler.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ apiman-it-commons --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ apiman-it-commons --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ apiman-it-commons --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ apiman-it-commons --- [INFO] Building jar: /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/target/apiman-it-commons-1.1.0-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ apiman-it-commons --- [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/target/apiman-it-commons-1.1.0-SNAPSHOT.jar to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-it-commons/1.1.0-SNAPSHOT/apiman-it-commons-1.1.0-SNAPSHOT.jar [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/apiman-it-commons/pom.xml to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-it-commons/1.1.0-SNAPSHOT/apiman-it-commons-1.1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building org.jboss.apiman.qa :: apiman-it-deployments 1.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ apiman-it-deployments --- [INFO] Deleting /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ apiman-it-deployments --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ apiman-it-deployments --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 4 source files to /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ apiman-it-deployments --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ apiman-it-deployments --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ apiman-it-deployments --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-war-plugin:2.2:war (default-war) @ apiman-it-deployments --- [INFO] Packaging webapp [INFO] Assembling webapp [apiman-it-deployments] in [/Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/target/apiman-it-deployments-1.1.0-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources [/Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/src/main/webapp] [INFO] Webapp assembled in [43 msecs] [INFO] Building war: /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/target/apiman-it-deployments-1.1.0-SNAPSHOT.war [INFO] WEB-INF/web.xml already added, skipping [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ apiman-it-deployments --- [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/target/apiman-it-deployments-1.1.0-SNAPSHOT.war to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-it-deployments/1.1.0-SNAPSHOT/apiman-it-deployments-1.1.0-SNAPSHOT.war [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/apiman-it-deployments/pom.xml to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-it-deployments/1.1.0-SNAPSHOT/apiman-it-deployments-1.1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building org.jboss.apiman.qa :: apiman-it-coverage 1.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ apiman-it-coverage --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ apiman-it-coverage --- [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/apiman-it-coverage/pom.xml to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-it-coverage/1.1.0-SNAPSHOT/apiman-it-coverage-1.1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building org.jboss.apiman.qa :: apiman-it-rest 1.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ apiman-it-rest --- [INFO] Deleting /Users/msavy/apiman/apiman-qe-tests/apiman-it-rest/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ apiman-it-rest --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/msavy/apiman/apiman-qe-tests/apiman-it-rest/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ apiman-it-rest --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ apiman-it-rest --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 24 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ apiman-it-rest --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 77 source files to /Users/msavy/apiman/apiman-qe-tests/apiman-it-rest/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ apiman-it-rest --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ apiman-it-rest --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /Users/msavy/apiman/apiman-qe-tests/apiman-it-rest/target/apiman-it-rest-1.1.0-SNAPSHOT.jar [INFO] [INFO] --- maven-failsafe-plugin:2.19.1:integration-test (default) @ apiman-it-rest --- ------------------------------------------------------- T E S T S ------------------------------------------------------- Request method: POST Request path: http://localhost:8080/apiman/plugins HTTP/1.1 200 OK Expires: Tue, 16 Feb 2016 22:46:27 GMT Cache-Control: no-cache, no-store, must-revalidate X-Powered-By: Undertow/1 Server: WildFly/9 Pragma: no-cache Date: Wed, 17 Feb 2016 22:46:27 GMT Connection: keep-alive Content-Type: application/json Content-Length: 372 { "id": 1, "groupId": "io.apiman.plugins", "artifactId": "apiman-plugins-keycloak-oauth-policy", "version": "1.2.2-SNAPSHOT", "type": "war", "name": "Keycloak OAuth Policy Plugin", "description": "This plugin offers an OAuth2 policy which leverages the Keycloak authentication platform as the identity and access provider.", "createdBy": "admin", "createdOn": 1455749187452, "deleted": false } Request method: POST Request path: http://localhost:8080/apiman/organizations Request method: POST Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis Request method: POST Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions Request method: PUT Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0 Request method: POST Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0/policies Request method: POST Request path: http://localhost:8080/apiman/actions Running io.apiman.test.integration.rest.plugins.policies.keycloakplugin.KeycloakAuthenticationPolicyIT Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0 Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0/endpoint Request method: POST Request path: http://192.168.99.100:8081/auth/realms/qerealm/protocol/openid-connect/token Request method: GET Request path: https://localhost:8443/apiman-gateway/TestOrg14557491876766811/TestApi14557491877362301/1.0 HTTP/1.1 404 Not Found Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/9 Content-Length: 74 Content-Type: text/html Date: Wed, 17 Feb 2016 22:46:29 GMT Error 404 - Not Found Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0 Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0/endpoint Request method: POST Request path: http://192.168.99.100:8081/auth/realms/qerealm/protocol/openid-connect/token [main] INFO io.apiman.test.integration.rest.plugins.policies.keycloakplugin.KeycloakAuthenticationPolicyIT - Waiting 40 for token to expire Request method: GET Request path: https://localhost:8443/apiman-gateway/TestOrg14557491876766811/TestApi14557491877362301/1.0?access_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJmMGE4NzcyYS05Y2Q0LTQ5OWUtYTU5NS1jODU1ZDBmMzA2MDgiLCJleHAiOjE0NTU3NDkyMTksIm5iZiI6MCwiaWF0IjoxNDU1NzQ5MTg5LCJpc3MiOiJodHRwOi8vMTkyLjE2OC45OS4xMDA6ODA4MS9hdXRoL3JlYWxtcy9xZXJlYWxtIiwiYXVkIjoiYXBpbWFuIiwic3ViIjoiYjlhYzM5NTMtYTliZS00MmY4LWEyOGMtOTkxMWM1Yjk1NjVmIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiYXBpbWFuIiwic2Vzc2lvbl9zdGF0ZSI6ImUzNDAzM2IyLWUxZTItNDZhOC1hNjVjLTJmZDVjY2QyZjhiZSIsImNsaWVudF9zZXNzaW9uIjoiZWUzZmE2ZDgtMjhmYi00Nzg2LWI0MDQtMjg2MDU4NzRhMTFiIiwiYWxsb3dlZC1vcmlnaW5zIjpbXSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJ2aWV3LXByb2ZpbGUiXX19LCJuYW1lIjoibm9ib2R5IG5vYm9keSIsInByZWZlcnJlZF91c2VybmFtZSI6Im5vYm9keSIsImdpdmVuX25hbWUiOiJub2JvZHkiLCJmYW1pbHlfbmFtZSI6Im5vYm9keSIsImVtYWlsIjoibm9ib2R5QG5vYm9keSJ9.NhVBBWigeBqUPXTPm5FTq4pK-1Ghd5BDZ-TriyPck1bbo9GqTBr9aeFRjTbsRU7A7SO0yomVGEd6s4WqDRxPmrAgIN4OcuCAtQcl4nECVjP44VkCMmv17vz9C_XSRmZmK1KNeIuZ2uS3IhKsnLPZRNHwk_6PcfnIuy5pfyAt_BbR8pC_tCc_pTZTBiKVGlADsw-S9qIC2aEw0wGzbLqrwHvCISQwa40unEdhUyj4J0Y_WXDOwtbcV8QVwImw8fx_wgi25iiwwuYdAAlp0fXnZxu_YOirhAkNDMOSxbzsoCW2bt7p51o7unE9bN7f4zMybbP-2KNNkn_L-yhl3W7LKg Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0 Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0/endpoint Request method: GET Request path: https://localhost:8443/apiman-gateway/TestOrg14557491876766811/TestApi14557491877362301/1.0 Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0 Request method: GET Request path: http://localhost:8080/apiman/organizations/TestOrg14557491876766811/apis/TestApi14557491877362301/versions/1.0/endpoint Request method: POST Request path: http://192.168.99.100:8081/auth/realms/qerealm/protocol/openid-connect/token Request method: GET Request path: https://localhost:8443/apiman-gateway/TestOrg14557491876766811/TestApi14557491877362301/1.0?access_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiIyNjBhOGJjOC1iYzc0LTQxZDAtODUxYy0zYWYxODM0NWQ2ZDciLCJleHAiOjE0NTU3NDkyNjAsIm5iZiI6MCwiaWF0IjoxNDU1NzQ5MjMwLCJpc3MiOiJodHRwOi8vMTkyLjE2OC45OS4xMDA6ODA4MS9hdXRoL3JlYWxtcy9xZXJlYWxtIiwiYXVkIjoiYXBpbWFuIiwic3ViIjoiZGU0YWYzMjItODViMi00ZGJlLThkNTMtNmEyZWUyOWU0MDgwIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiYXBpbWFuIiwic2Vzc2lvbl9zdGF0ZSI6IjIxZmE2NGQ0LTkzZTMtNGY2NS05ZDk2LWJkN2E1MDZmZGY0ZCIsImNsaWVudF9zZXNzaW9uIjoiYjMwOWUyNzgtY2NkMC00YzM1LWJmOWMtMDJjYTYyMjAzMzgwIiwiYWxsb3dlZC1vcmlnaW5zIjpbXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImFkbWluIiwidXNlciJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJ2aWV3LXByb2ZpbGUiXX19LCJuYW1lIjoiYWRtaW4gYWRtaW4iLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsImdpdmVuX25hbWUiOiJhZG1pbiIsImZhbWlseV9uYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGFkbWluIn0.Z3AEndDX7mtDVUWgU7DJxq5jFZPI6gMrbUJT1CqBuC6FBk8-ropS4o06ZtHKB6DSZuqPrcA4Zv6e6yqiPAHJLE0-uJlf1qJq9JBIivU7FUJiVcZc_oXEObe2fnoi2RnI10w0_16OsvQv3Wb7yXTE-Tj0fA1X-bro-UYKz4RXP5DYnGTYX1bmWnr8yW_fh2L6OxQlYSqhPd8hC2VvferAnYSauM1wQdjNOACkep7nTm0LvoMjDKtHIyN5b7_hTivHJwUq6ut27O7VkHymrlx0r2U82NalxBvWa59stzYvHwhKwui0aEWBGjyrjnb8jPF2RzX95jUxovRHv9bbMqjkWg HTTP/1.1 404 Not Found Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/9 Content-Length: 74 Content-Type: text/html Date: Wed, 17 Feb 2016 22:47:10 GMT Error 404 - Not Found Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 42.138 sec <<< FAILURE! - in io.apiman.test.integration.rest.plugins.policies.keycloakplugin.KeycloakAuthenticationPolicyIT canAuthenticateViaHeader(io.apiman.test.integration.rest.plugins.policies.keycloakplugin.KeycloakAuthenticationPolicyIT) Time elapsed: 1.292 sec <<< FAILURE! java.lang.AssertionError: Expected status code <200> doesn't match actual status code <404>. at io.apiman.test.integration.rest.plugins.policies.keycloakplugin.KeycloakAuthenticationPolicyIT.canAuthenticateViaHeader(KeycloakAuthenticationPolicyIT.java:71) canAuthenticateViaParameter(io.apiman.test.integration.rest.plugins.policies.keycloakplugin.KeycloakAuthenticationPolicyIT) Time elapsed: 0.282 sec <<< FAILURE! java.lang.AssertionError: Expected status code <200> doesn't match actual status code <404>. at io.apiman.test.integration.rest.plugins.policies.keycloakplugin.KeycloakAuthenticationPolicyIT.canAuthenticateViaParameter(KeycloakAuthenticationPolicyIT.java:59) Results : Failed tests: KeycloakAuthenticationPolicyIT.canAuthenticateViaHeader:71 Expected status code <200> doesn't match actual status code <404>. KeycloakAuthenticationPolicyIT.canAuthenticateViaParameter:59 Expected status code <200> doesn't match actual status code <404>. Tests run: 4, Failures: 2, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-failsafe-plugin:2.19.1:verify (default) @ apiman-it-rest --- [ERROR] There are test failures. Please refer to /Users/msavy/apiman/apiman-qe-tests/apiman-it-rest/target/failsafe-reports for the individual test results. [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ apiman-it-rest --- [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/apiman-it-rest/target/apiman-it-rest-1.1.0-SNAPSHOT.jar to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-it-rest/1.1.0-SNAPSHOT/apiman-it-rest-1.1.0-SNAPSHOT.jar [INFO] Installing /Users/msavy/apiman/apiman-qe-tests/apiman-it-rest/pom.xml to /Users/msavy/.m2/repository/org/jboss/apiman/qa/apiman-it-rest/1.1.0-SNAPSHOT/apiman-it-rest-1.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] org.jboss.apiman.qa :: apiman-integration-tests .... SUCCESS [ 0.233 s] [INFO] org.jboss.apiman.qa :: apiman-it-commons ........... SUCCESS [ 1.999 s] [INFO] org.jboss.apiman.qa :: apiman-it-deployments ....... SUCCESS [ 0.497 s] [INFO] org.jboss.apiman.qa :: apiman-it-coverage .......... SUCCESS [ 0.019 s] [INFO] org.jboss.apiman.qa :: apiman-it-rest .............. SUCCESS [ 45.782 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 48.637 s [INFO] Finished at: 2016-02-17T22:47:10+00:00 [INFO] Final Memory: 31M/313M [INFO] ------------------------------------------------------------------------ [msavy@mmbp apiman-qe-tests](master)$