Skip to content
Snippets Groups Projects
Commit ae9c8113 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

tests/role/test_role_lists_handling.yml: Use lower case var names

The upper case name has been reported as issues by new ansible-lint.
parent d5fdaaf4
No related branches found
No related tags found
No related merge requests found
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
- name: Verify role privileges. - name: Verify role privileges.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
and "Group Administrators" in result.stdout and "Group Administrators" in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_409 krb5ccname: verify_issue_409
# End of test fix for https://github.com/freeipa/ansible-freeipa/issues/409 # End of test fix for https://github.com/freeipa/ansible-freeipa/issues/409
# Test fix for https://github.com/freeipa/ansible-freeipa/issues/412 # Test fix for https://github.com/freeipa/ansible-freeipa/issues/412
...@@ -73,9 +73,9 @@ ...@@ -73,9 +73,9 @@
- name: Verify role users. - name: Verify role users.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
and "user02" in result.stdout and "user02" in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_412 krb5ccname: verify_issue_412
- name: Add new group to role. - name: Add new group to role.
iparole: iparole:
...@@ -97,9 +97,9 @@ ...@@ -97,9 +97,9 @@
- name: Verify role group. - name: Verify role group.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
and "group02" in result.stdout and "group02" in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_412 krb5ccname: verify_issue_412
- name: Add new host to role. - name: Add new host to role.
iparole: iparole:
...@@ -121,9 +121,9 @@ ...@@ -121,9 +121,9 @@
- name: Verify role hosts. - name: Verify role hosts.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
and host2 in result.stdout and host2 in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_412 krb5ccname: verify_issue_412
host1: " {{ host1_fqdn }}" host1: " {{ host1_fqdn }}"
host2: " {{ host2_fqdn }}" host2: " {{ host2_fqdn }}"
...@@ -147,9 +147,9 @@ ...@@ -147,9 +147,9 @@
- name: Verify role hostgroups. - name: Verify role hostgroups.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
and " hostgroup02" in result.stdout and " hostgroup02" in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_412 krb5ccname: verify_issue_412
- name: Add new service to role. - name: Add new service to role.
iparole: iparole:
...@@ -171,9 +171,9 @@ ...@@ -171,9 +171,9 @@
- name: Verify role services. - name: Verify role services.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
and service1 in result.stdout and service1 in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_412 krb5ccname: verify_issue_412
service1: "service01/{{ host1_fqdn }}" service1: "service01/{{ host1_fqdn }}"
service2: "service02/{{ host2_fqdn }}" service2: "service02/{{ host2_fqdn }}"
# End of test fix for https://github.com/freeipa/ansible-freeipa/issues/412 # End of test fix for https://github.com/freeipa/ansible-freeipa/issues/412
...@@ -199,9 +199,9 @@ ...@@ -199,9 +199,9 @@
- name: Verify role services. - name: Verify role services.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
and "user03" in result.stdout and "user03" in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_413 krb5ccname: verify_issue_413
service1: "service01/{{ host1_fqdn }}" service1: "service01/{{ host1_fqdn }}"
service2: "service02/{{ host2_fqdn }}" service2: "service02/{{ host2_fqdn }}"
...@@ -227,9 +227,9 @@ ...@@ -227,9 +227,9 @@
- name: Verify role services. - name: Verify role services.
shell: shell:
cmd: | cmd: |
echo SomeADMINpassword | kinit -c {{ KRB5CCNAME }} admin echo SomeADMINpassword | kinit -c {{ krb5ccname }} admin
KRB5CCNAME={{ KRB5CCNAME }} ipa role-show testrole KRB5CCNAME={{ krb5ccname }} ipa role-show testrole
kdestroy -A -q -c {{ KRB5CCNAME }} kdestroy -A -q -c {{ krb5ccname }}
register: result register: result
failed_when: | failed_when: |
result.failed or not ( result.failed or not (
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
and "user03" not in result.stdout and "user03" not in result.stdout
) )
vars: vars:
KRB5CCNAME: verify_issue_413 krb5ccname: verify_issue_413
service1: "service01/{{ host1_fqdn }}" service1: "service01/{{ host1_fqdn }}"
service2: "service02/{{ host2_fqdn }}" service2: "service02/{{ host2_fqdn }}"
# End of test fix for https://github.com/freeipa/ansible-freeipa/issues/413 # End of test fix for https://github.com/freeipa/ansible-freeipa/issues/413
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment