Project Number Date
_jans-config-api_master 39 14 Oct 2020, 10:41

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
src/test/resources/feature/openid/clients/custom-attribute.feature 12 0 19 0 0 31 0 1 1 0.320 Failed
Feature src/test/resources/feature/openid/clients/custom-attribute.feature
Openid connect clients to test Custom Attribute for Client Claim Management
0.000
* def mainUrl = openidclients_url 0.000
10:41:29.305 could not find or read file: classpath:karate-base.js
10:41:29.305 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:29.313 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]}
* def customAttributes_url = attributes_url 0.000
0.320
Scenario Connect Client with CustomAttribute Testing for Client Claim Management
Steps
Given url customAttributes_url 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And param pattern = 'customTest' 0.004
And param limit = 1 0.003
When method GET 0.292
10:41:29.323 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/attributes?pattern=customTest&limit=1
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:29.613 response time in milliseconds: 289.50
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 2
1 < Content-Type: application/json
1 < Date: Wed, 14 Oct 2020 10:41:29 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
[]
Then status 200 0.000
And print response 0.000
10:41:29.613 [print] [
]
Then print response[0].name 0.007
10:41:29.621 [print]
Then assert responseStatus == 200 0.004
And eval if( response.length == 0 ||response[0].name != 'customTest' ) karate.abort() 0.008
10:41:29.634 abort at feature: src/test/resources/feature/openid/clients/custom-attribute.feature, scenario: Connect Client with CustomAttribute Testing for Client Claim Management, line: 19
Given url openidclients_url 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And request read('openid-client.json') 0.000
When method POST 0.000
Then status 201 0.000
And print response 0.000
And print response.inum 0.000
Given url openidclients_url + '/' +response.inum 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And header Content-Type = 'application/json-patch+json' 0.000
And header Accept = 'application/json' 0.000
And request read('client_custom_attribute_patch.json') 0.000
When method PATCH 0.000
Then status 200 0.000
And print response 0.000
Given url openidclients_url + '/' +response.inum 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method DELETE 0.000
Then status 204 0.000