Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.9] Fixed Webhook connector doesn't retain added HTTP header settings (#71924) #72163

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

YulNaumenko
Copy link
Contributor

Backports the following commits to 7.9:

…astic#71924)

* Fixed Webhook connector doesn't retain added HTTP header settings

* fixed method
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack API Integration Tests.x-pack/test/api_integration/apis/fleet/unenroll_agent·ts.apis Fleet Endpoints fleet_unenroll_agent allow to unenroll using a list of ids

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 8 times on tracked branches: https://github.com/elastic/kibana/issues/64696

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook
[00:07:42]           └-: Fleet Endpoints
[00:07:42]             └-> "before all" hook
[00:07:46]             └-: fleet_unenroll_agent
[00:07:46]               └-> "before all" hook
[00:07:46]               └-> "before all" hook
[00:07:46]                 │ info [fleet/agents] Loading "mappings.json"
[00:07:46]                 │ info [fleet/agents] Loading "data.json"
[00:07:46]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_2/3DKvQYqXR0ap6yXoUOcFNQ] deleting index
[00:07:46]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_1/y1TK-eA0Sp6WhCNNSfqElA] deleting index
[00:07:46]                 │ info [fleet/agents] Deleted existing index [".kibana_2",".kibana_1"]
[00:07:46]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:07:46]                 │ info [fleet/agents] Created index ".kibana_1"
[00:07:46]                 │ debg [fleet/agents] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:07:46]                 │ info [fleet/agents] Indexed 12 docs into ".kibana"
[00:07:46]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_1/1mbtDPMvRSGWPcEiC5RLmg] update_mapping [_doc]
[00:07:46]                 │ debg Migrating saved objects
[00:07:46]                 │ proc [kibana]   log   [22:45:54.283] [info][savedobjects-service] Detected mapping change in "dynamic"
[00:07:46]                 │ proc [kibana]   log   [22:45:54.285] [info][savedobjects-service] Creating index .kibana_2.
[00:07:46]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:07:46]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] updating number_of_replicas to [0] for indices [.kibana_2]
[00:07:46]                 │ proc [kibana]   log   [22:45:54.364] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:07:46]                 │ proc [kibana]   log   [22:45:54.377] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:07:46]                 │ proc [kibana]   log   [22:45:54.428] [info][savedobjects-service] Finished in 144ms.
[00:07:46]               └-> "before all" hook
[00:07:46]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_2/LXpioan1Qey5ttzn43xdeQ] update_mapping [_doc]
[00:07:46]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [logs-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:07:46]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [events-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:07:46]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [metrics-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:07:47]                 │ proc [kibana]  error  [22:45:55.377] [warning][process] UnhandledPromiseRejectionWarning: Error: [epm-packages:endpoint]: version conflict, required seqNo [15], primary term [1]. current document has seqNo [16] and primary term [1]: [version_conflict_engine_exception] [epm-packages:endpoint]: version conflict, required seqNo [15], primary term [1]. current document has seqNo [16] and primary term [1], with { index_uuid="LXpioan1Qey5ttzn43xdeQ" & shard="0" & index=".kibana_2" }
[00:07:47]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:07:47]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:07:47]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:07:47]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:07:47]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:07:47]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:07:47]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:07:47]                 │ proc [kibana]     at emitWarning (internal/process/promises.js:97:15)
[00:07:47]                 │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:07:47]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:07:47]                 │ proc [kibana]  error  [22:45:55.379] [warning][process] Error: [epm-packages:endpoint]: version conflict, required seqNo [15], primary term [1]. current document has seqNo [16] and primary term [1]: [version_conflict_engine_exception] [epm-packages:endpoint]: version conflict, required seqNo [15], primary term [1]. current document has seqNo [16] and primary term [1], with { index_uuid="LXpioan1Qey5ttzn43xdeQ" & shard="0" & index=".kibana_2" }
[00:07:47]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:07:47]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:07:47]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:07:47]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:07:47]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:07:47]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:07:47]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:07:47]                 │ proc [kibana]  error  [22:45:55.411] [warning][process] PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 111)
[00:07:47]                 │ proc [kibana]     at handledRejection (internal/process/promises.js:71:23)
[00:07:47]                 │ proc [kibana]     at promiseRejectHandler (internal/process/promises.js:36:14)
[00:07:47]                 │ proc [kibana]     at Promise.then (<anonymous>)
[00:07:47]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:07:47]               └-> allow to unenroll using a list of ids
[00:07:47]                 └-> "before each" hook: global before each
[00:07:47]                 └-> "before each" hook
[00:07:47]                   │ proc [kibana]  error  [22:45:55.380]  Error: Internal Server Error
[00:07:47]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:132:19)
[00:07:47]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:86:19)
[00:07:47]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:81:17)
[00:07:47]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/router.js:162:34)
[00:07:47]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:07:47]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_2/LXpioan1Qey5ttzn43xdeQ] update_mapping [_doc]
[00:07:48]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_2/LXpioan1Qey5ttzn43xdeQ] update_mapping [_doc]
[00:07:48]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_2/LXpioan1Qey5ttzn43xdeQ] update_mapping [_doc]
[00:07:48]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594935951673293978] [.kibana_2/LXpioan1Qey5ttzn43xdeQ] update_mapping [_doc]
[00:07:49]                 └- ✖ fail: apis Fleet Endpoints fleet_unenroll_agent allow to unenroll using a list of ids
[00:07:49]                 │      Error: expected 200 "OK", got 500 "Internal Server Error"
[00:07:49]                 │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:07:49]                 │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:07:49]                 │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:07:49]                 │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:07:49]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:07:49]                 │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
[00:07:49]                 │       at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
[00:07:49]                 │       at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:07:49]                 │       at endReadableNT (_stream_readable.js:1145:12)
[00:07:49]                 │       at process._tickCallback (internal/process/next_tick.js:63:19)
[00:07:49]                 │ 
[00:07:49]                 │ 

Stack Trace

Error: expected 200 "OK", got 500 "Internal Server Error"
    at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
    at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
    at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@YulNaumenko YulNaumenko merged commit ecc4bf8 into elastic:7.9 Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants