mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-22 21:00:23 -07:00
Linting
This commit is contained in:
parent
a473e06e57
commit
6adb71a3ea
4 changed files with 11 additions and 10 deletions
|
@ -3,3 +3,4 @@
|
|||
- name: "{{ role_name }} | Connector | Install python packages"
|
||||
ansible.builtin.pip:
|
||||
name: "{{ connector_name }}"
|
||||
state: present
|
||||
|
|
|
@ -64,8 +64,8 @@
|
|||
- name: Must fail because login_port default has beed overriden by wrong value from config file
|
||||
assert:
|
||||
that:
|
||||
- result is failed
|
||||
- result.msg is search("unable to connect to database")
|
||||
- result is failed
|
||||
- result.msg is search("unable to connect to database")
|
||||
|
||||
- name: Create database using default port
|
||||
mysql_db:
|
||||
|
@ -83,7 +83,7 @@
|
|||
- name: Must not fail because of the default of login_port is correct
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result is changed
|
||||
|
||||
- name: Reinit custom config file
|
||||
shell: 'echo "[client]" > {{ config_file }}'
|
||||
|
@ -107,8 +107,8 @@
|
|||
- name: Must fail because login_host default has beed overriden by wrong value from config file
|
||||
assert:
|
||||
that:
|
||||
- result is failed
|
||||
- result.msg is search("Can't connect to MySQL server on '{{ fake_host }}'") or result.msg is search("Unknown MySQL server host '{{ fake_host }}'")
|
||||
- result is failed
|
||||
- result.msg is search("Can't connect to MySQL server on '{{ fake_host }}'") or result.msg is search("Unknown MySQL server host '{{ fake_host }}'")
|
||||
|
||||
# Clean up
|
||||
- name: Remove test db
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result is changed
|
||||
|
||||
- name: state dump - file name should exist
|
||||
file:
|
||||
|
@ -82,7 +82,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result is changed
|
||||
|
||||
- name: check encoding of table
|
||||
ansible.builtin.command:
|
||||
|
|
|
@ -444,8 +444,8 @@
|
|||
register: result
|
||||
- assert:
|
||||
that:
|
||||
- result is failed
|
||||
- result.msg is search('Failed to open file')
|
||||
- result is failed
|
||||
- result.msg is search('Failed to open file')
|
||||
|
||||
- name: Restore with chdir argument, must pass
|
||||
mysql_db:
|
||||
|
@ -460,7 +460,7 @@
|
|||
register: result
|
||||
- assert:
|
||||
that:
|
||||
- result is succeeded
|
||||
- result is succeeded
|
||||
|
||||
##########
|
||||
# Clean up
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue