Project Date
demo 07 Apr 2022, 13:43

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/application/application-stop.feature 353 0 0 0 0 353 8 0 8 2.134 Passed
Feature at/htl/beeyond/integration/application/application-stop.feature
Stop application endpoint
0.215
* 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.003
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "stuetz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
> When method POST 0.021
> 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
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.033
at/htl/beeyond/integration/util/create-student-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.003
> Given request 0.000
{
  "note": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "purpose": "SYP"
}
> When method POST 0.015
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.011
> Then def runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.036
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 38
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.031
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @teacher
0.055
Given path 'approve/'+application.id 0.000
When method PATCH 0.022
Given path 'application', 'stop/'+application.id 0.000
When method PATCH 0.026
Then print karate.prevRequest.headers 0.004
13:42:58.549 [print] {
  "Authorization": [
    "Basic c3R1ZXR6OnBhc3N3b3Jk"
  ],
  "Host": [
    "localhost:8081"
  ],
  "Connection": [
    "Keep-Alive"
  ],
  "User-Agent": [
    "Apache-HttpClient/4.5.13 (Java/11.0.14)"
  ],
  "Accept-Encoding": [
    "gzip,deflate"
  ]
}
 
Then status 200 0.000
0.267
* 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.014
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.016
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.030
at/htl/beeyond/integration/util/create-student-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": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "purpose": "SYP"
}
> When method POST 0.017
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.009
> Then def runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.069
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 40
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.065
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @teacher
0.013
Given path 'stop/100' 0.000
When method PATCH 0.013
Then status 404 0.000
0.205
* 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.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.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.013
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.025
at/htl/beeyond/integration/util/create-student-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": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "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 runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.038
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 42
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.035
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @teacher
0.008
Given path 'stop/'+application.id 0.000
When method PATCH 0.007
Then status 422 0.000
And match response == 'Application is not in state RUNNING' 0.000
0.195
* 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.032
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.004
> * 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
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.029
at/htl/beeyond/integration/util/create-student-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": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "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 runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.036
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 44
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.033
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @teacher
0.012
Given path 'deny/'+application.id 0.000
When method PATCH 0.004
Given path 'application', 'stop/'+application.id 0.000
When method PATCH 0.007
Then status 422 0.000
And match response == 'Application is not in state RUNNING' 0.000
0.279
* 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.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.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
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.033
at/htl/beeyond/integration/util/create-student-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": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "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 runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.075
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 46
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.072
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @teacher
0.111
Given path 'approve/'+application.id 0.000
When method PATCH 0.025
Given path 'application','finish/'+application.id 0.000
When method PATCH 0.074
Given path 'application', 'stop/'+application.id 0.000
When method PATCH 0.010
Then status 422 0.000
And match response == 'Application is not in state RUNNING' 0.000
0.201
* 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.017
> 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
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.030
at/htl/beeyond/integration/util/create-student-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": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "purpose": "SYP"
}
> When method POST 0.019
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.007
> Then def runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.038
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 48
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.034
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @teacher
0.087
Given path 'approve/'+application.id 0.000
When method PATCH 0.029
Given path 'application','stop/'+application.id 0.000
When method PATCH 0.043
Given path 'application', 'stop/'+application.id 0.000
When method PATCH 0.014
Then status 422 0.000
And match response == 'Application is not in state RUNNING' 0.000
0.269
* 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.030
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.009
> Then def application = response 0.000
* def application = insertApplicationResponse.application 0.000
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.031
at/htl/beeyond/integration/util/create-student-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": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "purpose": "SYP"
}
> When method POST 0.021
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.006
> Then def runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.075
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 50
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.072
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @student
0.006
Given path 'stop/'+application.id 0.000
When method PATCH 0.006
Then status 403 0.000
0.166
* 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.030
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.013
> 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
* def insertRunningApplication = read('classpath:at/htl/beeyond/integration/util/create-student-application.feature') 0.000
* def insertRunningApplicationResponse = call insertRunningApplication 0.023
at/htl/beeyond/integration/util/create-student-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": "moritz",
  "class": "5AHIF",
  "to": "26.02.2023",
  "purpose": "SYP"
}
> When method POST 0.012
> Then status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.007
> Then def runningApplication = response 0.000
* def id = insertRunningApplicationResponse.runningApplication.id 0.000
* def approveApplication = read('classpath:at/htl/beeyond/integration/util/approve-student-application.feature') 0.000
* call approveApplication {id: '#(id)'} 0.032
at/htl/beeyond/integration/util/approve-student-application.feature 0.000
{
  "id": 52
}
> * url baseUrl 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path 'application/approve/'+id 0.000
> When method PATCH 0.028
> Then status 200 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @student
0.038
Given path 'stop/'+id 0.000
When method PATCH 0.037
Then status 200 0.000