KissPeter / APIFuzzer

Fuzz test your application using your OpenAPI or Swagger API definition without coding
GNU General Public License v3.0
416 stars 65 forks source link

Jenkins logging fix, array to bytes fix, req body keys fix #31

Closed rmaskell closed 4 years ago

rmaskell commented 4 years ago

A few fixes which i made while using this:

  1. On jenkins i couldn't for the life of me get any debug output, only minimal logs were displayed, fixed this by using basic logging config which can be enabled using --basic_output=True (False or omitted leaves the old behaviour)
  2. When you have path paramaters, the code also fixes the url in expand_path_variables, i put the same fix (replace('+','/')) above so that it happens when you don't have path params also
  3. For post bodys the attribute key is not being fixed, (it's still something like "url | method | paramkey", so i fixed that in fix_body the same way that you did for path params.
  4. With no query params the url ended up like "None", so check for none in query params.

Also, a heads up: you're .editorconfig specifies indent_style = space but the github checks are wanting tabs.

KissPeter commented 4 years ago

Hi,

Thanks for your PR.