@@ -10,7 +10,7 @@ class { 'mysql::server':
10
10
}
11
11
MANIFEST
12
12
13
- apply_manifest ( pp , catch_failures : true )
13
+ execute_manifest ( pp , catch_failures : true )
14
14
end
15
15
16
16
describe 'missing privileges for user' do
@@ -26,7 +26,7 @@ class { 'mysql::server':
26
26
}
27
27
MANIFEST
28
28
it 'fails' do
29
- expect ( apply_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`privileges` `parameter` is required} )
29
+ expect ( execute_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`privileges` `parameter` is required} )
30
30
end
31
31
32
32
it 'does not find the user' do
@@ -47,7 +47,7 @@ class { 'mysql::server':
47
47
}
48
48
MANIFEST
49
49
it 'fails' do
50
- apply_manifest ( pp , expect_failures : true )
50
+ execute_manifest ( pp , expect_failures : true )
51
51
end
52
52
53
53
it 'does not find the user' do
@@ -69,7 +69,7 @@ class { 'mysql::server':
69
69
}
70
70
MANIFEST
71
71
it 'works without errors' do
72
- apply_manifest ( pp , catch_failures : true )
72
+ execute_manifest ( pp , catch_failures : true )
73
73
end
74
74
75
75
it 'finds the user #stdout' do
@@ -98,7 +98,7 @@ class { 'mysql::server':
98
98
}
99
99
MANIFEST
100
100
it 'works without errors' do
101
- apply_manifest ( pp , catch_failures : true )
101
+ execute_manifest ( pp , catch_failures : true )
102
102
end
103
103
104
104
it 'finds the user #stdout' do
@@ -128,7 +128,7 @@ class { 'mysql::server':
128
128
}
129
129
MANIFEST
130
130
it 'works without errors' do
131
- apply_manifest ( pp , catch_failures : true )
131
+ execute_manifest ( pp , catch_failures : true )
132
132
end
133
133
134
134
it 'finds the user #stdout' do
@@ -157,7 +157,7 @@ class { 'mysql::server':
157
157
}
158
158
MANIFEST
159
159
it 'fails' do
160
- expect ( apply_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`table` `parameter` is required.} )
160
+ expect ( execute_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`table` `parameter` is required.} )
161
161
end
162
162
end
163
163
@@ -176,7 +176,7 @@ class { 'mysql::server':
176
176
}
177
177
MANIFEST
178
178
it 'onlies try to apply ALL' do
179
- apply_manifest ( pp , catch_failures : true )
179
+ execute_manifest ( pp , catch_failures : true )
180
180
end
181
181
182
182
it 'finds the user #stdout' do
@@ -246,7 +246,7 @@ class { 'mysql::server':
246
246
}
247
247
MANIFEST
248
248
it 'applies' do
249
- apply_manifest ( pp , catch_failures : true )
249
+ execute_manifest ( pp , catch_failures : true )
250
250
end
251
251
252
252
it 'finds short hostname #stdout' do
@@ -383,8 +383,8 @@ class { 'mysql::server':
383
383
}
384
384
MANIFEST
385
385
it 'setup mysql::server' do
386
- apply_manifest ( pp , catch_failures : true )
387
- apply_manifest ( pp , catch_changes : true )
386
+ execute_manifest ( pp , catch_failures : true )
387
+ execute_manifest ( pp , catch_changes : true )
388
388
end
389
389
end
390
390
@@ -401,7 +401,7 @@ class { 'mysql::server':
401
401
}
402
402
MANIFEST
403
403
it 'create ALL privs' do
404
- apply_manifest ( pp_one , catch_failures : true )
404
+ execute_manifest ( pp_one , catch_failures : true )
405
405
end
406
406
407
407
pp_two = <<-MANIFEST
@@ -416,7 +416,7 @@ class { 'mysql::server':
416
416
}
417
417
MANIFEST
418
418
it 'create lowercase all privs' do
419
- expect ( apply_manifest ( pp_two , catch_failures : true ) . exit_code ) . to eq ( 0 )
419
+ expect ( execute_manifest ( pp_two , catch_failures : true ) . exit_code ) . to eq ( 0 )
420
420
end
421
421
end
422
422
@@ -439,7 +439,7 @@ class { 'mysql::server':
439
439
}
440
440
MANIFEST
441
441
it 'works without errors' do
442
- apply_manifest ( pp , catch_failures : true )
442
+ execute_manifest ( pp , catch_failures : true )
443
443
end
444
444
445
445
it 'finds the user #stdout' do
@@ -475,7 +475,7 @@ class { 'mysql::server':
475
475
}
476
476
EOS
477
477
478
- apply_manifest ( pp , catch_failures : true )
478
+ execute_manifest ( pp , catch_failures : true )
479
479
end
480
480
# rubocop:enable RSpec/ExampleLength
481
481
it 'finds the user' do
@@ -504,7 +504,7 @@ class { 'mysql::server':
504
504
}
505
505
MANIFEST
506
506
it 'works without errors when version greater than 5.5.0' do
507
- apply_manifest ( pp , catch_failures : true )
507
+ execute_manifest ( pp , catch_failures : true )
508
508
end
509
509
510
510
it 'finds the user #stdout' do
@@ -533,7 +533,7 @@ class { 'mysql::server':
533
533
}
534
534
MANIFEST
535
535
it 'works without errors' do
536
- apply_manifest ( pp , catch_failures : true )
536
+ execute_manifest ( pp , catch_failures : true )
537
537
end
538
538
539
539
it 'finds the user #stdout' do
@@ -562,7 +562,7 @@ class { 'mysql::server':
562
562
}
563
563
MANIFEST
564
564
it 'fails' do
565
- expect ( apply_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`privileges` `parameter`: PROXY can only be specified by itself} )
565
+ expect ( execute_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`privileges` `parameter`: PROXY can only be specified by itself} )
566
566
end
567
567
568
568
it 'does not find the user' do
@@ -584,7 +584,7 @@ class { 'mysql::server':
584
584
}
585
585
MANIFEST
586
586
it 'fails' do
587
- expect ( apply_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{PROXY user not supported on mysql versions < 5\. 5\. 0}i )
587
+ expect ( execute_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{PROXY user not supported on mysql versions < 5\. 5\. 0}i )
588
588
end
589
589
590
590
it 'does not find the user' do
@@ -606,7 +606,7 @@ class { 'mysql::server':
606
606
}
607
607
MANIFEST
608
608
it 'fails' do
609
- expect ( apply_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`table` `property` for PROXY should be specified as proxy_user@proxy_host.} )
609
+ expect ( execute_manifest ( pp , expect_failures : true ) . stderr ) . to match ( %r{`table` `property` for PROXY should be specified as proxy_user@proxy_host.} )
610
610
end
611
611
612
612
it 'does not find the user' do
@@ -625,7 +625,7 @@ class { 'mysql::server':
625
625
}
626
626
MANIFEST
627
627
it 'setup mysql::server' do
628
- apply_manifest ( pp_one , catch_failures : true )
628
+ execute_manifest ( pp_one , catch_failures : true )
629
629
end
630
630
631
631
pp_two = <<-MANIFEST
@@ -651,7 +651,7 @@ class { 'mysql::server':
651
651
}
652
652
MANIFEST
653
653
it 'applies' do
654
- apply_manifest ( pp_two , catch_failures : true )
654
+ execute_manifest ( pp_two , catch_failures : true )
655
655
end
656
656
657
657
it 'fails with fqdn' do
@@ -687,7 +687,7 @@ class { 'mysql::server':
687
687
it 'fails to execute while applying' do
688
688
mysql_cmd = shell ( 'which mysql' ) . stdout . chomp
689
689
shell ( "mv #{ mysql_cmd } #{ mysql_cmd } .bak" )
690
- expect ( apply_manifest ( pp_three , expect_failures : true ) . stderr ) . to match ( %r{Could not find a suitable provider for mysql_grant} )
690
+ expect ( execute_manifest ( pp_three , expect_failures : true ) . stderr ) . to match ( %r{Could not find a suitable provider for mysql_grant} )
691
691
shell ( "mv #{ mysql_cmd } .bak #{ mysql_cmd } " )
692
692
end
693
693
@@ -697,7 +697,7 @@ class { 'mysql::server':
697
697
}
698
698
MANIFEST
699
699
it 'reset mysql::server config' do
700
- apply_manifest ( pp_four , catch_failures : true )
700
+ execute_manifest ( pp_four , catch_failures : true )
701
701
end
702
702
end
703
703
@@ -707,7 +707,7 @@ class { 'mysql::server':
707
707
class { 'mysql::server': override_options => { 'root_password' => 'password' } }
708
708
MANIFEST
709
709
it 'setup mysql server' do
710
- apply_manifest ( pp_one , catch_failures : true )
710
+ execute_manifest ( pp_one , catch_failures : true )
711
711
end
712
712
713
713
pp_two = <<-MANIFEST
@@ -722,7 +722,7 @@ class { 'mysql::server': override_options => { 'root_password' => 'password' } }
722
722
}
723
723
MANIFEST
724
724
it 'creates grant on missing table will fail' do
725
- expect ( apply_manifest ( pp_two , expect_failures : true ) . stderr ) . to match ( %r{Table 'grant_spec_db\. grant_spec_table' doesn't exist} )
725
+ expect ( execute_manifest ( pp_two , expect_failures : true ) . stderr ) . to match ( %r{Table 'grant_spec_db\. grant_spec_table' doesn't exist} )
726
726
end
727
727
728
728
pp_three = <<-MANIFEST
@@ -738,7 +738,7 @@ class { 'mysql::server': override_options => { 'root_password' => 'password' } }
738
738
}
739
739
MANIFEST
740
740
it 'creates table' do
741
- apply_manifest ( pp_three , catch_failures : true )
741
+ execute_manifest ( pp_three , catch_failures : true )
742
742
end
743
743
744
744
it 'has the table' do
0 commit comments