Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Luca 1fd97ecebb
change the protocol to http for local demo server (#736)
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.
2023-04-25 21:48:06 -07:00
marina-p 9caa8b7eb2
Re-implement demo_server using FastAPI (#554)
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.
2022-06-24 16:38:46 -07:00
marina-p 71375bae0a
Add support for testing multiple header combinations. (#259)
* 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.
2021-07-14 13:05:47 -07:00
marina-p 071a532804
Support inline examples as fuzzable values (#185)
* 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
2021-05-03 19:35:29 -07:00
Marina Polishchuk ba649fd82b Restler v6.1 - initial commit 2020-10-19 18:05:41 -07:00