Project Date
demo 19 Apr 2022, 10:08

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/template/template-get.feature 82 0 0 0 0 82 3 0 3 0.272 Passed
Feature at/htl/beeyond/integration/template/template-get.feature
Get template endpoint
0.052
* url baseUrl 0.000
* path 'template' 0.000
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.027
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.012
> And status 201 0.000
> Given url responseHeaders['Location'][0] 0.000
> When method GET 0.007
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @teacher
0.010
When method GET 0.010
Then status 200 0.000
And assert response.length == 1 0.000
0.055
* url baseUrl 0.000
* path 'template' 0.000
* def insertTemplate = read('classpath:at/htl/beeyond/integration/util/create-template.feature') 0.001
* def insertTemplateResponse = call insertTemplate 0.028
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
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @student
0.049
* configure headers = {Authorization: '#(auth(["teacher"]))'} 0.002
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.003
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.016
at/htl/beeyond/integration/util/delete-template.feature 0.000
{
  "id": 19
}
> * 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
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.003
Given method GET 0.010
Then status 200 0.000
And assert response.length == 0 0.000
0.071
* url baseUrl 0.000
* path 'template' 0.000
* 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.014
> Then def template = response 0.000
* def template = insertTemplateResponse.template 0.000
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Tags: @student
0.032
* configure headers = {Authorization: '#(auth(["teacher"]))'} 0.000
* def deleteTemplate = read('classpath:at/htl/beeyond/integration/util/delete-template.feature') 0.000
* def insertTemplateResponse = call deleteTemplate { id: #(template.id) } 0.012
at/htl/beeyond/integration/util/delete-template.feature 0.000
{
  "id": 20
}
> * 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
* configure headers = {Authorization: '#(auth(karate.tags))'} 0.000
Given path template.id 0.000
And method GET 0.008
Then status 404 0.000