Project Date
demo 26 Apr 2022, 05:55

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.666 Passed
Feature at/htl/beeyond/integration/application/template/template-application-creation.feature
Template application creation endpoint
0.219
* url baseUrl 0.000
* path 'application/template' 0.001
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.008
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.003
* def insertTemplateResponse = call insertTemplate 0.116
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.039
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.001
> When method GET 0.042
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.069
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": "student-moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.068
Then status 201 0.000
0.104
* 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.002
* 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.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.020
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.059
Given request 0.000
{
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "templateId": #(template.id),
  "namespace": "student-moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.058
Then status 201 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.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.011
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.027
* def longNote = call read('classpath:string-generator.js') 0.007
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": "student-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 needs to be between 0 and 255 characters",
  key: "note",
  value: "#ignore"
}
0.120
* 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.062
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.026
> 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.021
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "namespace": "student-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 cannot be empty",
  "value": "",
  "key": "templateId"
}
0.088
* 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.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.022
> 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.047
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "fieldId": #(template.fields[1].id),
      "value": "8081"
    }
  ],
  "templateId": 10000,
  "namespace": "student-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.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.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.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.025
> 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": "student-moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.022
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.077
* 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.003
* 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.014
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
Tags: @student
0.031
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": "student-moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.030
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.001
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.052
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.004
> 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.028
> 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.027
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {}
  ],
  "templateId": #(template.id),
  "namespace": "student-moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.026
Then status 422 0.000
And match response contains { "message": "This field cannot be empty", "value": "", "key": "value" } 0.000
0.099
* 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.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.032
> 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.022
Given request 0.000
{
  "note": "string",
  "fieldValues": [
    {
      "fieldId": #(template.fields[0].id),
      "value": "4"
    },
    {
      "value": 8080
    }
  ],
  "templateId": #(template.id),
  "namespace": "student-moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.021
Then status 422 0.000
And match response contains { "message": "This field cannot be empty", "value": "", "key": "fieldId" } 0.000
0.090
* 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.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.025
> 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.080
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.004
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.031
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.008
> When method DELETE 0.016
> 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": "student-moritz",
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.016
Then status 404 0.000
0.065
* 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.031
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.045
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.001
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.020
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.015
> Then status 204 0.000
Given path 'application', 'template' 0.000
Given request 0.000
{
  "note": "string",
  "namespace": "student-moritz",
  "templateId": #(template.id),
  "class": "5AHIF",
  "to": "18.01.2022",
  "purpose": "SYP"
}
When method POST 0.006
Then status 404 0.000
0.067
* 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.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.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.000