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/fido2/fido2.feature 29 0 0 0 0 29 3 0 3 1.167 Passed
Feature src/test/resources/feature/fido2/fido2.feature
Verify Fido2 configuration endpoint
0.000
* def mainUrl = fido2Url 0.000
10:41:28.689 could not find or read file: classpath:karate-base.js
10:41:28.689 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:28.701 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: @fido-get
0.291
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method GET 0.290
10:41:28.704 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config
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.992 response time in milliseconds: 287.05
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 956
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
{"useLocalCache":true,"metricReporterInterval":300,"cleanServiceInterval":60,"issuer":"https://jenkins-config-api.gluu.org","baseEndpoint":"https://jenkins-config-api.gluu.org/fido2/restv1","disableJdkLogger":true,"externalLoggerConfiguration":"","cleanServiceBatchChunkSize":10000,"metricReporterEnabled":true,"loggingLayout":"text","metricReporterKeepDataDays":15,"loggingLevel":"INFO","personCustomObjectClassList":["gluuCustomPerson","gluuPerson"],"fido2Configuration":{"serverMetadataFolder":"/etc/gluu/conf/fido2/server_metadata","requestedParties":[{"name":"https://jenkins-config-api.gluu.org","domains":["jenkins-config-api.gluu.org"]}],"authenticationHistoryExpiration":800,"mdsTocsFolder":"/etc/gluu/conf/fido2/mds/toc","requestedCredentialTypes":["RS256","ES256"],"authenticatorCertsFolder":"/etc/gluu/conf/fido2/authenticator_cert","userAutoEnrollment":false,"unfinishedRequestExpiration":180,"mdsCertsFolder":"/etc/gluu/conf/fido2/mds/cert"}}
Then status 200 0.000
And print response 0.000
10:41:28.993 [print] {
  "useLocalCache": true,
  "metricReporterInterval": 300,
  "cleanServiceInterval": 60,
  "issuer": "https://jenkins-config-api.gluu.org",
  "baseEndpoint": "https://jenkins-config-api.gluu.org/fido2/restv1",
  "disableJdkLogger": true,
  "externalLoggerConfiguration": "",
  "cleanServiceBatchChunkSize": 10000,
  "metricReporterEnabled": true,
  "loggingLayout": "text",
  "metricReporterKeepDataDays": 15,
  "loggingLevel": "INFO",
  "personCustomObjectClassList": [
    "gluuCustomPerson",
    "gluuPerson"
  ],
  "fido2Configuration": {
    "serverMetadataFolder": "/etc/gluu/conf/fido2/server_metadata",
    "requestedParties": [
      {
        "name": "https://jenkins-config-api.gluu.org",
        "domains": [
          "jenkins-config-api.gluu.org"
        ]
      }
    ],
    "authenticationHistoryExpiration": 800,
    "mdsTocsFolder": "/etc/gluu/conf/fido2/mds/toc",
    "requestedCredentialTypes": [
      "RS256",
      "ES256"
    ],
    "authenticatorCertsFolder": "/etc/gluu/conf/fido2/authenticator_cert",
    "userAutoEnrollment": false,
    "unfinishedRequestExpiration": 180,
    "mdsCertsFolder": "/etc/gluu/conf/fido2/mds/cert"
  }
}
And assert response.length != null 0.000
0.000
* def mainUrl = fido2Url 0.000
10:41:28.877 could not find or read file: classpath:karate-base.js
10:41:28.877 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:28.887 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: @fido-put
0.587
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
When method GET 0.281
10:41:28.890 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config
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.169 response time in milliseconds: 278.27
1 < 200
1 < Connection: Keep-Alive
1 < Content-Length: 956
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
{"useLocalCache":true,"metricReporterInterval":300,"cleanServiceInterval":60,"issuer":"https://jenkins-config-api.gluu.org","baseEndpoint":"https://jenkins-config-api.gluu.org/fido2/restv1","disableJdkLogger":true,"externalLoggerConfiguration":"","cleanServiceBatchChunkSize":10000,"metricReporterEnabled":true,"loggingLayout":"text","metricReporterKeepDataDays":15,"loggingLevel":"INFO","personCustomObjectClassList":["gluuCustomPerson","gluuPerson"],"fido2Configuration":{"serverMetadataFolder":"/etc/gluu/conf/fido2/server_metadata","requestedParties":[{"name":"https://jenkins-config-api.gluu.org","domains":["jenkins-config-api.gluu.org"]}],"authenticationHistoryExpiration":800,"mdsTocsFolder":"/etc/gluu/conf/fido2/mds/toc","requestedCredentialTypes":["RS256","ES256"],"authenticatorCertsFolder":"/etc/gluu/conf/fido2/authenticator_cert","userAutoEnrollment":false,"unfinishedRequestExpiration":180,"mdsCertsFolder":"/etc/gluu/conf/fido2/mds/cert"}}
Then status 200 0.000
And print response 0.000
10:41:29.170 [print] {
  "useLocalCache": true,
  "metricReporterInterval": 300,
  "cleanServiceInterval": 60,
  "issuer": "https://jenkins-config-api.gluu.org",
  "baseEndpoint": "https://jenkins-config-api.gluu.org/fido2/restv1",
  "disableJdkLogger": true,
  "externalLoggerConfiguration": "",
  "cleanServiceBatchChunkSize": 10000,
  "metricReporterEnabled": true,
  "loggingLayout": "text",
  "metricReporterKeepDataDays": 15,
  "loggingLevel": "INFO",
  "personCustomObjectClassList": [
    "gluuCustomPerson",
    "gluuPerson"
  ],
  "fido2Configuration": {
    "serverMetadataFolder": "/etc/gluu/conf/fido2/server_metadata",
    "requestedParties": [
      {
        "name": "https://jenkins-config-api.gluu.org",
        "domains": [
          "jenkins-config-api.gluu.org"
        ]
      }
    ],
    "authenticationHistoryExpiration": 800,
    "mdsTocsFolder": "/etc/gluu/conf/fido2/mds/toc",
    "requestedCredentialTypes": [
      "RS256",
      "ES256"
    ],
    "authenticatorCertsFolder": "/etc/gluu/conf/fido2/authenticator_cert",
    "userAutoEnrollment": false,
    "unfinishedRequestExpiration": 180,
    "mdsCertsFolder": "/etc/gluu/conf/fido2/mds/cert"
  }
}
And assert response.length != null 0.000
Then def result = response 0.000
And print result.fido2Configuration.authenticationHistoryExpiration 0.004
10:41:29.175 [print] 800
Then set result.fido2Configuration.authenticationHistoryExpiration = 800 0.005
And print result.fido2Configuration.authenticationHistoryExpiration 0.000
10:41:29.181 [print] 800
Given url mainUrl 0.000
And header Authorization = 'Bearer ' + accessToken 0.000
And request result 0.000
When method PUT 0.294
10:41:29.183 request:
2 > PUT https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config
2 > Accept-Encoding: gzip,deflate
2 > Authorization: Bearer c8dd2445-4734-4119-8dd1-4dbe91976202
2 > Connection: Keep-Alive
2 > Content-Length: 956
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)
{"useLocalCache":true,"metricReporterInterval":300,"cleanServiceInterval":60,"issuer":"https://jenkins-config-api.gluu.org","baseEndpoint":"https://jenkins-config-api.gluu.org/fido2/restv1","disableJdkLogger":true,"externalLoggerConfiguration":"","cleanServiceBatchChunkSize":10000,"metricReporterEnabled":true,"loggingLayout":"text","metricReporterKeepDataDays":15,"loggingLevel":"INFO","personCustomObjectClassList":["gluuCustomPerson","gluuPerson"],"fido2Configuration":{"serverMetadataFolder":"/etc/gluu/conf/fido2/server_metadata","requestedParties":[{"name":"https://jenkins-config-api.gluu.org","domains":["jenkins-config-api.gluu.org"]}],"authenticationHistoryExpiration":800,"mdsTocsFolder":"/etc/gluu/conf/fido2/mds/toc","requestedCredentialTypes":["RS256","ES256"],"authenticatorCertsFolder":"/etc/gluu/conf/fido2/authenticator_cert","userAutoEnrollment":false,"unfinishedRequestExpiration":180,"mdsCertsFolder":"/etc/gluu/conf/fido2/mds/cert"}}

