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/config/database/ldap/get-ldap-config.feature 7 0 0 0 0 7 1 0 1 1.656 Passed
Feature src/test/resources/feature/config/database/ldap/get-ldap-config.feature
Verify LDAP configuration GET endpoint
0.000
* def mainUrl = ldapUrl 0.000
10:41:22.497 could not find or read file: classpath:karate-base.js
10:41:22.497 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:23.511 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]}
1.656
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method GET 1.628
10:41:23.799 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/config/database/ldap
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:25.141 response time in milliseconds: 1341.02
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 434
1 < Content-Type: application/json
1 < Date: Wed, 14 Oct 2020 10:41:24 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
[{"configId":"couchbase_server","maxConnections":2,"useSSL":true,"useAnonymousBind":false,"enabled":false,"version":0,"level":0},{"configId":"auth_ldap_server","bindDN":"cn=directory manager","bindPassword":"w1ndV7tN3JF4wiouUbplAQ==","servers":["localhost:1636"],"maxConnections":9,"useSSL":true,"baseDNs":["ou=people,o=gluu"],"primaryKey":"uid","localPrimaryKey":"uid","useAnonymousBind":false,"enabled":false,"version":0,"level":0}]
Then status 200 0.000
And print response 0.000
10:41:25.142 [print] [
  {
    "level": 0,
    "configId": "couchbase_server",
    "useAnonymousBind": false,
    "version": 0,
    "enabled": false,
    "maxConnections": 2,
    "useSSL": true
  },
  {
    "bindPassword": "w1ndV7tN3JF4wiouUbplAQ==",
    "level": 0,
    "localPrimaryKey": "uid",
    "version": 0,
    "enabled": false,
    "useSSL": true,
    "bindDN": "cn=directory manager",
    "servers": [
      "localhost:1636"
    ],
    "baseDNs": [
      "ou=people,o=gluu"
    ],
    "configId": "auth_ldap_server",
    "useAnonymousBind": false,
    "maxConnections": 9,
    "primaryKey": "uid"
  }
]
And assert response.length != null 0.026