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
Allowing the case, tls is false and key/certs vars are configured. #243
Conversation
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.
lgtm
- myprivkey: "{{ __test_key_target }}" | ||
register: __result | ||
changed_when: false | ||
failed_when: __result.rc != 1 |
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.
do you use this __result
anywhere else? If not, then the default failed condition here is if the grep
in the command
returns non-zero, so I think you can get rid of the register
and the failed_when
here.
tests/tests_files_elasticsearch.yml
Outdated
- "{{ __test_cert_target }}" | ||
- "{{ __test_key_target }}" | ||
|
||
- name: Check key/certs in {{ __test_outputfiles_conf }} |
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.
Should this be "Check key/certs not in {{ __test_outputfiles_conf }}" ?
- The case used to fail in the checking task with emitting an error. The error is transformed to a warning. - For the test case, TEST CASE 2 in tests_files_elasticsearch.yml is added. In addition, some minor bugs in tests_files_elasticsearch.yml are fixed. ref: bz1994580
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.
lgtm
Thank you, @richm. Merging. |
The error is transformed to a warning.
is added.
In addition, some minor bugs in tests_files_elasticsearch.yml are
fixed.
ref: bz1994580