File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,17 +12,49 @@ class { 'one':
1212 end
1313
1414 describe 'when creating a System datastore' do
15- it 'should idempotently run' do
15+
16+ after ( :each ) do
1617 pp = <<-EOS
1718 onedatastore { 'nfs_ds':
18- tm_mad => 'shared',
19- type => 'system_ds',
19+ ensure => absent,
2020 }
2121 EOS
2222
2323 apply_manifest ( pp , :catch_failures => true )
2424 apply_manifest ( pp , :catch_changes => true )
2525 end
26+
27+ context "with default values" do
28+ it 'should idempotently run' do
29+ pp = <<-EOS
30+ onedatastore { 'nfs_ds':
31+ tm_mad => 'shared',
32+ type => 'system_ds',
33+ }
34+ EOS
35+
36+ apply_manifest ( pp , :catch_failures => true )
37+ apply_manifest ( pp , :catch_changes => true )
38+ end
39+ end
40+
41+ context "with custom values" do
42+ it 'should idempotently run' do
43+ pp = <<-EOS
44+ onedatastore { 'nfs_ds':
45+ ensure => present,
46+ type => 'system_ds',
47+ tm_mad => 'shared',
48+ driver => 'raw',
49+ disk_type => 'file',
50+ }
51+ EOS
52+
53+ apply_manifest ( pp , :catch_failures => true )
54+ apply_manifest ( pp , :catch_changes => true )
55+ end
56+ end
57+
2658 end
2759
2860 describe 'when creating a File datastore' do
You can’t perform that action at this time.
0 commit comments