mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-04 21:24:26 -07:00
Add a user specific to this test
I prefer to isolate tests from each others. Also done some linting.
This commit is contained in:
parent
43c1f08004
commit
669c7339f6
1 changed files with 4 additions and 19 deletions
|
@ -1,20 +1,5 @@
|
||||||
|
---
|
||||||
# test code for privileges for mysql_user module - issue 465
|
# test code for privileges for mysql_user module - issue 465
|
||||||
# (c) 2014, Wayne Rosario <wrosario@ansible.com>
|
|
||||||
|
|
||||||
# This file is part of Ansible
|
|
||||||
#
|
|
||||||
# Ansible is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# Ansible is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
- vars:
|
- vars:
|
||||||
mysql_parameters: &mysql_params
|
mysql_parameters: &mysql_params
|
||||||
|
@ -29,11 +14,11 @@
|
||||||
- name: create a user with parameters that will always cause an exception
|
- name: create a user with parameters that will always cause an exception
|
||||||
mysql_user:
|
mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: '{{ user_name_2 }}'
|
name: user_issue_465
|
||||||
password: '{{ user_password_2 }}'
|
password: a_test_password_465
|
||||||
priv: '*.{{ db_name }}:SELECT'
|
priv: '*.{{ db_name }}:SELECT'
|
||||||
state: present
|
state: present
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: assert output message for current privileges
|
- name: assert output message for current privileges
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue