Project Date
demo 29 Mar 2022, 06:54

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
at/htl/beeyond/integration/namespace/namespace-assign.feature 170 0 0 0 0 170 17 0 17 0.461 Passed
Feature at/htl/beeyond/integration/namespace/namespace-assign.feature
Namespace assigning endpoint
0.016
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.015
Tags: @teacher
0.026
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.014
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.008
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[1]' 0.002
0.008
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.007
Tags: @teacher
0.020
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.012
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.006
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.001
0.008
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.007
Tags: @teacher
0.021
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "moritz",
    "marc"
  ]
}
When method PUT 0.013
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.006
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[3]' 0.001
0.007
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.011
Given request 0.000
{
  "namespace": "bééyond",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.011
Then status 422 0.000
0.007
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.017
* def generateString = read('classpath:string-generator.js') 0.003
Given request 0.002
{
  "namespace": #(generateString()),
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.009
Then status 422 0.000
And match response[0].message == 'This field needs to be between 1 and 253 characters' 0.001
0.009
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.008
Tags: @teacher
0.013
Given request 0.000
{
  "namespace": "marc",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.012
Then status 422 0.000
And match response[0].message == 'Not a valid namespace name' 0.000
0.009
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* call read('insert-user.js') 0.008
Tags: @teacher
0.013
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
     "test"
  ]
}
When method PUT 0.012
Then status 422 0.000
And match response[0].message == 'User with name [test] does not exist' 0.000
0.006
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.005
Tags: @teacher
0.008
Given request 0.000
{
  "namespace": "emina",
  "users": [
    "emina"
  ]
}
When method PUT 0.008
Then status 422 0.000
And match response[0].message == 'Not a valid namespace name' 0.000
0.005
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.005
Tags: @teacher
0.026
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.009
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.009
And path 'beeyond' 0.000
When method GET 0.006
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.000
0.008
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.007
Tags: @teacher
0.026
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.011
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.008
And path 'beeyond' 0.000
When method GET 0.005
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.000
0.007
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.007
Tags: @teacher
0.017
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "emina"
  ]
}
When method PUT 0.010
And path 'beeyond' 0.000
When method GET 0.006
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[1]' 0.000
0.007
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.009
Given request 0.000
{
  "namespace": "emina",
  "users": [
    "emina",
    "emina"
  ]
}
When method PUT 0.008
Then status 422 0.000
And match response[0].message == 'Not a valid namespace name' 0.000
0.009
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.009
Tags: @teacher
0.024
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.009
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "marc"
  ]
}
When method PUT 0.007
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.005
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[1]' 0.000
And match response.users[0].name == 'marc' 0.000
0.007
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.031
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.009
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": []
}
When method PUT 0.007
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.005
Then status 200 0.000
And response.deleted == true 0.009
0.007
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.024
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.009
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.008
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.005
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.000
0.007
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.025
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.010
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "moritz",
    "stuetz"
  ]
}
When method PUT 0.008
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.005
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.000
And match response.users contains { 'name': 'moritz', 'id': #number } 0.000
And match response.users contains { 'name': 'stuetz', 'id': #number } 0.000
0.009
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* call read('insert-user.js') 0.007
0.000