10:41:29.465 response time in milliseconds: 282.15
2 < 200
2 < Connection: Keep-Alive
2 < Content-Length: 956
2 < Content-Type: application/json
2 < Date: Wed, 14 Oct 2020 10:41:29 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
{"useLocalCache":true,"metricReporterInterval":300,"cleanServiceInterval":60,"issuer":"https://jenkins-config-api.gluu.org","baseEndpoint":"https://jenkins-config-api.gluu.org/fido2/restv1","disableJdkLogger":true,"externalLoggerConfiguration":"","cleanServiceBatchChunkSize":10000,"metricReporterEnabled":true,"loggingLayout":"text","metricReporterKeepDataDays":15,"loggingLevel":"INFO","personCustomObjectClassList":["gluuCustomPerson","gluuPerson"],"fido2Configuration":{"serverMetadataFolder":"/etc/gluu/conf/fido2/server_metadata","requestedParties":[{"name":"https://jenkins-config-api.gluu.org","domains":["jenkins-config-api.gluu.org"]}],"authenticationHistoryExpiration":800,"mdsTocsFolder":"/etc/gluu/conf/fido2/mds/toc","requestedCredentialTypes":["RS256","ES256"],"authenticatorCertsFolder":"/etc/gluu/conf/fido2/authenticator_cert","userAutoEnrollment":false,"unfinishedRequestExpiration":180,"mdsCertsFolder":"/etc/gluu/conf/fido2/mds/cert"}}
Then status 200 0.000
And print response 0.000
10:41:29.476 [print] {
  "useLocalCache": true,
  "metricReporterInterval": 300,
  "cleanServiceInterval": 60,
  "issuer": "https://jenkins-config-api.gluu.org",
  "baseEndpoint": "https://jenkins-config-api.gluu.org/fido2/restv1",
  "disableJdkLogger": true,
  "externalLoggerConfiguration": "",
  "cleanServiceBatchChunkSize": 10000,
  "metricReporterEnabled": true,
  "loggingLayout": "text",
  "metricReporterKeepDataDays": 15,
  "loggingLevel": "INFO",
  "personCustomObjectClassList": [
    "gluuCustomPerson",
    "gluuPerson"
  ],
  "fido2Configuration": {
    "serverMetadataFolder": "/etc/gluu/conf/fido2/server_metadata",
    "requestedParties": [
      {
        "name": "https://jenkins-config-api.gluu.org",
        "domains": [
          "jenkins-config-api.gluu.org"
        ]
      }
    ],
    "authenticationHistoryExpiration": 800,
    "mdsTocsFolder": "/etc/gluu/conf/fido2/mds/toc",
    "requestedCredentialTypes": [
      "RS256",
      "ES256"
    ],
    "authenticatorCertsFolder": "/etc/gluu/conf/fido2/authenticator_cert",
    "userAutoEnrollment": false,
    "unfinishedRequestExpiration": 180,
    "mdsCertsFolder": "/etc/gluu/conf/fido2/mds/cert"
  }
}
0.000
* def mainUrl = fido2Url 0.000
10:41:29.002 could not find or read file: classpath:karate-base.js
10:41:29.002 skipping 'classpath:karate-base.js': could not find or read file: classpath:karate-base.js
10:41:29.011 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]}
0.288
Given url mainUrl 0.000
When method GET 0.288
10:41:29.014 request:
1 > GET https://jenkins-config-api.gluu.org/jans-config-api/api/v1/fido2/config
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.293 response time in milliseconds: 278.70
1 < 401
1 < Connection: Keep-Alive
1 < Content-Length: 475
1 < Content-Type: text/html; charset=iso-8859-1
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 < WWW-Authenticate: Bearer
1 < X-Content-Type-Options: nosniff
1 < X-Xss-Protection: 1; mode=block
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at jenkins-config-api.gluu.org Port 443</address>
</body></html>


10:41:29.300 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 401 0.000
And print response 0.000
10:41:29.300 [print] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at jenkins-config-api.gluu.org Port 443</address>
</body></html>