File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 82
82
83
83
it 'doesnt allow the path to start with a dynamic string' do
84
84
expect { output . register } . to raise_error ( LogStash ::ConfigurationError )
85
- output . teardown
85
+ output . close
86
86
end
87
87
88
88
context 'doesnt allow the root directory to have some dynamic part' do
93
93
it "with path: #{ test_path } " do
94
94
path = test_path
95
95
expect { output . register } . to raise_error ( LogStash ::ConfigurationError )
96
- output . teardown
96
+ output . close
97
97
end
98
98
end
99
99
end
133
133
error_file = File . join ( path , config [ "filename_failure" ] )
134
134
135
135
expect ( File . exist? ( error_file ) ) . to eq ( true )
136
- output . teardown
136
+ output . close
137
137
end
138
138
end
139
139
152
152
output . receive ( bad_event )
153
153
154
154
expect ( Dir . glob ( File . join ( path , "*" ) ) . size ) . to eq ( 2 )
155
- output . teardown
155
+ output . close
156
156
end
157
157
end
158
158
165
165
output . receive ( bad_event )
166
166
167
167
expect ( Dir . glob ( File . join ( path , "*" ) ) . size ) . to eq ( 1 )
168
- output . teardown
168
+ output . close
169
169
end
170
170
end
171
171
end
183
183
184
184
good_file = File . join ( path , good_event [ 'error' ] )
185
185
expect ( File . exist? ( good_file ) ) . to eq ( true )
186
- output . teardown
186
+ output . close
187
187
end
188
188
end
189
189
201
201
output . receive ( good_event )
202
202
203
203
expect ( File . exist? ( expected_path ) ) . to eq ( true )
204
- output . teardown
204
+ output . close
205
205
end
206
206
end
207
207
223
223
output . receive ( good_event )
224
224
225
225
expect ( File . exist? ( expected_path ) ) . to eq ( true )
226
- output . teardown
226
+ output . close
227
227
end
228
228
end
229
229
239
239
240
240
good_file = File . join ( path , good_event [ 'error' ] )
241
241
expect ( File . exist? ( good_file ) ) . to eq ( true )
242
- output . teardown
242
+ output . close
243
243
end
244
244
end
245
245
end
You can’t perform that action at this time.
0 commit comments