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

[ WIP] ipa-run-tests: allow to run tests with server-api #452

Closed
wants to merge 1 commit into from
Closed

[ WIP] ipa-run-tests: allow to run tests with server-api #452

wants to merge 1 commit into from

Conversation

MartinBasti
Copy link
Contributor

This allow to test server-api with ipa-run-tests. It is useful because
internal error tracebacks are printed to test output and it is handy to
use it with python -bb option to check BytesWarnings

  • I havent tested option parsing in pytest yet, only the code around that allows to run server_api
  • This can be useful with Travis to see tracebacks directly in test output
  • tests may be faster
  • we should really rename test_xmlrpc to something like test_api
  • I will use this for python -bb testing

This allow to test server-api with ipa-run-tests. It is useful because
internal error tracebacks are printed to test output and it is handy to
use it with python -bb option to check BytesWarnings
dest="ipa_in_server",
type=truefalse,
choices=(True, False),
default=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to go the complicated route like in PR #442. Please replace type, choices and default with a simple action='store_true, https://docs.python.org/3/library/argparse.html#action

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, but there are more issues I have to solve than this one :) still WIP

Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please simplify

@MartinBasti
Copy link
Contributor Author

There are too many issues, it is not possible to run tests with server api easily, too many changes required.

@MartinBasti MartinBasti added the rejected Pull Request has been rejected label Feb 10, 2017
@tiran
Copy link
Member

tiran commented Feb 10, 2017

It's going to get simpler when privilege separation patch has landet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejected Pull Request has been rejected
Projects
None yet
2 participants