Project Date
demo 27 Apr 2022, 18:37

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/template/template-creation.feature 113 0 0 0 0 113 14 0 14 0.220 Passed
Feature at/htl/beeyond/integration/template/template-creation.feature
Template creation endpoint
0.007
* url baseUrl 0.000
* path 'template' 0.003
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.002
Tags: @teacher
0.015
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "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
Then status 201 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.019
Given request 0.000
{
  "name": "Nginx Deployment",
  "content": "#(nginxDeployment)",
  "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
Then status 201 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.008
Given request 0.000
{
  "description": "Static Webserver"
}
When method POST 0.008
Then status 422 0.000
And match response contains { message: 'This field cannot be empty', key: 'name', value: '' } 0.000
And match response contains { message: 'This field cannot be empty', key: 'content', value: '' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.018
Given request 0.005
{
  "name": #(generateString()),
  "description": #(generateString()),
  "content": "#(nginxDeployment)",
  "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
Then status 422 0.000
And match response contains {message:'This field needs to be between 1 and 255 characters', key: 'name', value:'#ignore'} 0.000
And match response contains {message:'This field needs to be between 0 and 255 characters', key: 'description', value:'#ignore'} 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.013
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    }
  ]
}
When method POST 0.013
Then status 422 0.000
And match response contains { message: 'Missing fields: [port], obsolete fields: []', value: '', key: '' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.010
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": []
}
When method POST 0.010
Then status 422 0.000
And match response contains { message: 'Missing fields: [replica, port], obsolete fields: []', value: '', key: '' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.014
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
When method POST 0.013
Then status 422 0.000
And match response contains { message:'This field cannot be empty' ,value: '' ,key: 'wildcard' } 0.000
And match response contains { message:'This field cannot be empty' ,value: '' ,key: 'label' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.008
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": "",
      "wildcard": "",
      "description": "This will be the port that will be exposed to the world"
    }
  ]
}
When method POST 0.008
Then status 422 0.000
And match response contains { message: 'This field cannot be empty' , value: '' , key: 'wildcard' } 0.000
And match response contains { message: 'This field cannot be empty' , value: '' , key: 'label' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.014
Given request 0.005
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "label": #(generateString()),
      "wildcard": #(generateString()),
      "description": #(generateString())
    }
  ]
}
When method POST 0.009
Then status 422 0.000
And match response contains { message: 'This field needs to be between 0 and 255 characters', key:'label', value: '#ignore' } 0.000
And match response contains { message: 'This field needs to be between 0 and 255 characters', key:'description', value: '#ignore' } 0.000
And match response contains { message: 'This field needs to be between 0 and 255 characters', key:'wildcard', value: '#ignore' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.011
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "wrong-wildcard",
      "description": "How many server should there be?"
    },
  ]
}
When method POST 0.010
Then status 422 0.000
And match response contains { message: 'Missing fields: [replica, port], obsolete fields: [wrong-wildcard]', value: '', key: '' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.009
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": [
    {
      "label": "Server count",
      "wildcard": "wrong-wildcard",
      "description": "How many server should there be?"
    },
    {
      "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.009
Then status 422 0.000
And match response contains { message: 'Missing fields: [], obsolete fields: [wrong-wildcard]', value: '', key: '' } 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.017
Given request 0.000
{
  "id": 9999,
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "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
Then status 201 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.014
Given request 0.000
{
  "deleted": true,
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "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
Then status 201 0.000
0.001
* url baseUrl 0.000
* path 'template' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* def nginxDeployment = read('classpath:at/htl/beeyond/integration/util/nginx-deployment-template.yml.txt') 0.000
Tags: @teacher
0.019
Given request 0.000
{
  "name": "Nginx Deployment",
  "description": "Static Webserver",
  "content": "#(nginxDeployment)",
  "fields": [
    {
      "id": 9998,
      "label": "Server count",
      "wildcard": "replica",
      "description": "How many server should there be?"
    },
    {
      "id": 9999,
      "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
Then status 201 0.000