This repository was archived by the owner on Dec 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 91
91
92
92
context 'password file' do
93
93
it do
94
- should contain_file ( '/obsolete/nss-password.txt' ) . with (
94
+ should contain_file ( '/obsolete/nss-password.txt' ) . with ( {
95
95
:owner => 'nobody' ,
96
96
:group => 'nobody' ,
97
97
:mode => '0660' ,
98
98
:content => 'secret' ,
99
- )
99
+ } )
100
100
end
101
101
end
102
102
103
103
context 'database files' do
104
104
databases = [ 'cert8.db' , 'key3.db' , 'secmod.db' ]
105
105
databases . each do |db |
106
106
it do
107
- should contain_file ( '/obsolete/' + db ) . with (
107
+ should contain_file ( '/obsolete/' + db ) . with ( {
108
108
:owner => 'nobody' ,
109
109
:group => 'nobody' ,
110
110
:mode => '0660' ,
111
111
:require => [ 'File[/obsolete/nss-password.txt]' , 'Exec[create_nss_db_foo]' ]
112
- )
112
+ } )
113
113
end
114
114
end
115
115
end
116
116
117
117
context 'create nss db' do
118
118
it do
119
- should contain_exec ( 'create_nss_db_foo' ) . with (
119
+ should contain_exec ( 'create_nss_db_foo' ) . with ( {
120
120
:command => %r{-d /obsolete -f /obsolete} ,
121
121
:creates => [
122
122
'/obsolete/cert8.db' ,
127
127
'File[/obsolete/nss-password.txt]' ,
128
128
'Class[Nsstools]'
129
129
]
130
- )
130
+ } )
131
131
end
132
132
end
133
133
end # all params
You can’t perform that action at this time.
0 commit comments