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.x] [Ingest] Add Global settings flyout (#64276) #64514

Closed
wants to merge 1 commit into from

Conversation

nchaulet
Copy link
Member

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-xpack-agent / Firefox XPack UI Functional Tests.x-pack/test/functional/apps/machine_learning/pages·ts.machine learning page navigation loads the home page

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:23:34]         └-: machine learning
[00:23:34]           └-> "before all" hook
[00:23:34]           └-> "before all" hook
[00:23:34]             │ debg creating role ml_source
[00:23:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added role [ml_source]
[00:23:34]             │ debg creating role ml_dest
[00:23:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added role [ml_dest]
[00:23:34]             │ debg creating role ml_dest_readonly
[00:23:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added role [ml_dest_readonly]
[00:23:34]             │ debg creating role ml_ui_extras
[00:23:34]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added role [ml_ui_extras]
[00:23:34]             │ debg creating user ml_poweruser
[00:23:34]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added user [ml_poweruser]
[00:23:34]             │ debg created user ml_poweruser
[00:23:34]             │ debg creating user ml_viewer
[00:23:35]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added user [ml_viewer]
[00:23:35]             │ debg created user ml_viewer
[00:23:35]             │ debg creating user ml_unauthorized
[00:23:35]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added user [ml_unauthorized]
[00:23:35]             │ debg created user ml_unauthorized
[00:23:35]           └-: page navigation
[00:23:35]             └-> "before all" hook
[00:23:35]             └-> "before all" hook
[00:23:35]               │ debg Deleting indices: '.ml-*'...
[00:23:35]               │ debg Indices '.ml-*' don't exist. Nothing to delete.
[00:23:35]               │ debg SecurityPage.forceLogout
[00:23:35]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:23:35]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:23:35]               │ debg Redirecting to /logout to force the logout
[00:23:36]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:23:36]               │ debg Waiting on the login form to appear
[00:23:36]               │ debg Waiting up to 100000ms for login form...
[00:23:36]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:23:45]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:23:46]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:23:51]               │ debg browser[info] "INFO: 2020-04-27T14:14:54Z\n  Adding connection to http://localhost:6111/elasticsearch\n\n"
[00:23:52]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:23:59]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:00]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:12]               │ debg browser[info] "INFO: 2020-04-27T14:15:16Z\n  Adding connection to http://localhost:6111/elasticsearch\n\n"
[00:24:13]               │ debg navigating to login url: http://localhost:6111/login
[00:24:13]               │ debg navigate to: http://localhost:6111/login
[00:24:13]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:13]               │ debg ... sleep(700) start
[00:24:14]               │ debg ... sleep(700) end
[00:24:14]               │ debg returned from get, calling refresh
[00:24:15]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:15]               │ debg currentUrl = http://localhost:6111/login
[00:24:15]               │          appUrl = http://localhost:6111/login
[00:24:15]               │ debg TestSubjects.find(kibanaChrome)
[00:24:15]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:39]               │ debg browser[info] "INFO: 2020-04-27T14:15:42Z\n  Adding connection to http://localhost:6111/elasticsearch\n\n"
[00:24:42]               │ debg ... sleep(501) start
[00:24:42]               │ debg ... sleep(501) end
[00:24:42]               │ debg in navigateTo url = http://localhost:6111/login
[00:24:42]               │ debg TestSubjects.exists(statusPageContainer)
[00:24:42]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:45]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:45]               │ debg TestSubjects.setValue(loginUsername, ml_poweruser)
[00:24:45]               │ debg TestSubjects.click(loginUsername)
[00:24:45]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:45]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:47]               │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:24:47]               │ debg TestSubjects.click(loginPassword)
[00:24:47]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:47]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:47]               │ debg TestSubjects.click(loginSubmit)
[00:24:47]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:47]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:47]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:24:48]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:57]               │ proc [kibana]   log   [14:16:00.355] [warning][plugins][taskManager][taskManager] Cancelling task lens_telemetry "Lens-lens_telemetry" as it expired at 2020-04-27T14:09:00.086Z after running for 08m 00s (with timeout set at 1m).
[00:25:06]               │ debg browser[info] "INFO: 2020-04-27T14:16:09Z\n  Adding connection to http://localhost:6111/elasticsearch\n\n"
[00:25:18]               │ debg Finished login process currentUrl = http://localhost:6111/app/kibana#/home
[00:25:18]               │ debg Waiting up to 20000ms for logout button visible...
[00:25:18]               │ debg TestSubjects.exists(userMenuButton)
[00:25:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:25:19]               │ debg TestSubjects.exists(userMenu)
[00:25:19]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:25:21]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:25:22]               │ debg TestSubjects.click(userMenuButton)
[00:25:22]               │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:25:22]               │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:25:22]               │ debg Waiting up to 20000ms for user menu opened...
[00:25:22]               │ debg TestSubjects.exists(userMenu)
[00:25:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:25:22]               │ debg TestSubjects.exists(userMenu > logoutLink)
[00:25:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:25:22]             └-> loads the home page
[00:25:22]               └-> "before each" hook: global before each
[00:25:22]               │ debg navigating to ml url: http://localhost:6111/app/ml
[00:25:22]               │ debg navigate to: http://localhost:6111/app/ml
[00:25:22]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:22]               │ debg ... sleep(700) start
[00:25:23]               │ debg ... sleep(700) end
[00:25:23]               │ debg returned from get, calling refresh
[00:25:23]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:23]               │ debg currentUrl = http://localhost:6111/app/ml
[00:25:23]               │          appUrl = http://localhost:6111/app/ml
[00:25:23]               │ debg TestSubjects.find(kibanaChrome)
[00:25:23]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:25:44]               │ debg browser[info] "INFO: 2020-04-27T14:16:47Z\n  Adding connection to http://localhost:6111/elasticsearch\n\n"
[00:25:44]               │ debg ... sleep(501) start
[00:25:45]               │ debg ... sleep(501) end
[00:25:45]               │ debg in navigateTo url = http://localhost:6111/app/ml
[00:25:45]               │ debg TestSubjects.exists(statusPageContainer)
[00:25:45]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:25:47]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:25:48]               │ debg TestSubjects.exists(mlPageOverview)
[00:25:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:25:50]               │ debg --- retry.tryForTime error: [data-test-subj="mlPageOverview"] is not displayed
[00:25:50]               │ debg --- retry.tryForTime error: expected testSubject(mlPageOverview) to exist
[00:25:51]               │ debg navigating to ml url: http://localhost:6111/app/ml
[00:25:51]               │ debg navigate to: http://localhost:6111/app/ml
[00:25:51]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:51]               │ debg ... sleep(700) start
[00:25:52]               │ debg ... sleep(700) end
[00:25:52]               │ debg returned from get, calling refresh
[00:25:53]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:53]               │ debg currentUrl = http://localhost:6111/app/ml
[00:25:53]               │          appUrl = http://localhost:6111/app/ml
[00:25:53]               │ debg TestSubjects.find(kibanaChrome)
[00:25:53]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:26:14]               │ debg browser[info] "INFO: 2020-04-27T14:17:17Z\n  Adding connection to http://localhost:6111/elasticsearch\n\n"
[00:26:14]               │ debg ... sleep(501) start
[00:26:15]               │ debg ... sleep(501) end
[00:26:15]               │ debg in navigateTo url = http://localhost:6111/app/ml
[00:26:15]               │ debg TestSubjects.exists(statusPageContainer)
[00:26:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:26:17]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:26:18]               │ debg TestSubjects.exists(mlPageOverview)
[00:26:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:26:20]               │ debg --- retry.tryForTime error: [data-test-subj="mlPageOverview"] is not displayed
[00:26:21]               │ debg --- retry.tryForTime failed again with the same message...
[00:26:21]               │ debg navigating to ml url: http://localhost:6111/app/ml
[00:26:21]               │ debg navigate to: http://localhost:6111/app/ml
[00:26:22]               │ debg ... sleep(700) start
[00:26:22]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:22]               │ debg ... sleep(700) end
[00:26:22]               │ debg returned from get, calling refresh
[00:26:23]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:23]               │ debg currentUrl = http://localhost:6111/app/ml
[00:26:23]               │          appUrl = http://localhost:6111/app/ml
[00:26:23]               │ debg TestSubjects.find(kibanaChrome)
[00:26:23]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:26:44]               │ debg browser[info] "INFO: 2020-04-27T14:17:48Z\n  Adding connection to http://localhost:6111/elasticsearch\n\n"
[00:26:45]               │ debg ... sleep(501) start
[00:26:45]               │ debg ... sleep(501) end
[00:26:45]               │ debg in navigateTo url = http://localhost:6111/app/ml
[00:26:45]               │ debg TestSubjects.exists(statusPageContainer)
[00:26:45]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:26:48]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:26:49]               │ debg TestSubjects.exists(mlPageOverview)
[00:26:49]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:26:51]               │ debg --- retry.tryForTime error: [data-test-subj="mlPageOverview"] is not displayed
[00:26:51]               │ debg --- retry.tryForTime failed again with the same message...
[00:26:52]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning page navigation loads the home page.png"
[00:26:52]               │ info Current URL is: http://localhost:6111/app/ml#/overview
[00:26:52]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning page navigation loads the home page.html
[00:26:52]               └- ✖ fail: "machine learning page navigation loads the home page"
[00:26:52]               │

