|
13 | 13 | '@localhost', |
14 | 14 | '@%', |
15 | 15 | ].each do |user| |
16 | | - it 'removes Mysql_User[#{user}]' do |
| 16 | + it "removes Mysql_User[#{user}]" do |
17 | 17 | is_expected.to contain_mysql_user(user).with_ensure('absent') |
18 | 18 | end |
19 | 19 | end |
|
22 | 22 | # We don't need to test the inverse as when they match they are |
23 | 23 | # covered by the above list. |
24 | 24 | [ 'root@myhost', '@myhost' ].each do |user| |
25 | | - it 'removes Mysql_User[#{user}]' do |
| 25 | + it "removes Mysql_User[#{user}]" do |
26 | 26 | is_expected.to contain_mysql_user(user).with_ensure('absent') |
27 | 27 | end |
28 | 28 | end |
|
31 | 31 | is_expected.to contain_mysql_database('test').with_ensure('absent') |
32 | 32 | end |
33 | 33 | end |
| 34 | + |
| 35 | + describe "on #{pe_version} #{pe_platform} with fqdn==localhost" do |
| 36 | + let(:facts) { facts.merge({:fqdn => 'localhost', :hostname => 'localhost'}) } |
| 37 | + |
| 38 | + [ 'root@127.0.0.1', |
| 39 | + 'root@::1', |
| 40 | + '@localhost', |
| 41 | + 'root@localhost.localdomain', |
| 42 | + '@localhost.localdomain', |
| 43 | + '@%', |
| 44 | + ].each do |user| |
| 45 | + it "removes Mysql_User[#{user}]" do |
| 46 | + is_expected.to contain_mysql_user(user).with_ensure('absent') |
| 47 | + end |
| 48 | + end |
| 49 | + end |
| 50 | + |
| 51 | + describe "on #{pe_version} #{pe_platform} with fqdn==localhost.localdomain" do |
| 52 | + let(:facts) { facts.merge({:fqdn => 'localhost.localdomain', :hostname => 'localhost'}) } |
| 53 | + |
| 54 | + [ 'root@127.0.0.1', |
| 55 | + 'root@::1', |
| 56 | + '@localhost', |
| 57 | + 'root@localhost.localdomain', |
| 58 | + '@localhost.localdomain', |
| 59 | + '@%', |
| 60 | + ].each do |user| |
| 61 | + it "removes Mysql_User[#{user}]" do |
| 62 | + is_expected.to contain_mysql_user(user).with_ensure('absent') |
| 63 | + end |
| 64 | + end |
| 65 | + end |
34 | 66 | end |
35 | 67 | end |
36 | 68 | end |
0 commit comments