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 ES Promotion: API Keys app Home page Loads the app #87163

Closed
mistic opened this issue Jan 4, 2021 · 3 comments · Fixed by #87053
Closed

Failing ES Promotion: API Keys app Home page Loads the app #87163

mistic opened this issue Jan 4, 2021 · 3 comments · Fixed by #87053

Comments

@mistic
Copy link
Member

mistic commented Jan 4, 2021

This failure is preventing the promotion of the current Elasticsearch nightly snapshot.

https://kibana-ci.elastic.co/job/elasticsearch+snapshots+verify/2017/testReport/junit/Chrome%20X-Pack%20UI%20Functional%20Tests/x-pack_test_functional_apps_api_keys_home_page%C2%B7ts/Kibana_Pipeline___kibana_xpack_agent___API_Keys_app_Home_page_Loads_the_app/

For more information on the Elasticsearch snapshot promotion process: https://www.elastic.co/guide/en/kibana/master/development-es-snapshots.html

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

[00:00:00]       │
[00:31:18]         └-: API Keys app
[00:31:18]           └-> "before all" hook
[00:31:18]           └-: Home page
[00:31:18]             └-> "before all" hook
[00:31:18]             └-> "before all" hook
[00:31:18]               │ debg set roles = kibana_admin
[00:31:18]               │ debg creating user test_user
[00:31:18]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] updated user [test_user]
[00:31:18]               │ debg created user test_user
[00:31:18]               │ debg TestSubjects.exists(kibanaChrome)
[00:31:18]               │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:31:18]               │ debg TestSubjects.find(kibanaChrome)
[00:31:18]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:31:18]               │ debg browser[INFO] http://localhost:6171/app/logs/stream?sourceId=default&logPosition=(end:%272021-01-03T21:17:58.053Z%27,position:(tiebreaker:0,time:1609705078053),start:%272021-01-03T19:17:58.053Z%27,streamLive:!f)&logFilter=(expression:%27trace.id:433b4651687e18be2c6c8e3b11f53d09%27,kind:kuery) 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:31:18]               │
[00:31:18]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:31:20]               │ debg navigating to apiKeys url: http://localhost:6171/app/management/security/api_keys
[00:31:20]               │ debg navigate to: http://localhost:6171/app/management/security/api_keys
[00:31:20]               │ proc [kibana]  error  [20:49:19.513]  Error: Internal Server Error
[00:31:20]               │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/response_adapter.js:132:19)
[00:31:20]               │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/response_adapter.js:86:19)
[00:31:20]               │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/response_adapter.js:81:17)
[00:31:20]               │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/router.js:164:34)
[00:31:20]               │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:31:20]               │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:31:20]               │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/router.js:124:50)
[00:31:20]               │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:31:20]               │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:31:20]               │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:31:20]               │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:31:20]               │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:31:20]               │ proc [kibana] Sending error to Elastic APM { id: 'be95239d7f5ac41b011ab773e7c78458' }
[00:31:20]               │ERROR browser[SEVERE] http://localhost:6171/api/log_entries/entries - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:31:20]               │ERROR browser[SEVERE] http://localhost:6171/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:31:20]               │ debg browser[INFO] http://localhost:6171/39250/bundles/core/core.entry.js 12:195717 "Detected an unhandled Promise rejection.
[00:31:20]               │      Error: Forbidden"
[00:31:20]               │ERROR browser[SEVERE] http://localhost:6171/39250/bundles/core/core.entry.js 5:3002 
[00:31:20]               │ debg browser[INFO] http://localhost:6171/app/management/security/api_keys?_t=1609706959521 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:31:20]               │
[00:31:20]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:31:20]               │ debg ... sleep(700) start
[00:31:21]               │ debg ... sleep(700) end
[00:31:21]               │ debg returned from get, calling refresh
[00:31:21]               │ debg browser[INFO] http://localhost:6171/app/management/security/api_keys?_t=1609706959521 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:31:21]               │
[00:31:21]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:31:22]               │ debg currentUrl = http://localhost:6171/app/management/security/api_keys
[00:31:22]               │          appUrl = http://localhost:6171/app/management/security/api_keys
[00:31:22]               │ debg TestSubjects.find(kibanaChrome)
[00:31:22]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:31:22]               │ debg ... sleep(501) start
[00:31:22]               │ debg ... sleep(501) end
[00:31:23]               │ debg in navigateTo url = http://localhost:6171/app/management/security/api_keys
[00:31:23]               │ debg TestSubjects.exists(statusPageContainer)
[00:31:23]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:31:25]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:31:26]             └-> Hides management link if user is not authorized
[00:31:26]               └-> "before each" hook: global before each
[00:31:26]               │ debg TestSubjects.missingOrFail(apiKeys)
[00:31:26]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="apiKeys"]') with timeout=2500
[00:31:26]               └- ✓ pass  (525ms) "API Keys app Home page Hides management link if user is not authorized"
[00:31:26]             └-> Loads the app
[00:31:26]               └-> "before each" hook: global before each
[00:31:26]               │ debg set roles = test_api_keys
[00:31:26]               │ debg creating user test_user
[00:31:26]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] updated user [test_user]
[00:31:26]               │ debg created user test_user
[00:31:26]               │ debg TestSubjects.exists(kibanaChrome)
[00:31:26]               │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:31:26]               │ debg TestSubjects.find(kibanaChrome)
[00:31:26]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:31:26]               │ debg browser[INFO] http://localhost:6171/app/management/security/api_keys?_t=1609706959521 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:31:26]               │
[00:31:26]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:31:28]               │ debg Checking for section header
[00:31:28]               │ debg TestSubjects.findAll(noApiKeysHeader)
[00:31:28]               │ debg Find.allByCssSelector('[data-test-subj="noApiKeysHeader"]') with timeout=10000
[00:31:38]               │ debg TestSubjects.getVisibleText(apiKeyAdminDescriptionCallOut)
[00:31:38]               │ debg TestSubjects.find(apiKeyAdminDescriptionCallOut)
[00:31:38]               │ debg Find.findByCssSelector('[data-test-subj="apiKeyAdminDescriptionCallOut"]') with timeout=10000
[00:31:38]               │ERROR browser[SEVERE] http://localhost:6171/internal/security/api_key/privileges - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:31:48]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/API Keys app Home page Loads the app.png"
[00:31:48]               │ info Current URL is: http://localhost:6171/app/management/security/api_keys
[00:31:48]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/API Keys app Home page Loads the app.html
[00:31:48]               └- ✖ fail: API Keys app Home page Loads the app
[00:31:48]               │      TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="apiKeyAdminDescriptionCallOut"])
[00:31:48]               │ Wait timed out after 10007ms
[00:31:48]               │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:31:48]               │       at runMicrotasks (<anonymous>)
[00:31:48]               │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:31:48]               │ 
[00:31:48]               │ 
REST API
Jenkins 2.252
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-qa (Team:QA)

@mistic
Copy link
Member Author

mistic commented Jan 4, 2021

Skipped.

master/8.0: 77d03ee

@mistic
Copy link
Member Author

mistic commented Jan 4, 2021

That failure will be handled by #87053

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants