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

Failing test: X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/update_api_key·ts - alerting api integration security and spaces enabled Alerts update_api_key space_1_all_alerts_none_actions at space1 should still be able to update API key when AAD is broken #84216

Closed
kibanamachine opened this issue Nov 24, 2020 · 3 comments · Fixed by #84707
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) triage_needed

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

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/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (_stream_readable.js:1223:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Nov 24, 2020
@mistic mistic added the Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! label Nov 24, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@azasypkin azasypkin added Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) triage_needed and removed Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Nov 24, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@mikecote
Copy link
Contributor

mikecote commented Dec 1, 2020

[00:26:57]                 └-> should still be able to update API key when AAD is broken
[00:26:57]                   └-> "before each" hook: global before each
[00:26:59]                   │ proc [kibana]   log   [12:45:14.470] [info][eventLog][plugins] event logged: {"@timestamp":"2020-11-24T12:45:14.438Z","event":{"provider":"alerting","action":"execute","start":"2020-11-24T12:45:14.438Z","outcome":"success","end":"2020-11-24T12:45:14.469Z","duration":31000000},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"4202d59e-997b-4296-ba8d-583718ce6999","namespace":"space1"}],"alerting":{"status":"ok"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:4202d59e-997b-4296-ba8d-583718ce6999: 'abc'","ecs":{"version":"1.6.0"}}
[00:26:59]                   │ proc [kibana]   log   [12:45:14.491] [info][eventLog][plugins] event logged: {"@timestamp":"2020-11-24T12:45:14.438Z","event":{"provider":"alerting","action":"execute","start":"2020-11-24T12:45:14.438Z","outcome":"success","end":"2020-11-24T12:45:14.490Z","duration":52000000},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"a04589c0-e4bf-4608-b3c8-244c54526318","namespace":"space1"}],"alerting":{"status":"ok"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:a04589c0-e4bf-4608-b3c8-244c54526318: 'abc'","ecs":{"version":"1.6.0"}}
[00:26:59]                   │ proc [kibana]   log   [12:45:14.494] [info][eventLog][plugins] event logged: {"@timestamp":"2020-11-24T12:45:14.438Z","event":{"provider":"alerting","action":"execute","start":"2020-11-24T12:45:14.438Z","outcome":"success","end":"2020-11-24T12:45:14.493Z","duration":55000000},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"0978fe5f-91ac-4a62-878f-908bd566050f","namespace":"space1"}],"alerting":{"status":"ok"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.restricted-noop:0978fe5f-91ac-4a62-878f-908bd566050f: 'abc'","ecs":{"version":"1.6.0"}}
[00:26:59]                   │ proc [kibana]   log   [12:45:14.495] [error][data][elasticsearch] [version_conflict_engine_exception]: [space1:alert:a04589c0-e4bf-4608-b3c8-244c54526318]: version conflict, required seqNo [2600], primary term [1]. current document has seqNo [2602] and primary term [1]
[00:26:59]                   │ proc [kibana]   log   [12:45:14.496] [error][http] ResponseError: [space1:alert:a04589c0-e4bf-4608-b3c8-244c54526318]: version conflict, required seqNo [2600], primary term [1]. current document has seqNo [2602] and primary term [1]: version_conflict_engine_exception
[00:26:59]                   │ proc [kibana]     at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana-build-xpack-13/node_modules/@elastic/elasticsearch/lib/Transport.js:272:25)
[00:26:59]                   │ proc [kibana]     at IncomingMessage.emit (events.js:326:22)
[00:26:59]                   │ proc [kibana]     at endReadableNT (_stream_readable.js:1223:12)
[00:26:59]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:84:21) {
[00:26:59]                   │ proc [kibana]   meta: {
[00:26:59]                   │ proc [kibana]     body: { error: [Object], status: 409 },
[00:26:59]                   │ proc [kibana]     statusCode: 409,
[00:26:59]                   │ proc [kibana]     headers: {
[00:26:59]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:26:59]                   │ proc [kibana]       'content-length': '623'
[00:26:59]                   │ proc [kibana]     },
[00:26:59]                   │ proc [kibana]     meta: {
[00:26:59]                   │ proc [kibana]       context: null,
[00:26:59]                   │ proc [kibana]       request: [Object],
[00:26:59]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:26:59]                   │ proc [kibana]       connection: [Object],
[00:26:59]                   │ proc [kibana]       attempts: 0,
[00:26:59]                   │ proc [kibana]       aborted: false
[00:26:59]                   │ proc [kibana]     }
[00:26:59]                   │ proc [kibana]   },
[00:26:59]                   │ proc [kibana]   isBoom: true,
[00:26:59]                   │ proc [kibana]   isServer: false,
[00:26:59]                   │ proc [kibana]   data: null,
[00:26:59]                   │ proc [kibana]   output: {
[00:26:59]                   │ proc [kibana]     statusCode: 409,
[00:26:59]                   │ proc [kibana]     payload: {
[00:26:59]                   │ proc [kibana]       message: '[space1:alert:a04589c0-e4bf-4608-b3c8-244c54526318]: version conflict, required seqNo [2600], primary term [1]. current document has seqNo [2602] and primary term [1]: version_conflict_engine_exception',
[00:26:59]                   │ proc [kibana]       statusCode: 409,
[00:26:59]                   │ proc [kibana]       error: 'Conflict'
[00:26:59]                   │ proc [kibana]     },
[00:26:59]                   │ proc [kibana]     headers: {}
[00:26:59]                   │ proc [kibana]   },
[00:26:59]                   │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/conflict'
[00:26:59]                   │ proc [kibana] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) triage_needed
Projects
None yet
7 participants