Project Date
demo 20 Apr 2022, 09:56

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 2.079 Passed
Feature at/htl/beeyond/integration/application/template/template-application-creation.feature
Template application creation endpoint
0.233
* 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.008
* def insertTemplateResponse = call insertTemplate 0.122
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.002
> * 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.046
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.007
> When method GET 0.039
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.074
Given request 0.002
{
  "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.072
Then status 201 0.000
0.240
* 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.002
* def insertTemplateResponse = call insertTemplate 0.145
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.018
> * 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.036
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.001
> When method GET 0.031
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.063
Given request 0.004
{
  "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.059
Then status 201 0.000
0.149
* 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.001
* def insertTemplateResponse = call insertTemplate 0.078
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.010
> * 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.031
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.021
> 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.016
Given request 0.001
{
  "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.021
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.114
* 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.057
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.029
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.018
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.025
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.024
Then status 422 0.000
And match response contains 0.000
{
  "message": "This field cannot be empty",
  "value": "",
  "key": "templateId"
}
0.198
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.051
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.079
at/htl/beeyond/integration/util/create-template.feature 0.000
> * url baseUrl 0.000
> * path 'template' 0.005
> * 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.042
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.013
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.044
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.043
Then status 422 0.000
And match response contains 0.000
{
  message: "Template with id 10000 does not exist",
  value: "10000",
  key: "templateId"
}
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.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.029
> 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.035
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.032
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.082
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.003
* 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.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.016
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.054
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.052
Then status 422 0.000
And def message = 'Missing field ids: [' + template.fields[1].id + '], obsolete field ids: [9999, 10000, 10001]' 0.001
And def expected = 0.000
{
  message: "#(message)",
  value: "",
  key: ""
}
And match response contains expected 0.000
0.102
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.003
* 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.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.024
> 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"
    },
    {}
  ],
  "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": "value" } 0.000
0.073
* 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.038
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.016
> 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.033
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.033
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.003
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.046
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.019
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.083
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.002
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.036
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.001
> Given path __arg.id 0.004
> When method DELETE 0.018
> 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.019
Then status 404 0.000
0.068
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.003
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.033
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.016
> 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.033
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.001
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.016
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.001
> Given path __arg.id 0.000
> When method DELETE 0.010
> 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.004
Then status 404 0.000
0.112
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.005
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.054
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.034
> 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.000