Project Date
demo 07 Apr 2022, 15:24

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.605 Passed
Feature at/htl/beeyond/integration/application/template/template-application-creation.feature
Template application creation endpoint
0.209
* 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.120
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.029
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.001
> When method GET 0.047
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.057
Given request 0.001
{
  "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.055
Then status 201 0.000
0.097
* 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.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.024
> 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.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.102
* 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.053
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.025
> 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.033
* def longNote = call read('classpath:string-generator.js') 0.012
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.019
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.077
* 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.037
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.013
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.018
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.018
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.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.016
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.017
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.045
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.045
Then status 422 0.000
And match response contains 0.000
{
  message: "Template with id 10000 does not exist",
  value: "10000",
  key: "templateId"
}
0.079
* 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.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.015
> 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.026
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.084
* 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.045
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.022
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.011
> 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": 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.019
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.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.004
* def insertTemplateResponse = call insertTemplate 0.039
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.039
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.038
Then status 422 0.000
And match response contains { "message": "This field cannot be empty", "value": "", "key": "value" } 0.000
0.082
* 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.041
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.018
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.017
> 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"
    },
    {
      "value": 8080
    }
  ],
  "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": "fieldId" } 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.042
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.015
> 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.074
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.001
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.029
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.002
> Given path __arg.id 0.003
> When method DELETE 0.015
> 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.020
Then status 404 0.000
0.074
* 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.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.018
> 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.059
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.001
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.029
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.023
> 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.090
* url baseUrl 0.000
* path 'application/template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.006
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.005
* def insertTemplateResponse = call insertTemplate 0.042
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.020
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.011
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.000