module-puppetlabs-mysql/spec
Daniël van Eeden 279c13b5e3 Return an empty string for an empty input.
https://tickets.puppetlabs.com/browse/MODULES-1676

This is identical to what PASSWORD('') in MySQL does:

5.6.22-debug-log> CREATE USER 'testpwd'@'localhost' IDENTIFIED BY 'foo';
Query OK, 0 rows affected (0.03 sec)

5.6.22-debug-log> SELECT User,Host,Password FROM mysql.user WHERE
User='testpwd';
+---------+-----------+-------------------------------------------+
| User    | Host      | Password                                  |
+---------+-----------+-------------------------------------------+
| testpwd | localhost | *F3A2A51A9B0F2BE2468926B4132313728C250DBF |
+---------+-----------+-------------------------------------------+
1 row in set (0.01 sec)

5.6.22-debug-log> SET PASSWORD FOR 'testpwd'@'localhost' = PASSWORD('');
Query OK, 0 rows affected (0.00 sec)

5.6.22-debug-log> SELECT User,Host,Password FROM mysql.user WHERE
User='testpwd';
+---------+-----------+----------+
| User    | Host      | Password |
+---------+-----------+----------+
| testpwd | localhost |          |
+---------+-----------+----------+
1 row in set (0.00 sec)
2015-01-28 21:08:29 +01:00
..
acceptance Merge pull request #634 from cyberious/ResourceTest 2015-01-02 11:52:06 -05:00
classes When fqdn==localhost account security breaks 2015-01-18 15:02:17 +01:00
defines Fix test issues 2014-11-14 13:16:01 -08:00
unit/puppet Return an empty string for an empty input. 2015-01-28 21:08:29 +01:00
spec.opts (#11508) Only load sql_scripts on DB creation 2011-12-19 07:25:35 -08:00
spec_helper.rb Rewrite some of the unit tests to work on more platforms. 2014-08-07 16:27:17 -04:00
spec_helper_acceptance.rb Use puppet() instead of shell() to install module dependencies 2014-12-12 12:55:31 -08:00