-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from programmfabrik/fix_control_in_array
Fix control in array
- Loading branch information
Showing
5 changed files
with
178 additions
and
8 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
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,142 @@ | ||
{ | ||
"http_server": { | ||
"addr": ":9999", | ||
"dir": "../_res", | ||
"testmode": false | ||
}, | ||
"name": "check control structures in array", | ||
"tests": [ | ||
{ | ||
"name": "check control structures in array", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "bounce-json", | ||
"method": "POST", | ||
"body": { | ||
"_files": [ | ||
{ | ||
"path": "Test XML+CSV+JSON/1-2.csv" | ||
}, | ||
{ | ||
"path": "Test XML+CSV+JSON/1-2.json" | ||
}, | ||
{ | ||
"path": "files/no-1-sid-10-berlin.jpg" | ||
}, | ||
{ | ||
"path": "files/no-2-sid-10-mona-lisa-1.jpg" | ||
}, | ||
{ | ||
"path": "files/no-3-sid-9-Gustav_Klimt_016.jpg" | ||
}, | ||
{ | ||
"path": "files/no-4-sid-9-art-exposition-735518_1920_big_small.png" | ||
}, | ||
{ | ||
"path": "files/so-henk-was-here_small.png" | ||
} | ||
] | ||
} | ||
}, | ||
"response": { | ||
"statuscode": 200, | ||
"body": { | ||
"body": { | ||
"_files": [ | ||
{ | ||
"path:control": { | ||
"match": "^.*Gustav_Klimt_016.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*art-exposition-735518_1920.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*berlin.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*mona-lisa-1.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*henk.*$" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "check control structures in array (should fail)", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "bounce-json", | ||
"method": "POST", | ||
"body": { | ||
"_files": [ | ||
{ | ||
"path": "Test XML+CSV+JSON/1-2.csv" | ||
}, | ||
{ | ||
"path": "Test XML+CSV+JSON/1-2.json" | ||
}, | ||
{ | ||
"path": "files/no-1-sid-10-berlin.jpg" | ||
}, | ||
{ | ||
"path": "files/no-2-sid-10-mona-lisa-1.jpg" | ||
}, | ||
{ | ||
"path": "files/no-3-sid-9-Gustav_Klimt_016.jpg" | ||
}, | ||
{ | ||
"path": "files/no-4-sid-9-art-exposition-735518_1920_big_small.png" | ||
} | ||
] | ||
} | ||
}, | ||
"response": { | ||
"statuscode": 200, | ||
"body": { | ||
"body": { | ||
"_files": [ | ||
{ | ||
"path:control": { | ||
"match": "^.*Gustav_Klimt_016.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*art-exposition-735518_1920.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*berlin.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*mona-lisa-1.*$" | ||
} | ||
}, | ||
{ | ||
"path:control": { | ||
"match": "^.*henk.*$" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"reverse_test_result": true | ||
} | ||
] | ||
} |