fluke/devops-service/tests/templates/api_v2/10_create/30_script.feature.erb

21 lines
729 B
Plaintext

@script
Feature: Add new script
Scenario: Add new script with user without privileges
When I send PUT '/v2.0/script/<%= @config["script"]["name"] %>' query with user without privileges
Then response should be '401'
Scenario: Add new script without header 'Accept'
When I send PUT '/v2.0/script/<%= @config["script"]["name"] %>' query with body without header 'Accept'
"""
echo "<%= @config["script"]["name"] %>"
"""
Then response should be '406'
Scenario: Add new script with id '<%= @config["script"]["name"] %>'
When I send PUT '/v2.0/script/<%= @config["script"]["name"] %>' query with body
"""
echo "<%= @config["script"]["name"] %>"
"""
Then response should be '201'