Project Number Date
_jans-config-api_master 269 09 Nov 2021, 09:04

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
src/test/resources/feature/defaultAcr/defaultAcr.feature 45 0 0 0 0 45 4 0 4 1.841 Passed
Feature src/test/resources/feature/defaultAcr/defaultAcr.feature
Verify Default ACRS configuration endpoint
0.000
* def mainUrl = acrsUrl 0.000
10:41:28.319 could not find or read file: classpath:karate-base.js
10:41:28.319 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:28.327 karate context init - initial properties: {scopes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/scopes], acrsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs], cacheUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/cache], scriptsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/scripts], authConfigurationUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/oxauth], env=[type: STRING, value: dev], accessToken=[type: STRING, value: c8dd2445-4734-4119-8dd1-4dbe91976202], healthUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/health], attributes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/attributes], smtp_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp], baseUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api], openidsectors_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/sectoridentifiers], fido2Url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config], ldapUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/database/ldap], umaresources_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/uma/resources], openidclients_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/clients]}
Tags: @acrs-get
0.310
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method GET 0.309
10:41:28.330 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs
1 > Accept-Encoding: gzip,deflate
1 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
1 > Connection: Keep-Alive
1 > Host: jenkins-config-api.gluu.org
1 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)

10:41:28.637 response time in milliseconds: 306.59
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 37
1 < Content-Type: application/json
1 < Date: Wed, 14 Oct 2020 10:41:28 GMT
1 < Keep-Alive: timeout=5, max=100
1 < Server: Apache/2.4.29 (Ubuntu)
1 < Strict-Transport-Security: max-age=31536000; includeSubDomains
1 < X-Content-Type-Options: nosniff
1 < X-Xss-Protection: 1; mode=block
{"defaultAcr":"simple_password_auth"}
Then status 200 0.000
And print response 0.000
10:41:28.638 [print] {
  "defaultAcr": "simple_password_auth"
}
And assert response.length != null 0.000
0.000
* def mainUrl = acrsUrl 0.000
10:41:28.322 could not find or read file: classpath:karate-base.js
10:41:28.322 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:28.329 karate context init - initial properties: {scopes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/scopes], acrsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs], cacheUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/cache], scriptsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/scripts], authConfigurationUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/oxauth], env=[type: STRING, value: dev], accessToken=[type: STRING, value: c8dd2445-4734-4119-8dd1-4dbe91976202], healthUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/health], attributes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/attributes], smtp_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp], baseUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api], openidsectors_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/sectoridentifiers], fido2Url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config], ldapUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/database/ldap], umaresources_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/uma/resources], openidclients_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/clients]}
Tags: @acrs-put
0.325
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And request read('defaultAcr.json') 0.009
When method PUT 0.315
10:41:28.340 request:
1 > PUT https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs
1 > Accept-Encoding: gzip,deflate
1 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
1 > Connection: Keep-Alive
1 > Content-Length: 73
1 > Content-Type: application/json; charset=UTF-8
1 > Host: jenkins-config-api.gluu.org
1 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)
{"defaultAcr":"simple_password_auth","oxtrustAcr":"simple_password_auth"}

10:41:28.654 response time in milliseconds: 313.18
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 9
1 < Content-Type: application/json
1 < Date: Wed, 14 Oct 2020 10:41:28 GMT
1 < Keep-Alive: timeout=5, max=100
1 < Server: Apache/2.4.29 (Ubuntu)
1 < Strict-Transport-Security: max-age=31536000; includeSubDomains
1 < X-Content-Type-Options: nosniff
1 < X-Xss-Protection: 1; mode=block
"SUCCESS"
Then status 200 0.000
And print response 0.000
10:41:28.654 [print] "SUCCESS"
And assert response.length != null 0.000
0.000
* def mainUrl = acrsUrl 0.000
10:41:28.645 could not find or read file: classpath:karate-base.js
10:41:28.645 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:28.658 karate context init - initial properties: {scopes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/scopes], acrsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs], cacheUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/cache], scriptsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/scripts], authConfigurationUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/oxauth], env=[type: STRING, value: dev], accessToken=[type: STRING, value: c8dd2445-4734-4119-8dd1-4dbe91976202], healthUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/health], attributes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/attributes], smtp_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp], baseUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api], openidsectors_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/sectoridentifiers], fido2Url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config], ldapUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/database/ldap], umaresources_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/uma/resources], openidclients_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/clients]}
Tags: @acrs-error
0.610
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method GET 0.290
10:41:28.660 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs
1 > Accept-Encoding: gzip,deflate
1 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
1 > Connection: Keep-Alive
1 > Host: jenkins-config-api.gluu.org
1 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)