Stack Trace

Error: retry.tryForTime timeout: Error: expected testSubject(mlPageOverview) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/test_subjects.ts:62:15)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Kibana Pipeline / kibana-xpack-agent / X-Pack API Integration Tests.x-pack/test/api_integration/apis/fleet/delete_agent·ts.apis Fleet Endpoints fleet_delete_agent should return a 200 after deleting an agent

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook
[00:09:39]           └-: Fleet Endpoints
[00:09:39]             └-> "before all" hook
[00:09:39]             └-: fleet_delete_agent
[00:09:39]               └-> "before all" hook
[00:09:39]               └-> "before all" hook
[00:09:39]                 │ debg creating role fleet_user
[00:09:40]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added role [fleet_user]
[00:09:40]                 │ debg creating user fleet_user
[00:09:40]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added user [fleet_user]
[00:09:40]                 │ debg created user fleet_user
[00:09:40]                 │ debg creating role fleet_admin
[00:09:40]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added role [fleet_admin]
[00:09:40]                 │ debg creating user fleet_admin
[00:09:40]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] added user [fleet_admin]
[00:09:40]                 │ debg created user fleet_admin
[00:09:41]                 │ info [fleet/agents] Loading "mappings.json"
[00:09:41]                 │ info [fleet/agents] Loading "data.json"
[00:09:41]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] [.kibana_1/JE3NSvz6QMip86fFHn-IQA] deleting index
[00:09:41]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] [.kibana_2/n3sR1EkgR0umdaeCH4eaPA] deleting index
[00:09:41]                 │ info [fleet/agents] Deleted existing index [".kibana_2",".kibana_1"]
[00:09:41]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] applying create index request using v1 templates []
[00:09:41]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:09:41]                 │ info [fleet/agents] Created index ".kibana_1"
[00:09:41]                 │ debg [fleet/agents] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:09:41]                 │ info [fleet/agents] Indexed 11 docs into ".kibana"
[00:09:41]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] [.kibana_1/0ciLP-wOQTS9w1IzzlfrLg] update_mapping [_doc]
[00:09:41]                 │ debg Migrating saved objects
[00:09:42]                 │ proc [kibana]   log   [14:30:16.188] [info][savedobjects-service] Detected mapping change in "dynamic"
[00:09:42]                 │ proc [kibana]   log   [14:30:16.191] [info][savedobjects-service] Creating index .kibana_2.
[00:09:42]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] applying create index request using v1 templates []
[00:09:42]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:09:42]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] updating number_of_replicas to [0] for indices [.kibana_2]
[00:09:42]                 │ proc [kibana]   log   [14:30:16.303] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:09:42]                 │ proc [kibana]   log   [14:30:16.316] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:09:42]                 │ proc [kibana]   log   [14:30:16.376] [info][savedobjects-service] Finished in 187ms.
[00:09:42]               └-> should return a 404 if user lacks fleet-write permissions
[00:09:42]                 └-> "before each" hook: global before each
[00:09:42]                 │ proc [kibana]   log   [14:30:16.537] [warning][api-authorization][plugins][security] User not authorized for "/api/ingest_manager/fleet/agents/agent1": responding with 404
[00:09:42]                 └- ✓ pass  (198ms) "apis Fleet Endpoints fleet_delete_agent should return a 404 if user lacks fleet-write permissions"
[00:09:42]               └-> should return a 404 if there is no agent to delete
[00:09:42]                 └-> "before each" hook: global before each
[00:09:42]                 └- ✓ pass  (265ms) "apis Fleet Endpoints fleet_delete_agent should return a 404 if there is no agent to delete"
[00:09:42]               └-> should return a 200 after deleting an agent
[00:09:42]                 └-> "before each" hook: global before each
[00:09:43]                 └- ✖ fail: "apis Fleet Endpoints fleet_delete_agent should return a 200 after deleting an agent"
[00:09:43]                 │

