Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement on debugging #31

Open
tstrych opened this issue Aug 31, 2022 · 0 comments
Open

Improvement on debugging #31

tstrych opened this issue Aug 31, 2022 · 0 comments

Comments

@tstrych
Copy link

tstrych commented Aug 31, 2022

entity = EntityTester.pull_entities()[self.entity](**self.field_dict)
result = getattr(entity, self.method)(**self.arg_dict)
if not isinstance(result, dict):
result = result.to_json_dict()
logger.debug('pass: {}'.format(result))
return {'pass': result}
except Exception as e:
handled = handle_exception(e)
logger.debug('fail: {}'.format(handled))
return {'fail': handled}

What would help for debugging is actual request send to API, so it's easy to compare it with request that is used inside the robottelo/foreman/api tests.

Any ideas on how to achieve the desired state ?

Same applies for a hammer, the constructed command can make life easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant