Skip to content

Instantly share code, notes, and snippets.

@jakzal
Last active August 29, 2015 13:57
Show Gist options
  • Save jakzal/9506075 to your computer and use it in GitHub Desktop.
Save jakzal/9506075 to your computer and use it in GitHub Desktop.
Application pings the server
@wip
Feature: Application pings the server
In order to debug the server's health
I need to ping the server
As an Application
Scenario: Debugging request content and headers
When the client requests POST "/debug" with:
"""
X-Debug: 1
X-Debug-Token: abcdef
[
{
"name": "SymfonyCon 2013",
"location": "Warsaw"
}
]
"""
Then the response should be a 200 with json:
"""
{
"headers": {
"X-Debug": "1",
"X-Debug-Token": "abcdef"
},
"content": [
{
"name": "SymfonyCon 2013",
"location": "Warsaw"
}
]
}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment