Skip to content

Instantly share code, notes, and snippets.

@pgburt
Created December 4, 2015 18:08
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/a1f17f2690899019b8b6 to your computer and use it in GitHub Desktop.
Save pgburt/a1f17f2690899019b8b6 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 |
| hostname | google.com |
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