mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-07 03:00:34 -07:00
* Is changed (#427)
* Refactor tests to use "is" and "is not" changed
* Refactor tests to use is succeeded or is failed
* Reformat indentation
* Add filter "bool" to prevent issues
(cherry picked from commit 0a68bb270f
)
* Fix error message verification
I don't know why this works on main, but in stable-1, the error message
is "invalid privileges string: Invalid privileges specified:
frozenset({'INVALID'})"
* Add filter for test that won't work with mariadb
* Refactor test in their own file instead of main
* Add db_names dict
* Fix registered variable name
* Add missing fact
* Add test databases cleanup
* Cut tests for unsupported db name (%)
* Add missing default vars to tests db_formats
* Backport small diff from main
28 lines
831 B
YAML
28 lines
831 B
YAML
---
|
|
# defaults file for test_mysql_db
|
|
mysql_user: root
|
|
mysql_password: msandbox
|
|
mysql_primary_port: 3307
|
|
|
|
# Database names
|
|
db_names:
|
|
- "data"
|
|
# - "db%"
|
|
# Don't test % in stable-1. Support was added in v2
|
|
|
|
# Database formats
|
|
db_formats:
|
|
- { format_type: "sql", file: "dbdata.sql", format_msg_type: "ASCII", file2: "dump2.sql", file3: "dump3.sql", file4: "dump4.sql" }
|
|
- { format_type: "gz", file: "dbdata.gz", format_msg_type: "gzip", file2: "dump2.gz", file3: "dump3.gz", file4: "dump4.gz" }
|
|
- { format_type: "bz2", file: "dbdata.bz2", format_msg_type: "bzip2", file2: "dump2.bz2", file3: "dump3.bz2", file4: "dump4.bz2" }
|
|
|
|
db_name2: 'data2'
|
|
db_user1: 'datauser1'
|
|
db_user2: 'datauser2'
|
|
|
|
tmp_dir: '/tmp'
|
|
db_latin1_name: 'db_latin1'
|
|
file4: 'latin1_file'
|
|
|
|
user_name_1: 'db_user1'
|
|
user_password_1: 'gadfFDSdtTU^Sdfuj'
|