mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-28 07:31:24 -07:00
fix tests (include
deprecation) (#554)
* tests: change deprecated "include" to "include_tasks" * tests: fix syntax --------- Co-authored-by: Felix Hamme <felix.hamme@ionos.com>
This commit is contained in:
parent
b6ad472c78
commit
2fcfb103f6
19 changed files with 352 additions and 101 deletions
|
@ -31,7 +31,10 @@
|
|||
that:
|
||||
- result is changed
|
||||
|
||||
- include: utils/assert_user.yml user_name={{ user_name_1 }} user_host=localhost
|
||||
- include_tasks: utils/assert_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_1 }}"
|
||||
user_host: localhost
|
||||
|
||||
# Test user removal
|
||||
- name: Issue-265 | remove mysql user {{ user_name_1 }}
|
||||
|
@ -86,7 +89,9 @@
|
|||
that:
|
||||
- result is not changed
|
||||
|
||||
- include: utils/assert_no_user.yml user_name={{user_name_1}}
|
||||
- include_tasks: utils/assert_no_user.yml
|
||||
vars:
|
||||
user_name: "{{user_name_1}}"
|
||||
|
||||
# Tests with force_context: no
|
||||
# Test user creation
|
||||
|
@ -114,7 +119,10 @@
|
|||
that:
|
||||
- result is changed
|
||||
|
||||
- include: utils/assert_user.yml user_name={{ user_name_1 }} user_host=localhost
|
||||
- include_tasks: utils/assert_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_1 }}"
|
||||
user_host: localhost
|
||||
|
||||
# Test user removal
|
||||
- name: Issue-265 | Remove mysql user {{ user_name_1 }}
|
||||
|
@ -168,4 +176,6 @@
|
|||
that:
|
||||
- result is not changed
|
||||
|
||||
- include: utils/assert_no_user.yml user_name={{ user_name_1 }}
|
||||
- include_tasks: utils/assert_no_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_1 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue