Add unique test names

This commit is contained in:
Laurent Indermuehle 2023-01-11 16:58:35 +01:00
parent 05a6589fc5
commit ae41a50626
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -413,7 +413,7 @@
- result.query_result.0.0['user_roles'] == 0
when: db_engine == 'mariadb'
#========================
# ========================
- name: Drop role {{ role0 }} again in check_mode
<<: *task_params
@ -435,7 +435,7 @@
name: '{{ role0 }}'
state: absent
- name: Check
- name: Assert that droping the role again is not changed
assert:
that:
- result is not changed
@ -455,7 +455,7 @@
'mysql.*': 'UPDATE'
check_mode: yes
- name: Check
- name: Assert that create role in check_mode is changed
assert:
that:
- result is changed
@ -466,12 +466,12 @@
<<: *mysql_params
query: "SELECT 1 FROM mysql.user WHERE User = '{{ role0 }}'"
- name: Check
- name: Assert that create role in check_mode is not in the database
assert:
that:
- result.rowcount.0 == 0
#========================
# ========================
- name: Create role {{ role0 }}
<<: *task_params