Last active
August 31, 2018 11:54
-
-
Save CoditCompany/2a772d4f2e73a22dc3f5032ab08cb5d0 to your computer and use it in GitHub Desktop.
Automating URL Bogus Discovery
This file contains hidden or 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
| let stubQueryParams = | |
| [ "category", Arb.generate<string> | |
| "style", Arb.generate<string> | |
| "size", Arb.generate<string> ] | |
| |> Map.ofList | |
| [<Property>] | |
| let ``URL bogus query parameters doesn't alter HTTP status`` () = | |
| stubQueryParams | |
| |> FSec.urlBogus "http://example.com" | |
| |> Arb.fromGen | |
| |> Prop.forAll <| fun url -> | |
| let { StatusCode = code } = Http.RequestString url | |
| code = OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment