mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-28 15:41:26 -07:00
Improve documentation and tests
This commit is contained in:
parent
639b729ec7
commit
a4c87570b9
2 changed files with 15 additions and 1 deletions
|
@ -243,7 +243,12 @@
|
|||
<<: *mysql_params
|
||||
login_db: '{{ test_db }}'
|
||||
query: 'CREATE TABLE {{ test_table3 }} (id int, story text)'
|
||||
register: result
|
||||
|
||||
- name: Add data to {{ test_table3 }}
|
||||
mysql_query:
|
||||
<<: *mysql_params
|
||||
login_db: '{{ test_db }}'
|
||||
query: "INSERT INTO {{ test_table3 }} (id, story) VALUES (1, 'first'), (2, 'second')"
|
||||
|
||||
- name: Select from {{ test_table3 }}
|
||||
mysql_query:
|
||||
|
@ -252,6 +257,10 @@
|
|||
query: 'SELECT id, story FROM {{ test_table3 }}'
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.rowcount == [2]
|
||||
|
||||
- name: Drop db {{ test_db }}
|
||||
mysql_query:
|
||||
<<: *mysql_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue