Last active
August 29, 2015 13:57
-
-
Save jakzal/9506075 to your computer and use it in GitHub Desktop.
Application pings the server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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