Project Date
demo 05 Apr 2022, 13:49

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.418 Passed
Feature at/htl/beeyond/integration/application/template/template-application-creation.feature
Template application creation endpoint
0.225
* url baseUrl 0.000
* path 'application/template' 0.001
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.008
* def insertTemplateResponse = call insertTemplate 0.128
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.008
> * 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.034
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.001
> When method GET 0.036
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.044
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.042
Then status 201 0.000
0.083
* 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.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.018
> 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.043
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.043
Then status 201 0.000
0.092
* 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.047
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.030
* def longNote = call read('classpath:string-generator.js') 0.009
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.020
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.094
* 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.047
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.023
> 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.012
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.011
Then status 422 0.000
And match response contains 0.000
{
  "message": "This field cannot be empty",
  "value": "",
  "key": "templateId"
}
0.072
* 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.019
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.009
> 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"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "templateId": 10000,
  "namespace": "moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.034
Then status 422 0.000
And match response contains 0.000
{
  message: "Template with id 10000 does not exist",
  value: "10000",
  key: "templateId"
}
0.091
* 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.047
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.019
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.020
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.017
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.015
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.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.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.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.014
> 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.026
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.024
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.071
* 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.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.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.015
> 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.037
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.036
Then status 422 0.000
And match response contains { "message": "This field cannot be empty", "value": "", "key": "value" } 0.000
0.069
* 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.003
* def insertTemplateResponse = call insertTemplate 0.034
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.010
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.015
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.015
Then status 422 0.000
And match response contains { "message": "This field cannot be empty", "value": "", "key": "fieldId" } 0.000
0.066
* 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.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.014
> 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.054
* 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": 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.012
> 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.012
Then status 404 0.000
0.057
* 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.001
* def insertTemplateResponse = call insertTemplate 0.029
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.014
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.009
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.027
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.001
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.013
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.008
> 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.069
* 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.034
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.013
> 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.000