thomaspoignant / api-scenario

API-scenario is a command-line tool that allows you to execute easily a scenario to test your APIs.
https://github.com/thomaspoignant/api-scenario#api-scenario
The Unlicense
16 stars 3 forks source link

Assertion not_empty does not work with boolean values. #57

Closed thomaspoignant closed 4 years ago

thomaspoignant commented 4 years ago

Observed behavior

Assertion :

{
   "comparison": "not_empty",
   "property": "Resources[0].active",
   "value": null,
   "source": "response_json"
}

Return the error:

X   body.Resources[0].active - '' was not comparable with a boolean value true

Expected behavior

If we have a boolean value not_empty should return true as soon as we have a value for the key.