10:41:28.948 response time in milliseconds: 288.20
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 37
1 < Content-Type: application/json
1 < Date: Wed, 14 Oct 2020 10:41:28 GMT
1 < Keep-Alive: timeout=5, max=100
1 < Server: Apache/2.4.29 (Ubuntu)
1 < Strict-Transport-Security: max-age=31536000; includeSubDomains
1 < X-Content-Type-Options: nosniff
1 < X-Xss-Protection: 1; mode=block
{"defaultAcr":"simple_password_auth"}
Then status 200 0.000
And print response 0.000
10:41:28.949 [print] {
  "defaultAcr": "simple_password_auth"
}
And assert response.length != null 0.000
Then def result = response 0.000
Then set result.defaultAcr = null 0.005
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And request result 0.000
When method PUT 0.312
10:41:28.959 request:
2 > PUT https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs
2 > Accept-Encoding: gzip,deflate
2 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
2 > Connection: Keep-Alive
2 > Content-Length: 19
2 > Content-Type: application/json; charset=UTF-8
2 > Host: jenkins-config-api.gluu.org
2 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)
{"defaultAcr":null}

10:41:29.267 response time in milliseconds: 306.72
2 < 400
2 < Connection: close
2 < Content-Length: 320
2 < Content-Type: text/html; charset=iso-8859-1
2 < Date: Wed, 14 Oct 2020 10:41:29 GMT
2 < Server: Apache/2.4.29 (Ubuntu)
2 < Strict-Transport-Security: max-age=31536000; includeSubDomains
2 < X-Content-Type-Options: nosniff
2 < X-Xss-Protection: 1; mode=block
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at jenkins-config-api.gluu.org Port 443</address>
</body></html>


10:41:29.269 xml parsing failed, response data type set to string: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId.
Then status 400 0.000
And print response 0.000
10:41:29.269 [print] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at jenkins-config-api.gluu.org Port 443</address>
</body></html>
0.000
* def mainUrl = acrsUrl 0.000
10:41:28.659 could not find or read file: classpath:karate-base.js
10:41:28.659 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:28.668 karate context init - initial properties: {scopes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/scopes], acrsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs], cacheUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/cache], scriptsUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/scripts], authConfigurationUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/oxauth], env=[type: STRING, value: dev], accessToken=[type: STRING, value: c8dd2445-4734-4119-8dd1-4dbe91976202], healthUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/health], attributes_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/attributes], smtp_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp], baseUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api], openidsectors_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/sectoridentifiers], fido2Url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config], ldapUrl=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/database/ldap], umaresources_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/uma/resources], openidclients_url=[type: STRING, value: https://jenkins-config-api.gluu.org/jans-config-api/api/v1/openid/clients]}
Tags: @acrs-error
0.595
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method GET 0.292
10:41:28.672 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs
1 > Accept-Encoding: gzip,deflate
1 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
1 > Connection: Keep-Alive
1 > Host: jenkins-config-api.gluu.org
1 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)

10:41:28.962 response time in milliseconds: 289.53
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 37
1 < Content-Type: application/json
1 < Date: Wed, 14 Oct 2020 10:41:28 GMT
1 < Keep-Alive: timeout=5, max=100
1 < Server: Apache/2.4.29 (Ubuntu)
1 < Strict-Transport-Security: max-age=31536000; includeSubDomains
1 < X-Content-Type-Options: nosniff
1 < X-Xss-Protection: 1; mode=block
{"defaultAcr":"simple_password_auth"}
Then status 200 0.000
And print response 0.000
10:41:28.963 [print] {
  "defaultAcr": "simple_password_auth"
}
And assert response.length != null 0.000
Then def result = response 0.000
Then set result.oxtrustAcr = '' 0.005
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And request result 0.000
When method PUT 0.295
10:41:28.971 request:
2 > PUT https://jenkins-config-api.gluu.org/jans-config-api/api/v1/acrs
2 > Accept-Encoding: gzip,deflate
2 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
2 > Connection: Keep-Alive
2 > Content-Length: 53
2 > Content-Type: application/json; charset=UTF-8
2 > Host: jenkins-config-api.gluu.org
2 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)
{"defaultAcr":"simple_password_auth","oxtrustAcr":""}

10:41:29.261 response time in milliseconds: 287.93
2 < 400
2 < Connection: close
2 < Content-Length: 320
2 < Content-Type: text/html; charset=iso-8859-1
2 < Date: Wed, 14 Oct 2020 10:41:29 GMT
2 < Server: Apache/2.4.29 (Ubuntu)
2 < Strict-Transport-Security: max-age=31536000; includeSubDomains
2 < X-Content-Type-Options: nosniff
2 < X-Xss-Protection: 1; mode=block
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at jenkins-config-api.gluu.org Port 443</address>
</body></html>


10:41:29.265 xml parsing failed, response data type set to string: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId.
Then status 400 0.000
And print response 0.000
10:41:29.265 [print] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at jenkins-config-api.gluu.org Port 443</address>
</body></html>