GraphWalker fail return 404 if called with no message
For a model NaviationModel
and an edge update_quantity
:
# tests/test.py
class NavigationModel:
# ...
def update_quantity:
assert False
# ...
$ altwalker online tests -m models/navigation.json "quick_random(vertex_coverage(100))"
...
[2019-10-18 17:33:54.342432] NavigationModel.update_quantity Status: FAIL
Error:
Traceback (most recent call last):
File "/Users/robert/Documents/gitlab/altwalker/altwalker/executor.py", line 50, in get_output
callable(*args, **kargs)
File "tests/test.py", line 53, in update_quantity
assert False
AssertionError
[2019-10-18 17:33:54.367366] Unexpected error ocurrent while running NavigationModel.update_quantity.
Error: GraphWalker responded with status code: 404.
Traceback (most recent call last):
File "/Users/robert/Documents/gitlab/altwalker/altwalker/walker.py", line 144, in _run_step
status = self._execute_step(step)
File "/Users/robert/Documents/gitlab/altwalker/altwalker/walker.py", line 131, in _execute_step
self._planner.fail(error["message"])
File "/Users/robert/Documents/gitlab/altwalker/altwalker/planner.py", line 64, in fail
self._client.fail(message)
File "/Users/robert/Documents/gitlab/altwalker/altwalker/graphwalker.py", line 436, in fail
self._validate_response(response)
File "/Users/robert/Documents/gitlab/altwalker/altwalker/graphwalker.py", line 274, in _validate_response
"GraphWalker responded with status code: {}.".format(str(response.status_code)))
altwalker.exceptions.GraphWalkerException: GraphWalker responded with status code: 404.
...
Edited by Robert Dezmerean