Skip to content

Commit

Permalink
Verification that users are created missing
Browse files Browse the repository at this point in the history
This makes sure that the CI also verifies that creating users during
deployment works.
  • Loading branch information
fauust committed Jan 10, 2025
1 parent 49c3b18 commit 8be1a71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@
- db1
- db2

- name: Check that test users exist
ansible.builtin.shell: |
mariadb -Bse 'SELECT user from mysql.user' | grep -q '^{{ item }}$'
loop:
- user1
- user2
- user3

- name: Do some SQL queries
ansible.builtin.shell: |
mariadb -Bse 'DROP DATABASE IF EXIST db'
Expand Down

0 comments on commit 8be1a71

Please sign in to comment.