Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow specifying complete URLs to override the base URL
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
source shakedown.sh # load the framework | ||
|
||
shakedown GET /about # make a GET request | ||
status 200 # assert response status is 200 | ||
header 'Content-Type: text/html' # assert response header exists | ||
contains 'Take back your privacy!' # assert resposne body contains string | ||
|
||
shakedown POST / -d 'q=Shakedown' # make a POST request with form data | ||
status 200 | ||
contains 'Bob Seger' | ||
|
||
shakedown GET http://www.google.com -L # provide full url to override default base url. | ||
status 200 # -L cURL option to follow redirects |
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