For local demo server test, the protocol should be "http" not "https" as user can't access the python web app service via "https". There is "SSL_PROTOCOL_ERROR" when user execute the url (e.g.https://localhost:8888/api/blog/posts?page=10&per_page=5) in the Swagger Page.
This migration is being done in order to avoid recurring
flask-restplus related dependency breaks
and to resolve a recent vulnerability alert in a dependent component.
Note: coverage collection that was done on the flask-based
demo_server was not re-tested on the FastAPI-based one, and hence may not work.
This was only used for initial fuzzing experiments
(from which the graphs were generated for the first research paper),
hence it should not impact anyone actively using demo_server.
Testing: end to end tests that use demo_server passing in CI pipeline.
* Add support for testing multiple header combinations.
See SettingsFile.md for documentation.
* Fixes for the payload body checker.
* Fix quoting bug.
* Fix bug where parameter required/optional were not passed through in the compiler correctly.
* Support inline examples as fuzzable values
This change introduces the following behavior:
- If example values are specified in the Swagger specification, they
are plugged into default values in the grammar (instead of 'fuzzstring', etc.).
These do not affect the schema.
- If example payloads are specified outside Swagger, these are used
in the same way as before - both to determine the schema and to select values.
The two are mutually exclusive. For example, if 'useQueryExamples' is specified,
and a query example is found in external payload examples, they are used and
the Swagger spec values are ignored.
* Also support multiple examples in the schema.
* another fix
* Remove the previous code to ignore values in the grammar, since
they may be example values.
Add logic to eliminate duplicates, which handles the default generated grammar and dictionary,
since they will be initialized to the same values.
* Refactoring to use the same default values in the grammar and dictionary.
* Fix unit tests.
* Fixes
* Fixes