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/smtp/smtp.feature 20 0 0 0 0 20 1 0 1 1.188 Passed
Feature src/test/resources/feature/smtp/smtp.feature
Configure STMP server
1.188
Given url smtp_url 0.000
10:41:30.831 could not find or read file: classpath:karate-base.js
10:41:30.831 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:30.840 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]}
And header Authorization = 'Bearer ' + accessToken 0.000
And request read('classpath:smtp.json') 0.007
When method POST 0.302
10:41:30.850 request:
1 > POST https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp
1 > Accept-Encoding: gzip,deflate
1 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
1 > Connection: Keep-Alive
1 > Content-Length: 226
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)
{"fromEmailAddress":"test@gmail.com","fromName":"QA-TESTER","host":"smtp.gmail.com","password":"password","port":587,"requiresAuthentication":true,"requiresSsl":true,"serverTrust":true,"userName":"test@gmail.com","valid":true}

10:41:31.150 response time in milliseconds: 299.43
1 < 201
1 < Connection: Keep-Alive
1 < Content-Length: 159
1 < Content-Type: application/json
1 < Date: Wed, 14 Oct 2020 10:41:31 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
{"valid":true,"host":"smtp.gmail.com","port":587,"requires-ssl":false,"trust-host":false,"requires-authentication":false,"password":"CQxJEJT+bp5zYM6Mbm31Nw=="}
Then status 201 0.000
Given url smtp_url 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method GET 0.278
10:41:31.153 request:
2 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp
2 > Accept-Encoding: gzip,deflate
2 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
2 > Connection: Keep-Alive
2 > Host: jenkins-config-api.gluu.org
2 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)

10:41:31.429 response time in milliseconds: 275.67
2 < 200
2 < Connection: Keep-Alive
2 < Content-Length: 159
2 < Content-Type: application/json
2 < Date: Wed, 14 Oct 2020 10:41:31 GMT
2 < Keep-Alive: timeout=5, max=100
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
{"valid":true,"host":"smtp.gmail.com","port":587,"requires-ssl":false,"trust-host":false,"requires-authentication":false,"password":"CQxJEJT+bp5zYM6Mbm31Nw=="}
Then status 200 0.000
And assert response.host == 'smtp.gmail.com' 0.010
Then def result = response 0.000
Given url smtp_url 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And request result 0.000
When method PUT 0.290
10:41:31.443 request:
3 > PUT https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp
3 > Accept-Encoding: gzip,deflate
3 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
3 > Connection: Keep-Alive
3 > Content-Length: 159
3 > Content-Type: application/json; charset=UTF-8
3 > Host: jenkins-config-api.gluu.org
3 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)
{"valid":true,"requires-ssl":false,"password":"CQxJEJT+bp5zYM6Mbm31Nw==","port":587,"requires-authentication":false,"host":"smtp.gmail.com","trust-host":false}

10:41:31.731 response time in milliseconds: 288.35
3 < 200
3 < Connection: Keep-Alive
3 < Content-Length: 179
3 < Content-Type: application/json
3 < Date: Wed, 14 Oct 2020 10:41:31 GMT
3 < Keep-Alive: timeout=5, max=100
3 < Server: Apache/2.4.29 (Ubuntu)
3 < Strict-Transport-Security: max-age=31536000; includeSubDomains
3 < X-Content-Type-Options: nosniff
3 < X-Xss-Protection: 1; mode=block
{"valid":true,"host":"smtp.gmail.com","port":587,"requires-ssl":false,"trust-host":false,"requires-authentication":false,"password":"GlAiK0b3NpJOJiQH9JY9QersF3n3/b3Gc2DOjG5t9Tc="}
Then status 200 0.000
Given url smtp_url 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method DELETE 0.298
10:41:31.733 request:
4 > DELETE https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/smtp
4 > Accept-Encoding: gzip,deflate
4 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
4 > Connection: Keep-Alive
4 > Host: jenkins-config-api.gluu.org
4 > User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.7)

10:41:32.030 response time in milliseconds: 296.42
4 < 204
4 < Connection: Keep-Alive
4 < Date: Wed, 14 Oct 2020 10:41:31 GMT
4 < Keep-Alive: timeout=5, max=100
4 < Server: Apache/2.4.29 (Ubuntu)
4 < Strict-Transport-Security: max-age=31536000; includeSubDomains
4 < X-Content-Type-Options: nosniff
4 < X-Xss-Protection: 1; mode=block
Then status 204 0.000