Project Date
demo 05 Apr 2022, 11:16

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/application/application-deny.feature 156 0 0 0 0 156 7 0 7 0.778 Passed
Feature at/htl/beeyond/integration/application/application-deny.feature
Deny application endpoint
0.065
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.001
* def insertApplicationResponse = call insertApplication 0.033
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.020
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.008
> 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.009
Given path 'deny/'+application.id 0.000
When method PATCH 0.009
Then status 200 0.000
0.053
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.001
* def insertApplicationResponse = call insertApplication 0.027
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.014
> 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.010
Given path 'deny/100' 0.000
When method PATCH 0.010
Then status 404 0.000
0.065
* 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.033
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.016
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.012
> 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.032
Given path 'approve/'+application.id 0.000
When method PATCH 0.023
Given path 'application', 'deny/'+application.id 0.000
When method PATCH 0.008
Then status 422 0.000
And match response == 'Application is not in state PENDING' 0.000
0.083
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.001
* def insertApplicationResponse = call insertApplication 0.044
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.024
> 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.021
Given path 'deny/'+application.id 0.000
When method PATCH 0.012
Given path 'application','deny/'+application.id 0.000
When method PATCH 0.007
Then status 422 0.000
And match response == 'Application is not in state PENDING' 0.000
0.082
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.001
* def insertApplicationResponse = call insertApplication 0.041
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.002
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.023
> 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.093
Given path 'approve/'+application.id 0.000
When method PATCH 0.042
Given path 'application','stop/'+application.id 0.000
When method PATCH 0.040
Given path 'application', 'deny/'+application.id 0.000
When method PATCH 0.010
Then status 422 0.000
And match response == 'Application is not in state PENDING' 0.000
0.064
* url baseUrl 0.000
* path 'application' 0.000
* def insertApplication = read('classpath:at/htl/beeyond/integration/util/create-application.feature') 0.001
* def insertApplicationResponse = call insertApplication 0.033
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.019
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.008
> 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.126
Given path 'approve/'+application.id 0.000
When method PATCH 0.032
Given path 'application', 'finish/'+application.id 0.000
When method PATCH 0.085
Given path 'application', 'deny/'+application.id 0.000
When method PATCH 0.008
Then status 422 0.000
And match response == 'Application is not in state PENDING' 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.001
* def insertApplicationResponse = call insertApplication 0.031
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.016
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.008
> 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: @student
0.006
Given path 'deny/'+application.id 0.000
When method PATCH 0.006
Then status 403 0.000