Comments (5)
I have experienced the same problem some months ago without a solution
from restler-fuzzer.
@marina-p could you please confirm if this is a bug? I would be glad to fix it with some guidance, thank you.
from restler-fuzzer.
Hello @marcellomaugeri,
Apologies for the delay in replying and thank you for the self-contained repro steps. In the above files, the dictionary and custom value generators have a different path:
"/request/post/__body__": gen_restler_custom_payload__request_post__body_
"/test/post/__body__": ["{\n\"test\" : \"test\"\n}"]
If I modify both keys to match the Swagger (/test/post/__body__
), RESTler sends both values generated by the custom value generator function.
Thanks,
Marina
from restler-fuzzer.
@marcellomaugeri leaving this issue open to further brainstorm how to improve diagnosing this error. There isn't a warning issued today for unused value generators since one use case is to have the same value_gen.py for many Swagger files, which would result in noisy warnings.
from restler-fuzzer.
@marina-p thank you for your solution. Actually, I made a mistake in providing the MRE, but the paths are all correct in my code. Still, it's sending the first value in the yield: { "test": "test1" }
at the beginning, all the remaining payloads are just random strings, not taking into consideration neither dict nor other values in the generator. I was expecting Restler to send { "test": "test1" }
and { "test": "test2" }
alternated.
In brief, I would like to have full control of the payload sent, is it possible?
from restler-fuzzer.
Related Issues (20)
- The number of requests in the command and testing summary is misleading when running partial number of endpoints
- [Feature Request] OpenAPI Spec 3.1 support
- InvalidValueChecker - 505 HTTP Version Not Supported from Jetty
- Call sequences are sometimes split across trace database files. Is it possible to prevent this from happening?
- How can I test and fuzz multiple examples? HOT 1
- refactor compiler configs so strict deserialization can be turned on HOT 2
- Content-Length header is not getting fuzzed based on the list of naughty strings HOT 1
- "Attempting to get resources from GET request..." ignores required GET parameters
- Can't run restler compile
- Ensuring Mandatory Headers for API Access in Restler Requests HOT 1
- How to properly configure and use authentication tokens in Restler?
- Improve logging in RESTler compile step in case of a spec issue instead of just failing without and not giving clear indication of which property is problematic
- RESTler's attempts to reproduce bugs add extra quotes (") for values sourced from restler_custom_payload
- Automatic inferred dependencies not working
- Trace database requests include authorization token
- Dynamic object encoding is adding extra double quotes when consuming value from other call
- RESTler is logging error for missing parameter in the response even when the parameter is not configured for the specific response code
- RESTler ran forever: "Exhausted collection..." loop prevented RESTler from honoring --time_budget
- Token Refresh Interval is not working under Proxy
- Can RESTler detect other status codes than 500? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restler-fuzzer.