Project Date
demo 27 Apr 2022, 18:40

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/application/application-approve.feature 156 0 0 0 0 156 7 0 7 0.915 Passed
Feature at/htl/beeyond/integration/application/application-approve.feature
Approve application endpoint
0.112
* 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.056
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.001
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.004
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "student-stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.030
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.013
> 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.024
Given path 'approve/'+application.id 0.000
When method PATCH 0.023
Then status 200 0.000
0.084
* 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": "student-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.015
> 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.007
Given path 'approve/100' 0.000
When method PATCH 0.006
Then status 404 0.000
0.076
* 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.038
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.004
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "student-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.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.033
Given path 'deny/'+application.id 0.000
When method PATCH 0.014
Given path 'application', 'approve/'+application.id 0.000
When method PATCH 0.016
Then status 422 0.000
And match response == 'Application is not in state PENDING' 0.000
0.087
* 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": "student-stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.026
> 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.100
Given path 'approve/'+application.id 0.000
When method PATCH 0.085
Given path 'application', 'approve/'+application.id 0.000
When method PATCH 0.013
Then status 422 0.000
And match response == 'Application is not in state PENDING' 0.000
0.091
* 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.045
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.001
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "student-stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.026
> 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.090
Given path 'approve/'+application.id 0.000
When method PATCH 0.037
Given path 'application','stop/'+application.id 0.000
When method PATCH 0.039
Given path 'application', 'approve/'+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.076
* 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.039
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": "student-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.009
> 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.054
Given path 'approve/'+application.id 0.000
When method PATCH 0.021
Given path 'application', 'finish/'+application.id 0.000
When method PATCH 0.021
Given path 'application', 'approve/'+application.id 0.000
When method PATCH 0.009
Then status 422 0.000
And match response == 'Application is not in state PENDING' 0.000
0.072
* 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.038
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": "student-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: @student
0.006
Given path 'approve/'+application.id 0.000
When method PATCH 0.006
Then status 403 0.000