This repository has been archived by the owner on Feb 2, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for bug hashes reported by RESTler (#57)
- If Fuzz or Test modality of RESTler, then do not post bugs if they are in the ignoreBugHashes list - If Replay modality of RESTler then do not replay the bugs that are in the ignoreBugHashes list - Add Replay all fuzz bugs after running petstore sample - Use bug hash as the replay summary key Co-authored-by: stas <statis@microsoft.com>
- Loading branch information
Showing
9 changed files
with
223 additions
and
84 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
44 changes: 44 additions & 0 deletions
44
cli/samples/restler/self-contained/swagger-petstore/restler.replay-all-fuzz-bugs.json
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,44 @@ | ||
{ | ||
"readOnlyFileShareMounts": [ | ||
{ | ||
"FileShareName": "{jobId}", | ||
"MountPath": "/job-run" | ||
} | ||
], | ||
"testTargets" : { | ||
"targets" : [ | ||
{ | ||
"Container" : "swaggerapi/petstore", | ||
"Port" : 8080, | ||
"ExpectedDurationUntilReady" : "00:02:00", | ||
"Shell" : "/bin/sh", | ||
"OutputFolder" : "petstore", | ||
"PostRun" : { | ||
"Command" : "/bin/sh", | ||
"Arguments" : ["-c", "cp /var/log/*-requests.log $RAFT_WORK_DIRECTORY"], | ||
"ExpectedRunDuration" : "00:00:10" | ||
} | ||
} | ||
] | ||
}, | ||
"tasks": [ | ||
{ | ||
"toolName": "RESTler", | ||
"outputFolder": "RESTler-replay-{experiment}-all-bug-buckets", | ||
"toolConfiguration": { | ||
"task": "Replay", | ||
"runConfiguration": { | ||
"targetEndpointConfiguration" : { | ||
"Port" : 8080 | ||
}, | ||
"useSsl" : false, | ||
"inputFolderPath": "/job-run/{outputFolder}/RestlerResults/{experiment}/bug_buckets", | ||
"ignoreBugHashes" : [ | ||
"PayloadBodyChecker_500_acb1c0dcc79e949c24bec51f0ea3f841c61c38a3", | ||
"PayloadBodyChecker_500_b8ebb5eaf46cdad18ac1d8e9ed67e2cdc729db3d" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.