ansible-collection-hardening icon indicating copy to clipboard operation
ansible-collection-hardening copied to clipboard

Write tests for MySQL user-deletion

Open rndmh3ro opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. We need to write some tests for the MySQL user-deletion tasks since we already got two bugs.

Describe the solution you'd like They should be written with Ansible asserts and tested in the verify-step of molecule. Tests (not complete):

  • user with password and without authentication string
  • user with password and authentication string
  • user with authentication string and without password
  • user with authentication string and password
  • user without authentication string and without password

Should be tested on different MySQL and MariaDB-versions (this should hopefully happen automatically with all tested operating systems:

  • MySQL < 5.7.6
  • MySQL > 5.7.6
  • MariaDB < 10.4
  • MariaDB > 10.4

Additional context https://github.com/dev-sec/ansible-collection-hardening/pull/444 https://github.com/dev-sec/ansible-collection-hardening/pull/443

rndmh3ro avatar Apr 28 '21 08:04 rndmh3ro