Stack Trace

Error: expected 200 "OK", got 404 "Not Found"
    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)

Kibana Pipeline / kibana-xpack-agent / X-Pack Endpoint Functional Tests.x-pack/test/functional_endpoint/apps/endpoint/landing_page·ts.endpoint Endpoint landing page Does not display a toast indicating that the ingest manager failed to initialize

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: endpoint
[00:00:00]           └-> "before all" hook
[00:00:55]           └-: Endpoint landing page
[00:00:55]             └-> "before all" hook
[00:00:55]             └-> "before all" hook
[00:00:55]               │ debg navigating to endpoint url: http://localhost:6181/app/endpoint
[00:00:55]               │ debg navigate to: http://localhost:6181/app/endpoint
[00:00:55]               │ debg browser[INFO] http://localhost:6181/app/endpoint?_t=1587998073743 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:55]               │
[00:00:55]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:55]               │ debg ... sleep(700) start
[00:00:56]               │ debg ... sleep(700) end
[00:00:56]               │ debg returned from get, calling refresh
[00:00:57]               │ debg browser[INFO] http://localhost:6181/app/endpoint?_t=1587998073743 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:57]               │
[00:00:57]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:57]               │ debg currentUrl = http://localhost:6181/app/endpoint
[00:00:57]               │          appUrl = http://localhost:6181/app/endpoint
[00:00:57]               │ debg TestSubjects.find(kibanaChrome)
[00:00:57]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:03]               │ proc [kibana]  error  [14:34:41.693]  Error: Internal Server Error
[00:01:03]               │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/install/kibana-8/src/core/server/http/router/response_adapter.js:132:19)
[00:01:03]               │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/install/kibana-8/src/core/server/http/router/response_adapter.js:86:19)
[00:01:03]               │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/install/kibana-8/src/core/server/http/router/response_adapter.js:81:17)
[00:01:03]               │ proc [kibana]     at Router.handle (/dev/shm/workspace/install/kibana-8/src/core/server/http/router/router.js:160:34)
[00:01:03]               │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:01:03]               │ debg browser[INFO] http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-27T14:34:41Z
[00:01:03]               │        Adding connection to http://localhost:6181/elasticsearch
[00:01:03]               │
[00:01:03]               │      "
[00:01:03]               │ERROR browser[SEVERE] http://localhost:6181/api/ingest_manager/setup - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:01:03]               │ debg ... sleep(501) start
[00:01:03]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] adding template [events-mappings] for index patterns [events-*-*]
[00:01:04]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] adding template [logs-mappings] for index patterns [logs-*-*]
[00:01:04]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] adding template [events-settings] for index patterns [events-*-*]
[00:01:04]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] adding template [metrics-mappings] for index patterns [metrics-*-*]
[00:01:04]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] adding template [metrics-settings] for index patterns [metrics-*-*]
[00:01:04]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xl-1587993311426742768] adding template [logs-settings] for index patterns [logs-*-*]
[00:01:04]               │ debg ... sleep(501) end
[00:01:04]               │ debg in navigateTo url = http://localhost:6181/app/endpoint
[00:01:04]               │ debg TestSubjects.exists(statusPageContainer)
[00:01:04]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:06]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:07]             └-> Loads the endpoint app
[00:01:07]               └-> "before each" hook: global before each
[00:01:07]               │ debg TestSubjects.getVisibleText(welcomeTitle)
[00:01:07]               │ debg TestSubjects.find(welcomeTitle)
[00:01:07]               │ debg Find.findByCssSelector('[data-test-subj="welcomeTitle"]') with timeout=10000
[00:01:07]               └- ✓ pass  (36ms) "endpoint Endpoint landing page Loads the endpoint app"
[00:01:07]             └-> Does not display a toast indicating that the ingest manager failed to initialize
[00:01:07]               └-> "before each" hook: global before each
[00:01:07]               │ debg TestSubjects.missingOrFail(euiToastHeader)
[00:01:07]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="euiToastHeader"]') with timeout=2500
[00:01:09]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/endpoint Endpoint landing page Does not display a toast indicating that the ingest manager failed to initialize.png"
[00:01:10]               │ info Current URL is: http://localhost:6181/app/endpoint
[00:01:10]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/endpoint Endpoint landing page Does not display a toast indicating that the ingest manager failed to initialize.html
[00:01:10]               └- ✖ fail: "endpoint Endpoint landing page Does not display a toast indicating that the ingest manager failed to initialize"
[00:01:10]               │

Stack Trace

{ TimeoutError: The element [data-test-subj="euiToastHeader"] was still present when it should have disappeared.
Wait timed out after 2552ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

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

@nchaulet nchaulet closed this Apr 27, 2020
@nchaulet nchaulet deleted the backport/7.x/pr-64276 branch April 27, 2020 16:00
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