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/health/health.feature 30 0 0 0 0 30 3 0 3 1.027 Passed
Feature src/test/resources/feature/health/health.feature
Verify API HealthCheck
0.004
* def mainUrl = healthUrl 0.000
10:41:29.009 could not find or read file: classpath:karate-base.js
10:41:29.009 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:29.022 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 health_schema = { name: '#string', status: '#string' } 0.000
* def status_str = 'UP' 0.003
* def response_str = [{"name": "oxauth-config-api liveness","status": "UP"},{"name": "oxauth-config-api readiness","status": "UP"}] 0.000
* def live_str = [{"name": "oxauth-config-api liveness","status": "UP"}] 0.000
* def ready_str = [{"name": "oxauth-config-api readiness","status": "UP"}] 0.000
0.447
Given url mainUrl 0.000
When method GET 0.351
10:41:29.028 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/health
1 > Accept-Encoding: gzip,deflate
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.378 response time in milliseconds: 349.16
1 < 200
1 < Connection: Keep-Alive
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
1 < content-length: 240
1 < content-type: application/json; charset=UTF-8

{
    "status": "UP",
    "checks": [
        {
            "name": "jans-config-api liveness",
            "status": "UP"
        },
        {
            "name": "oxauth-config-api readiness",
            "status": "UP"
        }
    ]
}
Then status 200 0.000
And match response == 0.096
{ 
  "status": #string? _ == status_str,
  "checks": '#(health_schema)',
   checks: '#[2]'  
 }
0.000
* def mainUrl = healthUrl 0.000
10:41:29.480 could not find or read file: classpath:karate-base.js
10:41:29.480 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:29.495 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 health_schema = { name: '#string', status: '#string' } 0.000
* def status_str = 'UP' 0.000
* def response_str = [{"name": "oxauth-config-api liveness","status": "UP"},{"name": "oxauth-config-api readiness","status": "UP"}] 0.000
* def live_str = [{"name": "oxauth-config-api liveness","status": "UP"}] 0.000
* def ready_str = [{"name": "oxauth-config-api readiness","status": "UP"}] 0.000
0.290
Given url mainUrl + '/live/' 0.006
When method GET 0.279
10:41:29.506 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/health/live/
1 > Accept-Encoding: gzip,deflate
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.782 response time in milliseconds: 276.35
1 < 200
1 < Connection: Keep-Alive
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
1 < content-length: 141
1 < content-type: application/json; charset=UTF-8

{
    "status": "UP",
    "checks": [
        {
            "name": "jans-config-api liveness",
            "status": "UP"
        }
    ]
}
Then status 200 0.000
And match response == 0.005
{ 
  "status": #string? _ == status_str,
  "checks": '#(health_schema)',
   checks: '#[1]'  
 }
0.000
* def mainUrl = healthUrl 0.000
10:41:29.792 could not find or read file: classpath:karate-base.js
10:41:29.793 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:29.799 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 health_schema = { name: '#string', status: '#string' } 0.000
* def status_str = 'UP' 0.000
* def response_str = [{"name": "oxauth-config-api liveness","status": "UP"},{"name": "oxauth-config-api readiness","status": "UP"}] 0.000
* def live_str = [{"name": "oxauth-config-api liveness","status": "UP"}] 0.000
* def ready_str = [{"name": "oxauth-config-api readiness","status": "UP"}] 0.000
0.283
Given url mainUrl + '/ready/' 0.004
When method GET 0.277
10:41:29.806 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/health/ready/
1 > Accept-Encoding: gzip,deflate
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:30.082 response time in milliseconds: 274.79
1 < 200
1 < Connection: Keep-Alive
1 < Date: Wed, 14 Oct 2020 10:41:30 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
1 < content-length: 144
1 < content-type: application/json; charset=UTF-8

{
    "status": "UP",
    "checks": [
        {
            "name": "oxauth-config-api readiness",
            "status": "UP"
        }
    ]
}
Then status 200 0.000
And match response == 0.001
{ 
  "status": #string? _ == status_str,
  "checks": '#(health_schema)',
   checks: '#[1]'  
 }