Project Date
demo 19 Apr 2022, 09:15

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.505 Passed
Feature at/htl/beeyond/integration/namespace/namespace-assign.feature
Namespace assigning endpoint
0.015
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.014
Tags: @teacher
0.031
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.016
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.006
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.026
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.006
Then status 200 0.000
And match response.namespace == 'beeyond' 0.000
And match response.users == '#[2]' 0.001
0.006
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.020
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "moritz",
    "marc"
  ]
}
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 == '#[3]' 0.001
0.006
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.006
Tags: @teacher
0.019
Given request 0.000
{
  "namespace": "bééyond",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.019
Then status 422 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
* def generateString = read('classpath:string-generator.js') 0.003
Given request 0.003
{
  "namespace": #(generateString()),
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.018
Then status 422 0.000
And match response[0].message == 'This field needs to be between 1 and 253 characters' 0.001
0.011
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.010
Tags: @teacher
0.009
Given request 0.000
{
  "namespace": "marc",
  "users": [
    "emina",
    "moritz"
  ]
}
When method PUT 0.008
Then status 422 0.000
And match response[0].message == 'Not a valid namespace name' 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.009
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
     "test"
  ]
}
When method PUT 0.008
Then status 422 0.000
And match response[0].message == 'User with name [test] does not exist' 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.010
Given request 0.000
{
  "namespace": "emina",
  "users": [
    "emina"
  ]
}
When method PUT 0.010
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.028
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.011
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
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 == '#[2]' 0.000
0.008
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.008
Tags: @teacher
0.031
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.009
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
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.019
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "emina"
  ]
}
When method PUT 0.011
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.008
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.010
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.009
Tags: @teacher
0.034
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.010
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "marc"
  ]
}
When method PUT 0.009
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.013
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.008
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.000
* call read('insert-user.js') 0.007
Tags: @teacher
0.025
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.008
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.002
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.024
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina"
  ]
}
When method PUT 0.010
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.033
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "emina",
    "marc"
  ]
}
When method PUT 0.013
Then status 204 0.000
Given request 0.000
{
  "namespace": "beeyond",
  "users": [
    "moritz",
    "stuetz"
  ]
}
When method PUT 0.007
Then status 204 0.000
And path 'beeyond' 0.000
When method GET 0.010
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.010
* url baseUrl + '/namespace' 0.000
* configure headers = { Authorization: '#(auth(karate.tags))' } 0.005
* call read('insert-user.js') 0.005
0.000