Project Date
demo 13 Apr 2022, 22:58

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/application/template/template-application-creation.feature 269 0 0 0 0 269 12 0 12 1.880 Passed
Feature at/htl/beeyond/integration/application/template/template-application-creation.feature
Template application creation endpoint
0.259
* url baseUrl 0.000
* path 'application/template' 0.001
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.009
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.012
* def insertTemplateResponse = call insertTemplate 0.137
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.001
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.008
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.001
> Given request 0.003
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.040
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.001
> When method GET 0.039
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.002
Tags: @student
0.066
Given request 0.004
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.062
Then status 201 0.000
0.089
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.003
* def insertTemplateResponse = call insertTemplate 0.044
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.019
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.016
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.054
Given request 0.000
{
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.054
Then status 201 0.000
0.095
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.050
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.001
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.024
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.012
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.038
* def longNote = call read('classpath:string-generator.js') 0.013
Given request 0.000
{
  "note": "#(longNote)",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.023
Then status 422 0.000
And match response contains 0.000
{
  message: "This field needs to be between 0 and 255 characters",
  key: "note",
  value: "#ignore"
}
0.076
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.040
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.017
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.012
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.020
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.019
Then status 422 0.000
And match response contains 0.000
{
  "message": "This field cannot be empty",
  "value": "",
  "key": "templateId"
}
0.081
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.003
* def insertTemplateResponse = call insertTemplate 0.040
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.018
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.014
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.048
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "templateId": 10000,
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.047
Then status 422 0.000
And match response contains 0.000
{
  message: "Template with id 10000 does not exist",
  value: "10000",
  key: "templateId"
}
0.133
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.002
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.006
* def insertTemplateResponse = call insertTemplate 0.066
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.001
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.038
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.014
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.028
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    }
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.024
Then status 422 0.000
And def message = 'Missing field ids: [' + template.fields[1].id + '], obsolete field ids: []' 0.001
And def expected = 0.000
{
  message: "#(message)",
  value: "",
  key: ""
}
And match response contains expected 0.000
0.098
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.003
* def insertTemplateResponse = call insertTemplate 0.048
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.017
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.024
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.038
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": 9999,
      "value": "8081"
    },
    {
      "fieldId": 10000,
      "value": 8082
    },
    {
      "fieldId": 10001,
      "value": 8083
    }
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.036
Then status 422 0.000
And def message = 'Missing field ids: [' + template.fields[1].id + '], obsolete field ids: [9999, 10000, 10001]' 0.000
And def expected = 0.000
{
  message: "#(message)",
  value: "",
  key: ""
}
And match response contains expected 0.000
0.085
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.043
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.001
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.024
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.012
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.024
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {}
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.024
Then status 422 0.000
And match response contains { "message": "This field cannot be empty", "value": "", "key": "value" } 0.000
0.210
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.107
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.017
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.080
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.029
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "value": 8080
    }
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.028
Then status 422 0.000
And match response contains { "message": "This field cannot be empty", "value": "", "key": "fieldId" } 0.000
0.093
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.051
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.025
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.010
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.079
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.001
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.024
at/htl/beeyond/integration/util/delete-template.feature 0.000
{
  "id": 10
}
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path __arg.id 0.003
> When method DELETE 0.013
> Then status 204 0.000
Given path 'application', 'template' 0.000
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[0].id),
      "value": "8081"
    }
  ],
  "templateId": #(template.id),
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.033
Then status 404 0.000
0.086
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.003
* def insertTemplateResponse = call insertTemplate 0.043
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.020
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.015
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.042
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.001
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.021
at/htl/beeyond/integration/util/delete-template.feature 0.000
{
  "id": 11
}
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> Given path __arg.id 0.000
> When method DELETE 0.015
> Then status 204 0.000
Given path 'application', 'template' 0.000
Given request 0.000
{
  "note": "string",
  "namespace": "moritz",
  "templateId": #(template.id),
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.003
Then status 404 0.000
0.100
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.005
* def insertTemplateResponse = call insertTemplate 0.048
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.000
> * configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
> * def content = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
> Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(content)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "Port of your saver",
      "wildcard": "port",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
> When method POST 0.030
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.012
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.000