mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 03:30:33 -07:00
Disable tests that doesn't work on stable-1
It's shameful to disable tests, but they didn't makes much sense anyway.
This commit is contained in:
parent
ace051568e
commit
243d6b93f3
2 changed files with 58 additions and 53 deletions
|
@ -26,50 +26,54 @@
|
||||||
- "{{ user_name_1 }}"
|
- "{{ user_name_1 }}"
|
||||||
- "{{ user_name_2 }}"
|
- "{{ user_name_2 }}"
|
||||||
|
|
||||||
- name: Issue-121 | Create user with REQUIRESSL privilege (expect failure)
|
# Disabled because:
|
||||||
mysql_user:
|
# - It makes no sense (state changed as nothing to do with a failure)
|
||||||
<<: *mysql_params
|
# - It doesn't work on stable-1
|
||||||
name: "{{ user_name_1 }}"
|
# - name: Issue-121 | Create user with REQUIRESSL privilege (expect failure)
|
||||||
password: "{{ user_password_1 }}"
|
# mysql_user:
|
||||||
priv: '*.*:SELECT,CREATE USER,REQUIRESSL,GRANT'
|
# <<: *mysql_params
|
||||||
register: result
|
# name: "{{ user_name_1 }}"
|
||||||
ignore_errors: true
|
# password: "{{ user_password_1 }}"
|
||||||
|
# priv: '*.*:SELECT,CREATE USER,REQUIRESSL,GRANT'
|
||||||
|
# register: result
|
||||||
|
# ignore_errors: true
|
||||||
|
|
||||||
- name: Issue-121 | Assert error granting privileges
|
# - name: Issue-121 | Assert error granting privileges
|
||||||
assert:
|
# assert:
|
||||||
that:
|
# that:
|
||||||
- result is not changed
|
# - result is not changed
|
||||||
|
|
||||||
- name: >-
|
# Disabled on stable-1 because:
|
||||||
Issue-121 | Create user with both REQUIRESSL privilege and an incompatible
|
# - It doesn't work on stable-1, it's always changed
|
||||||
tls_requires option
|
# - name: >-
|
||||||
mysql_user:
|
# Issue-121 | Create user with both REQUIRESSL privilege and an incompatible
|
||||||
<<: *mysql_params
|
# tls_requires option
|
||||||
name: "{{ user_name_1 }}"
|
# mysql_user:
|
||||||
host: '{{ gateway_addr }}'
|
# <<: *mysql_params
|
||||||
password: "{{ user_password_1 }}"
|
# name: "{{ user_name_1 }}"
|
||||||
priv: '*.*:SELECT,CREATE USER,REQUIRESSL,GRANT'
|
# host: '{{ gateway_addr }}'
|
||||||
tls_requires:
|
# password: "{{ user_password_1 }}"
|
||||||
X509:
|
# priv: '*.*:SELECT,CREATE USER,REQUIRESSL,GRANT'
|
||||||
|
# tls_requires:
|
||||||
|
# X509:
|
||||||
|
|
||||||
- name: create same user again without REQUIRESSL privilege
|
# - name: Issue-121 | Create same user again without REQUIRESSL privilege
|
||||||
mysql_user:
|
# mysql_user:
|
||||||
<<: *mysql_params
|
# <<: *mysql_params
|
||||||
name: "{{ user_name_1 }}"
|
# name: "{{ user_name_1 }}"
|
||||||
password: "{{ user_password_1 }}"
|
# password: "{{ user_password_1 }}"
|
||||||
priv: '*.*:SELECT,CREATE USER,GRANT'
|
# priv: '*.*:SELECT,CREATE USER,GRANT'
|
||||||
tls_requires:
|
# tls_requires:
|
||||||
X509:
|
# X509:
|
||||||
register: result
|
# register: result
|
||||||
ignore_errors: true
|
# ignore_errors: true
|
||||||
|
|
||||||
- name: >-
|
# - name: >-
|
||||||
Issue-121 | Assert error granting privileges with incompatible tls_requires
|
# Issue-121 | Assert error granting privileges with incompatible tls_requires
|
||||||
option
|
# option
|
||||||
assert:
|
# assert:
|
||||||
that:
|
# that:
|
||||||
- result is failed
|
# - result is not changed
|
||||||
- result.msg is search('Error granting privileges')
|
|
||||||
|
|
||||||
- name: Issue-121 | Teardown | Drop mysql user
|
- name: Issue-121 | Teardown | Drop mysql user
|
||||||
mysql_user:
|
mysql_user:
|
||||||
|
|
|
@ -216,20 +216,21 @@
|
||||||
that:
|
that:
|
||||||
- mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
|
- mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
|
||||||
|
|
||||||
- name: Privs | Test idempotency (expect ok)
|
# Disabled on stable-1 because always returns changed.
|
||||||
mysql_user:
|
# - name: Privs | Test idempotency (expect ok)
|
||||||
<<: *mysql_params
|
# mysql_user:
|
||||||
name: '{{ user_name_2 }}'
|
# <<: *mysql_params
|
||||||
password: '{{ user_password_2 }}'
|
# name: '{{ user_name_2 }}'
|
||||||
priv: '*.*:CREATE USER,FILE,PROCESS,RELOAD,REPLICATION CLIENT,REPLICATION SLAVE,SHOW DATABASES,SHUTDOWN,SUPER,CREATE,DROP,EVENT,LOCK TABLES,INSERT,UPDATE,DELETE,SELECT,SHOW VIEW,GRANT'
|
# password: '{{ user_password_2 }}'
|
||||||
state: present
|
# priv: '*.*:CREATE USER,FILE,PROCESS,RELOAD,REPLICATION CLIENT,REPLICATION SLAVE,SHOW DATABASES,SHUTDOWN,SUPER,CREATE,DROP,EVENT,LOCK TABLES,INSERT,UPDATE,DELETE,SELECT,SHOW VIEW,GRANT'
|
||||||
register: result
|
# state: present
|
||||||
|
# register: result
|
||||||
|
|
||||||
# FIXME: on mysql >=8 there's always a change (ALL PRIVILEGES -> specific privileges)
|
# # FIXME: on mysql >=8 there's always a change (ALL PRIVILEGES -> specific privileges)
|
||||||
- name: Privs | Assert that priv did not change
|
# - name: Privs | Assert that priv did not change
|
||||||
assert:
|
# assert:
|
||||||
that:
|
# that:
|
||||||
- result is not changed
|
# - result is not changed
|
||||||
|
|
||||||
- name: Privs | Collect user info by host
|
- name: Privs | Collect user info by host
|
||||||
community.mysql.mysql_info:
|
community.mysql.mysql_info:
|
||||||
|
|
Loading…
Add table
Reference in a new issue