-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
70 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"api-tuner": patch | ||
--- | ||
|
||
When request fails, ensure that the temporary files are cleaned-up |
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
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,32 @@ | ||
prefix : <https://api-tuner.described.at/test#http-code/> | ||
PREFIX earl: <http://www.w3.org/ns/earl#> | ||
PREFIX tuner: <https://api-tuner.described.at/> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX log: <http://www.w3.org/2000/10/swap/log#> | ||
PREFIX string: <http://www.w3.org/2000/10/swap/string#> | ||
prefix e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#> | ||
|
||
: | ||
a earl:TestCase ; | ||
rdfs:label "Test dailed request" ; | ||
tuner:request [ | ||
a tuner:Request ; | ||
tuner:url <http://foo.bar/baz> ; | ||
tuner:method "GET" ; | ||
] | ||
. | ||
|
||
{ | ||
( | ||
{ :!tuner:request tuner:response ?res } | ||
{ | ||
"Expected failure"^tuner:info . | ||
true log:equalTo false . | ||
} | ||
{ | ||
"if [[ `git status --porcelain` ]]; then exit 1; fi" e:exec 0 . | ||
} | ||
) log:ifThenElseIn [] . | ||
} => { | ||
: earl:outcome earl:passed . | ||
} . |