mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-05-20 07:59:11 -07:00
fix string templating for ansible devel (core 2.19, 12 beta)
This commit is contained in:
parent
b26235b7d7
commit
cf57ab9dda
4 changed files with 7 additions and 6 deletions
|
@ -337,5 +337,6 @@
|
|||
- name: Assert that stopslave returns expected error message
|
||||
assert:
|
||||
that:
|
||||
- result.msg == "value of mode must be one of{{ ":" }} getprimary, getreplica, changeprimary, stopreplica, startreplica, resetprimary, resetreplica, resetreplicaall, changereplication, got{{ ":" }} stopslave"
|
||||
-
|
||||
"result.msg == 'value of mode must be one of: getprimary, getreplica, changeprimary, stopreplica, startreplica, resetprimary, resetreplica, resetreplicaall, changereplication, got: stopslave'"
|
||||
- result is failed
|
||||
|
|
|
@ -55,5 +55,5 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- replica_status.SQL_Delay == {{ test_primary_delay }}
|
||||
- replica_status.SQL_Delay == test_primary_delay
|
||||
- replica_status is not changed
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
- name: Privs | Assert that 'GRANT' permission is present
|
||||
assert:
|
||||
that:
|
||||
- mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
|
||||
- mysql_info_about_users.users.localhost.db_user2.Grant_priv == 'Y'
|
||||
|
||||
- name: Privs | Test idempotency (expect ok)
|
||||
mysql_user:
|
||||
|
@ -246,7 +246,7 @@
|
|||
- name: Privs | Assert that 'GRANT' permission is present (by host)
|
||||
assert:
|
||||
that:
|
||||
- mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
|
||||
- mysql_info_about_users.users.localhost.db_user2.Grant_priv == 'Y'
|
||||
|
||||
# ============================================================
|
||||
- name: Privs | Update user with invalid privileges
|
||||
|
|
|
@ -33,5 +33,5 @@
|
|||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- "'{{ var_name }}' in result.stdout"
|
||||
- "'{{ var_value }}' in result.stdout"
|
||||
- var_name | string in result.stdout
|
||||
- var_value | string in result.stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue