Skip to content

Commit 18cf7fb

Browse files
committed
attempt to fix integration tests
1 parent d13fa26 commit 18cf7fb

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

spec/integration/outputs/compressed_indexing_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
{
3737
"Content-Encoding" => "gzip",
3838
"Content-Type" => "application/json",
39-
'x-elastic-product-origin' => 'logstash-output-elasticsearch'
39+
'x-elastic-product-origin' => 'logstash-output-elasticsearch',
40+
'X-Elastic-Event-Count' => anything,
41+
'X-Elastic-Uncompressed-Request-Length' => anything,
4042
}
4143
}
4244

spec/integration/outputs/index_spec.rb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,22 @@ def curl_and_get_json_response(url, method: :get, retrieve_err_payload: false);
215215

216216
it "sets the correct content-type header" do
217217
expected_manticore_opts = {
218-
:headers => {"Content-Type" => "application/json", 'x-elastic-product-origin' => 'logstash-output-elasticsearch'},
218+
:headers => {
219+
"Content-Type" => "application/json",
220+
'x-elastic-product-origin' => 'logstash-output-elasticsearch',
221+
'X-Elastic-Event-Count' => anything,
222+
'X-Elastic-Uncompressed-Request-Length' => anything
223+
},
219224
:body => anything
220225
}
221226
if secure
222227
expected_manticore_opts = {
223-
:headers => {"Content-Type" => "application/json", 'x-elastic-product-origin' => 'logstash-output-elasticsearch'},
228+
:headers => {
229+
"Content-Type" => "application/json",
230+
'x-elastic-product-origin' => 'logstash-output-elasticsearch',
231+
'X-Elastic-Event-Count' => anything,
232+
'X-Elastic-Uncompressed-Request-Length' => anything
233+
},
224234
:body => anything,
225235
:auth => {
226236
:user => user,

0 commit comments

Comments
 (0)