Project Date
demo 30 Mar 2022, 07:06

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/application/application-request.feature 136 0 0 0 0 136 6 0 6 0.624 Passed
Feature at/htl/beeyond/integration/application/application-request.feature
Request application endpoint
0.068
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.000
* def insertApplicationResponse = call insertApplication 0.036
at/htl/beeyond/integration/util/create-application.feature 0.000
> * url baseUrl 0.000
> * path 'application/custom' 0.000
> * def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment.yml.txt') 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.015
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.014
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* configure headers = {Authorization: '#(auth(karate.tags))', 'Content-Type': 'application/json'} 0.000
Tags: @teacher
0.021
Given path 'deny/'+application.id 0.000
When method PATCH 0.011
Given path 'application', 'request/'+application.id 0.000
When method PATCH 0.009
Then status 200 0.000
0.050
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.000
* def insertApplicationResponse = call insertApplication 0.025
at/htl/beeyond/integration/util/create-application.feature 0.000
> * url baseUrl 0.000
> * path 'application/custom' 0.000
> * def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment.yml.txt') 0.002
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.013
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.007
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* configure headers = {Authorization: '#(auth(karate.tags))', 'Content-Type': 'application/json'} 0.000
Tags: @teacher
0.004
Given path 'request/100' 0.000
When method PATCH 0.004
Then status 404 0.000
0.066
* url baseUrl 0.000
* path 'application' 0.001
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.000
* def insertApplicationResponse = call insertApplication 0.035
at/htl/beeyond/integration/util/create-application.feature 0.000
> * url baseUrl 0.000
> * path 'application/custom' 0.000
> * def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment.yml.txt') 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.016
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.010
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* configure headers = {Authorization: '#(auth(karate.tags))', 'Content-Type': 'application/json'} 0.000
Tags: @teacher
0.006
Given path 'request/'+application.id 0.000
When method PATCH 0.005
Then status 422 0.000
And match response == 'Application is not in state DENIED' 0.000
0.059
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.002
* def insertApplicationResponse = call insertApplication 0.029
at/htl/beeyond/integration/util/create-application.feature 0.000
> * url baseUrl 0.000
> * path 'application/custom' 0.000
> * def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment.yml.txt') 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.018
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.007
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* configure headers = {Authorization: '#(auth(karate.tags))', 'Content-Type': 'application/json'} 0.000
Tags: @teacher
0.033
Given path 'approve/'+application.id 0.000
When method PATCH 0.025
Given path 'application', 'request/'+application.id 0.000
When method PATCH 0.007
Then status 422 0.000
And match response == 'Application is not in state DENIED' 0.000
0.058
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.002
* def insertApplicationResponse = call insertApplication 0.029
at/htl/beeyond/integration/util/create-application.feature 0.000
> * url baseUrl 0.000
> * path 'application/custom' 0.000
> * def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment.yml.txt') 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.017
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.007
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* configure headers = {Authorization: '#(auth(karate.tags))', 'Content-Type': 'application/json'} 0.000
Tags: @teacher
0.077
Given path 'approve/'+application.id 0.000
When method PATCH 0.034
Given path 'application','finish/'+application.id 0.000
When method PATCH 0.034
Given path 'application', 'request/'+application.id 0.000
When method PATCH 0.007
Then status 422 0.000
And match response == 'Application is not in state DENIED' 0.000
0.067
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.000
* def insertApplicationResponse = call insertApplication 0.035
at/htl/beeyond/integration/util/create-application.feature 0.000
> * url baseUrl 0.000
> * path 'application/custom' 0.000
> * def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment.yml.txt') 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.017
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.011
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* configure headers = {Authorization: '#(auth(karate.tags))', 'Content-Type': 'application/json'} 0.000
Tags: @teacher
0.107
Given path 'approve/'+application.id 0.000
When method PATCH 0.070
Given path 'application','stop/'+application.id 0.000
When method PATCH 0.029
Given path 'application', 'request/'+application.id 0.000
When method PATCH 0.007
Then status 422 0.000
And match response == 'Application is not in state DENIED' 0.000