Skip to content

Instantly share code, notes, and snippets.

@pgburt
Created December 5, 2015 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgburt/ffc0926f569bcff4e87a to your computer and use it in GitHub Desktop.
Save pgburt/ffc0926f569bcff4e87a to your computer and use it in GitHub Desktop.
Feature: Evaluate responses to various HTTP methods.
Background:
Given "curl" is installed
And the following profile:
| name | value |
<% payload.each do |key, value| %>
<%= "| hostname | #{value} |" %>
<% end %>
Scenario Outline: Verify server responds correctly to various HTTP methods
When I launch a "curl" attack with:
"""
curl -i -X <method> <hostname>
"""
Then the output should contain "<response>"
Examples:
| method | response |
| delete | Error 405 (Method Not Allowed) |
| patch | Error 405 (Method Not Allowed) |
| trace | Error 405 (Method Not Allowed) |
| track | Error 405 (Method Not Allowed) |
| bogus | Error 405 (Method Not Allowed) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment