-
- Downloads
tests/sudorule: Don't become or gather_facts and use only true/false
Unless there's a real need to use privileged access or to gather Ansible facts upfront, we should always set "become: false" and "gather_facts: false". In the case that only a few Ansible facts are required, 'ansible.builtin.setup' with 'gather_subset' should be used. As the YAML 1.2 standard dictates, boolean values should only use 'true' or 'false' values. This patch fixes these issues in the 'sudorule' test suite.
Showing
- tests/sudorule/test_sudorule.yml 6 additions, 2 deletionstests/sudorule/test_sudorule.yml
- tests/sudorule/test_sudorule_categories.yml 14 additions, 5 deletionstests/sudorule/test_sudorule_categories.yml
- tests/sudorule/test_sudorule_client_context.yml 2 additions, 2 deletionstests/sudorule/test_sudorule_client_context.yml
- tests/sudorule/test_sudorule_member_case_insensitive.yml 3 additions, 3 deletionstests/sudorule/test_sudorule_member_case_insensitive.yml
- tests/sudorule/test_sudorule_single_hostnames.yml 12 additions, 7 deletionstests/sudorule/test_sudorule_single_hostnames.yml
- tests/sudorule/test_sudorules.yml 1 addition, 1 deletiontests/sudorule/test_sudorules.yml
Loading
Please register or sign in to comment