---
test_name: Access without token and with invalid token is rejectd
stages:
- name: POST without token
id: post_without_token
request:
url: '{host}/testuser/testrepo/master/coverage'
method: POST
headers:
content-type: application/json
json:
coverage_total: 50
build_number: 50
response:
status_code: 401
- name: POST with invalid token
id: post_invalid_token
request:
url: '{host}/testuser/testrepo/master/coverage'
method: POST
headers:
content-type: application/json
authorization: 'Bearer zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'
json:
coverage_total: 50
build_number: 50
response:
status_code: 403