Project Date
demo 07 May 2022, 19:32

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.605 Passed
Feature at/htl/beeyond/integration/namespace/namespace-assign.feature
Namespace assigning endpoint
0.017
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.016
Tags: @teacher
0.033
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.018
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.011
Then status 200 0.000
And match response.namespace == 'beeyond' 0.001
And match response.users == '#[1]' 0.002
0.010
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.010
Tags: @teacher
0.027
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.018
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.007
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.001
0.014
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.013
Tags: @teacher
0.027
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "moritz",
    "marc"
  ]
}
When method PUT 0.017
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 == '#[3]' 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.017
Given request 0.000
{
  "namespace": "bééyond",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.017
Then status 422 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.023
* def generateString = read('classpath:string-generator.js') 0.002
Given request 0.005
{
  "namespace": #(generateString()),
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.013
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.011
Given request 0.000
{
  "namespace": "marc",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.010
Then status 422 0.000
And match response[0].message == 'Not a valid namespace name' 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.012
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
     "test"
  ]
}
When method PUT 0.011
Then status 422 0.000
And match response[0].message == 'User with name [test] does not exist' 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.014
Given request 0.000
{
  "namespace": "emina",
  "users": [
    "emina"
  ]
}
When method PUT 0.013
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.008
Tags: @teacher
0.039
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.012
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.018
And path 'beeyond' 0.000
When method GET 0.007
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.000
0.017
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.005
* call read('insert-user.js') 0.011
Tags: @teacher
0.034
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.012
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.011
And path 'beeyond' 0.000
When method GET 0.009
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.022
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "emina"
  ]
}
When method PUT 0.013
And path 'beeyond' 0.000
When method GET 0.007
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[1]' 0.000
0.012
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.011
Tags: @teacher
0.014
Given request 0.000
{
  "namespace": "emina",
  "users": [
    "emina",
    "emina"
  ]
}
When method PUT 0.014
Then status 422 0.000
And match response[0].message == 'Not a valid namespace name' 0.000
0.013
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.012
Tags: @teacher
0.043
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.014
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "marc"
  ]
}
When method PUT 0.012
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.014
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.011
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.002
* call read('insert-user.js') 0.009
Tags: @teacher
0.030
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.011
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": []
}
When method PUT 0.010
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.007
Then status 200 0.000
And response.deleted == true 0.000
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.034
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.011
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.010
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.011
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.034
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.014
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "moritz",
    "stuetz"
  ]
}
When method PUT 0.011
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 == '#[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.008
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.001
* call read('insert-user.js') 0.006
0.000