-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Remove crypt support from ansible.utils.encrypt #81721
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
14da05d
to
daaeb08
Compare
29c7e0e
to
3ec9fa5
Compare
8dfff34
to
8b51586
Compare
2d597c5
to
618aa34
Compare
@@ -2,3 +2,4 @@ destructive | |||
shippable/posix/group1 | |||
context/target | |||
gather_facts/no | |||
setup/always/setup_passlib_controller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattclay I added this for every target that uses setup_test_user
. I feel like setup_passlib_controller
should be run as a dependency/part of setup_test_user
but I couldn't make it work for setup_passlib_controller
to be run always on a controller side as setup_test_user
is used either as a meta dependency of targets
or as needs/target/setup_test_user
and called explicitly in a test either in roles:
or via include_role
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, currently setup/always/
doesn't work recursively. It's detected as a dependency, but it's not actually invoked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a note that it's required by setup_test_user
, at least.
|
||
# Requirements have to be installed prior to running ansible-playbook | ||
# because plugins and requirements are loaded before the task runs | ||
python -m pip install passlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't using a virtual environment, which is going to be problematic in the not-too-distant future. It's probably time for me to add support for ansible-test managed virtual environments for integration tests, which would greatly simplify this and avoid the issue of working without a virtual environment.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Co-authored-by: Matt Clay <matt@mystile.com>
@@ -35,31 +21,12 @@ def assert_hash(expected, secret, algorithm, **settings): | |||
assert excinfo.value.args[0] == "passlib must be installed and usable to hash with '%s'" % algorithm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkrizek the entire else-branch here lost coverage with the changes in this PR. Should the assertion here be made unconditional or new tests added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this is the only place with dead code in this test module: https://app.codecov.io/gh/ansible/ansible/blob/devel/test%2Funits%2Futils%2Ftest_encrypt.py
SUMMARY
Fixes #81717
ISSUE TYPE