fluke/devops-service/tests/templates/api_v3/90_delete/10_script.feature.erb
Tim Lianov 03dc3d8d99 v3
2018-04-04 22:44:39 +03:00

13 lines
520 B
Plaintext

@script
Feature: Delete script
Scenario: Delete script with user without privileges
When I send DELETE '/v2.0/script/<%= @config["script"]["name"] %>' query with user without privileges
Then response should be '401'
Scenario: Delete script with id '<%= @config["script"]["name"] %>'
When I send DELETE '/v2.0/script/<%= @config["script"]["name"] %>' query
Then response should be '200'
And the Content-Type header should include 'application/json'
And the JSON response should be an object