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

Index Management ES JS client migration followup #107463

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented Aug 2, 2021

Followup items from #105863:

  • Improve Index Management ts-expect-error annotations.
  • Add steps for testing legacy index template mappings types to Index Management README.
  • Rename component template API route handler files to follow pattern used elsewhere.

@cjcenizal cjcenizal added chore v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes v7.15.0 labels Aug 2, 2021
@cjcenizal cjcenizal requested a review from a team as a code owner August 2, 2021 19:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-management (Team:Stack Management)

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/observability/feature_controls/observability_security·ts.ObservabilityApp feature controls observability security feature controls observability cases all privileges allows a case to be created

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:13:48]         └-: ObservabilityApp
[00:13:48]           └-> "before all" hook in "ObservabilityApp"
[00:13:48]           └-: feature controls
[00:13:48]             └-> "before all" hook in "feature controls"
[00:13:48]             └-: observability security feature controls
[00:13:48]               └-> "before all" hook in "observability security feature controls"
[00:13:48]               └-> "before all" hook in "observability security feature controls"
[00:13:48]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "mappings.json"
[00:13:48]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "data.json.gz"
[00:13:48]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/yfpwCSW-TpS7L1McWfbS5w] deleting index
[00:13:48]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/WMRZ8H3QQlCujJ2ppm1IwA] deleting index
[00:13:48]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/4Ajy1DucSDGhQeWb_KnycA] deleting index
[00:13:48]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_8.0.0_001"
[00:13:48]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:13:48]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_1"
[00:13:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:13:48]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_1]
[00:13:48]                 │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:13:48]                 │ info [x-pack/test/functional/es_archives/cases/default] Created index ".kibana_1"
[00:13:48]                 │ debg [x-pack/test/functional/es_archives/cases/default] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"1","number_of_shards":"1"}}
[00:13:48]                 │ info [x-pack/test/functional/es_archives/cases/default] Indexed 9 docs into ".kibana_1"
[00:13:48]                 │ debg Migrating saved objects
[00:13:48]                 │ proc [kibana]   log   [20:36:12.165] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.168] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 7ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.171] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 3ms.
[00:13:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:13:48]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:13:48]                 │ proc [kibana]   log   [20:36:12.176] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 5ms.
[00:13:48]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/CbdAMfyPSViT8XTMeuzN0Q]]
[00:13:48]                 │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_task_manager_8.0.0_001][0]]"
[00:13:48]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:13:48]                 │ proc [kibana]   log   [20:36:12.282] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 117ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.310] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 134ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.314] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 4ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.339] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 57ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.340] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 177ms
[00:13:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:13:48]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:13:48]                 │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:13:48]                 │ proc [kibana]   log   [20:36:12.410] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 96ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.413] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 3ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.419] [info][savedobjects-service] [.kibana] Starting to process 9 documents.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.419] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 5ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.428] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 10ms.
[00:13:48]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/-NAsDaF5QhyFDn5ba8Lpiw] update_mapping [_doc]
[00:13:48]                 │ proc [kibana]   log   [20:36:12.472] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 44ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.478] [info][savedobjects-service] [.kibana] Processed 9 documents out of 9.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.478] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:13:48]                 │ proc [kibana]   log   [20:36:12.481] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 3ms.
[00:13:48]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/-NAsDaF5QhyFDn5ba8Lpiw]]
[00:13:48]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:13:48]                 │ proc [kibana]   log   [20:36:12.543] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 62ms.
[00:13:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:13:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:13:48]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:13:48]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/_AcuPshORcK03juKL3cORw] create_mapping
[00:13:49]                 │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:13:49]                 │ proc [kibana]   log   [20:36:12.676] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 133ms.
[00:13:49]                 │ proc [kibana]   log   [20:36:12.679] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 2ms.
[00:13:49]                 │ proc [kibana]   log   [20:36:12.681] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[00:13:49]                 │ proc [kibana]   log   [20:36:12.686] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 5ms.
[00:13:49]                 │ proc [kibana]   log   [20:36:12.688] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 2ms.
[00:13:49]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/_AcuPshORcK03juKL3cORw] update_mapping [_doc]
[00:13:49]                 │ proc [kibana]   log   [20:36:12.749] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 61ms.
[00:13:49]                 │ info [o.e.t.LoggingTaskListener] [node-01] 35277 finished with response BulkByScrollResponse[took=27.3ms,timed_out=false,sliceId=null,updated=9,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:13:49]                 │ proc [kibana]   log   [20:36:12.854] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 105ms.
[00:13:49]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/-NAsDaF5QhyFDn5ba8Lpiw] deleting index
[00:13:49]                 │ proc [kibana]   log   [20:36:12.932] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 78ms.
[00:13:49]                 │ proc [kibana]   log   [20:36:12.933] [info][savedobjects-service] [.kibana] Migration completed after 772ms
[00:13:49]                 │ debg [x-pack/test/functional/es_archives/cases/default] Migrated Kibana index after loading Kibana data
[00:13:49]                 │ debg [x-pack/test/functional/es_archives/cases/default] Ensured that default space exists in .kibana
[00:13:49]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true,"visualization:visualize:legacyPieChartsLibrary":true}
[00:13:50]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/_AcuPshORcK03juKL3cORw] update_mapping [_doc]
[00:13:51]               └-: observability cases all privileges
[00:13:51]                 └-> "before all" hook for "shows observability/cases navlink"
[00:13:51]                 └-> "before all" hook for "shows observability/cases navlink"
[00:13:51]                   │ debg creating role cases_observability_all_role
[00:13:52]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [cases_observability_all_role]
[00:13:52]                   │ debg creating user cases_observability_all_user
[00:13:52]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [cases_observability_all_user]
[00:13:52]                   │ debg created user cases_observability_all_user
[00:13:52]                   │ debg SecurityPage.forceLogout
[00:13:52]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:13:52]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:13:52]                   │ debg Redirecting to /logout to force the logout
[00:13:52]                   │ debg Waiting on the login form to appear
[00:13:52]                   │ debg Waiting for Login Page to appear.
[00:13:52]                   │ debg Waiting up to 100000ms for login page...
[00:13:52]                   │ debg browser[INFO] http://localhost:61191/logout?_t=1627936576394 281 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:13:52]                   │
[00:13:52]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:52]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:13:55]                   │ERROR browser[SEVERE] http://localhost:61191/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:13:55]                   │ debg browser[INFO] http://localhost:61191/44945/bundles/core/core.entry.js 12:156238 "Detected an unhandled Promise rejection.
[00:13:55]                   │      Error: Unauthorized"
[00:13:55]                   │ERROR browser[SEVERE] http://localhost:61191/44945/bundles/core/core.entry.js 5:2474 
[00:13:55]                   │ debg browser[INFO] http://localhost:61191/login?msg=LOGGED_OUT 281 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:13:55]                   │
[00:13:55]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:55]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:13:56]                   │ERROR browser[SEVERE] http://localhost:61191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:13:56]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:13:56]                   │ debg TestSubjects.exists(loginForm)
[00:13:56]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:13:56]                   │ debg Waiting for Login Form to appear.
[00:13:56]                   │ debg Waiting up to 100000ms for login form...
[00:13:56]                   │ debg TestSubjects.exists(loginForm)
[00:13:56]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:13:56]                   │ debg TestSubjects.setValue(loginUsername, cases_observability_all_user)
[00:13:56]                   │ debg TestSubjects.click(loginUsername)
[00:13:56]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:13:56]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:13:57]                   │ debg TestSubjects.setValue(loginPassword, cases_observability_all_user-password)
[00:13:57]                   │ debg TestSubjects.click(loginPassword)
[00:13:57]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:13:57]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:13:57]                   │ debg TestSubjects.click(loginSubmit)
[00:13:57]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:13:57]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:13:57]                   │ debg Waiting for login result, expected: undefined.
[00:13:57]                   │ debg Waiting up to 20000ms for logout button visible...
[00:13:57]                   │ debg TestSubjects.exists(userMenuButton)
[00:13:57]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:13:57]                   │ proc [kibana]   log   [20:36:21.214] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:13:59]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/_AcuPshORcK03juKL3cORw] update_mapping [_doc]
[00:13:59]                   │ debg browser[INFO] http://localhost:61191/app/home 281 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:13:59]                   │
[00:13:59]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:59]                   │ debg TestSubjects.exists(userMenu)
[00:13:59]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:14:02]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:14:02]                   │ debg TestSubjects.click(userMenuButton)
[00:14:02]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:02]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:02]                   │ debg TestSubjects.exists(userMenu)
[00:14:02]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:14:02]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:14:02]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:14:03]                 └-> shows observability/cases navlink
[00:14:03]                   └-> "before each" hook: global before each for "shows observability/cases navlink"
[00:14:03]                   │ debg isGlobalLoadingIndicatorVisible
[00:14:03]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:14:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:14:04]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:14:05]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:14:05]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:14:05]                   │ debg TestSubjects.exists(collapsibleNav)
[00:14:05]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:14:07]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:14:08]                   │ debg TestSubjects.click(toggleNavButton)
[00:14:08]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:14:08]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:14:08]                   │ debg TestSubjects.find(collapsibleNav)
[00:14:08]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:14:08]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:14:08]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:08]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:08]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:08]                   └- ✓ pass  (5.4s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges shows observability/cases navlink"
[00:14:08]                 └-> landing page shows "Create new case" button
[00:14:08]                   └-> "before each" hook: global before each for "landing page shows "Create new case" button"
[00:14:08]                   │ debg navigateToActualUrl http://localhost:61191/app/observability/cases
[00:14:08]                   │ debg browser[INFO] http://localhost:61191/app/observability/cases?_t=1627936592031 281 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:14:08]                   │
[00:14:08]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:08]                   │ debg currentUrl = http://localhost:61191/app/observability/cases
[00:14:08]                   │          appUrl = http://localhost:61191/app/observability/cases
[00:14:08]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:08]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:10]                   │ debg TestSubjects.find(createNewCaseBtn)
[00:14:10]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=20000
[00:14:10]                   │ proc [kibana]   log   [20:36:33.925] [error][http] ResponseError: security_exception: [security_exception] Reason: action [indices:data/read/search] is unauthorized for user [cases_observability_all_user] with roles [cases_observability_all_role], this action is granted by the index privileges [read,all]
[00:14:10]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-19/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:10]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-19/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:10]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:10]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:10]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:10]                   │ proc [kibana]   meta: {
[00:14:10]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:10]                   │ proc [kibana]     statusCode: 403,
[00:14:10]                   │ proc [kibana]     headers: {
[00:14:10]                   │ proc [kibana]       'x-opaque-id': 'c79cea5a-d83a-44ee-bf64-fe3e24d8a762',
[00:14:10]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:10]                   │ proc [kibana]       'content-type': 'application/json;charset=utf-8',
[00:14:10]                   │ proc [kibana]       'content-length': '501'
[00:14:10]                   │ proc [kibana]     },
[00:14:10]                   │ proc [kibana]     meta: {
[00:14:10]                   │ proc [kibana]       context: null,
[00:14:10]                   │ proc [kibana]       request: [Object],
[00:14:10]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:10]                   │ proc [kibana]       connection: [Object],
[00:14:10]                   │ proc [kibana]       attempts: 0,
[00:14:10]                   │ proc [kibana]       aborted: false
[00:14:10]                   │ proc [kibana]     }
[00:14:10]                   │ proc [kibana]   }
[00:14:10]                   │ proc [kibana] }
[00:14:10]                   │ proc [kibana]   log   [20:36:33.948] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:10]                   │ proc [kibana]  error  [20:36:33.830]  Error: Internal Server Error
[00:14:10]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:61:19)
[00:14:10]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:177:34)
[00:14:10]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:10]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:10]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:124:50)
[00:14:10]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:10]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:10]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:10]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:10]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:10]                   │ proc [kibana]  error  [20:36:33.829]  Error: Internal Server Error
[00:14:10]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:128:19)
[00:14:10]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:82:19)
[00:14:10]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:73:17)
[00:14:10]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:164:34)
[00:14:10]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:10]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:10]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:124:50)
[00:14:10]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:10]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:10]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:10]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:10]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:10]                   │ proc [kibana]   log   [20:36:33.965] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-02T20%3A21%3A33.804Z&end=2021-08-02T20%3A36%3A33.804Z&uiFilters=": responding with 403
[00:14:10]                   │ proc [kibana]   log   [20:36:33.977] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:10]                   │ERROR browser[SEVERE] http://localhost:61191/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:10]                   │ERROR browser[SEVERE] http://localhost:61191/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:10]                   │ERROR browser[SEVERE] http://localhost:61191/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:10]                   │ERROR browser[SEVERE] http://localhost:61191/api/apm/observability_overview/has_rum_data?start=2021-08-02T20%3A21%3A33.804Z&end=2021-08-02T20%3A36%3A33.804Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:10]                   │ERROR browser[SEVERE] http://localhost:61191/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:10]                   └- ✓ pass  (2.1s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges landing page shows "Create new case" button"
[00:14:10]                 └-> doesn't show read-only badge
[00:14:10]                   └-> "before each" hook: global before each for "doesn't show read-only badge"
[00:14:10]                   │ debg navigateToActualUrl http://localhost:61191/app/observability/cases
[00:14:10]                   │ERROR browser[SEVERE] http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:10]                   │          at type_registry_TypeRegistry.get (http://localhost:61191/44945/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:10]                   │          at ExternalServiceColumn (http://localhost:61191/44945/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:10]                   │          at gs (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:10]                   │          at Pa (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:10]                   │          at Il (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:10]                   │          at Nl (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:10]                   │          at Cl (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:10]                   │          at http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:10]                   │          at t.unstable_runWithPriority (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:10]                   │          at Kr (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:10]                   │ debg browser[INFO] http://localhost:61191/app/observability/cases?_t=1627936594108 281 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:14:10]                   │
[00:14:10]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:10]                   │ debg currentUrl = http://localhost:61191/app/observability/cases
[00:14:10]                   │          appUrl = http://localhost:61191/app/observability/cases
[00:14:10]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:10]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:12]                   │ debg TestSubjects.missingOrFail(case-callout-e41900b01c9ef0fa81dd6ff326083fb3)
[00:14:12]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="case-callout-e41900b01c9ef0fa81dd6ff326083fb3"]') with timeout=2500
[00:14:12]                   │ proc [kibana]   log   [20:36:36.075] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-02T20%3A21%3A35.935Z&end=2021-08-02T20%3A36%3A35.936Z&uiFilters=": responding with 403
[00:14:12]                   │ proc [kibana]   log   [20:36:36.112] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:12]                   │ proc [kibana]   log   [20:36:36.146] [error][http] ResponseError: security_exception: [security_exception] Reason: action [indices:data/read/search] is unauthorized for user [cases_observability_all_user] with roles [cases_observability_all_role], this action is granted by the index privileges [read,all]
[00:14:12]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-19/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:12]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-19/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:12]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:12]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:12]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:12]                   │ proc [kibana]   meta: {
[00:14:12]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:12]                   │ proc [kibana]     statusCode: 403,
[00:14:12]                   │ proc [kibana]     headers: {
[00:14:12]                   │ proc [kibana]       'x-opaque-id': '16ffa224-5b2a-44f9-8240-7cfca00d888a',
[00:14:12]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:12]                   │ proc [kibana]       'content-type': 'application/json;charset=utf-8',
[00:14:12]                   │ proc [kibana]       'content-length': '501'
[00:14:12]                   │ proc [kibana]     },
[00:14:12]                   │ proc [kibana]     meta: {
[00:14:12]                   │ proc [kibana]       context: null,
[00:14:12]                   │ proc [kibana]       request: [Object],
[00:14:12]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:12]                   │ proc [kibana]       connection: [Object],
[00:14:12]                   │ proc [kibana]       attempts: 0,
[00:14:12]                   │ proc [kibana]       aborted: false
[00:14:12]                   │ proc [kibana]     }
[00:14:12]                   │ proc [kibana]   }
[00:14:12]                   │ proc [kibana] }
[00:14:12]                   │ proc [kibana]   log   [20:36:36.158] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:12]                   │ proc [kibana]  error  [20:36:35.987]  Error: Internal Server Error
[00:14:12]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:128:19)
[00:14:12]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:82:19)
[00:14:12]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:73:17)
[00:14:12]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:164:34)
[00:14:12]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:12]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:12]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:124:50)
[00:14:12]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:12]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:12]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:12]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:12]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:12]                   │ proc [kibana]  error  [20:36:35.993]  Error: Internal Server Error
[00:14:12]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:61:19)
[00:14:12]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:177:34)
[00:14:12]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:12]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:12]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:124:50)
[00:14:12]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:12]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:12]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:12]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:12]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61191/api/apm/observability_overview/has_rum_data?start=2021-08-02T20%3A21%3A35.935Z&end=2021-08-02T20%3A36%3A35.936Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61191/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61191/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61191/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61191/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:12]                   │          at type_registry_TypeRegistry.get (http://localhost:61191/44945/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:12]                   │          at ExternalServiceColumn (http://localhost:61191/44945/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:12]                   │          at gs (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:12]                   │          at Pa (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:12]                   │          at Il (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:12]                   │          at Nl (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:12]                   │          at Cl (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:12]                   │          at http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:12]                   │          at t.unstable_runWithPriority (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:12]                   │          at Kr (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:12]                   └- ✓ pass  (2.4s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges doesn't show read-only badge"
[00:14:12]                 └-> allows a case to be created
[00:14:12]                   └-> "before each" hook: global before each for "allows a case to be created"
[00:14:12]                   │ debg navigateToActualUrl http://localhost:61191/app/observability/cases
[00:14:13]                   │ debg browser[INFO] http://localhost:61191/app/observability/cases?_t=1627936596504 281 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:14:13]                   │
[00:14:13]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:13]                   │ debg currentUrl = http://localhost:61191/app/observability/cases
[00:14:13]                   │          appUrl = http://localhost:61191/app/observability/cases
[00:14:13]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:13]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:14]                   │ debg TestSubjects.click(createNewCaseBtn)
[00:14:14]                   │ debg Find.clickByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:14]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:14]                   │ proc [kibana]   log   [20:36:38.513] [error][http] ResponseError: security_exception: [security_exception] Reason: action [indices:data/read/search] is unauthorized for user [cases_observability_all_user] with roles [cases_observability_all_role], this action is granted by the index privileges [read,all]
[00:14:14]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-19/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:14]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-19/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:14]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:14]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:14]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:14]                   │ proc [kibana]   meta: {
[00:14:14]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:14]                   │ proc [kibana]     statusCode: 403,
[00:14:14]                   │ proc [kibana]     headers: {
[00:14:14]                   │ proc [kibana]       'x-opaque-id': '39953afe-58b6-4d82-969d-2bccf58d66bd',
[00:14:14]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:14]                   │ proc [kibana]       'content-type': 'application/json;charset=utf-8',
[00:14:14]                   │ proc [kibana]       'content-length': '501'
[00:14:14]                   │ proc [kibana]     },
[00:14:14]                   │ proc [kibana]     meta: {
[00:14:14]                   │ proc [kibana]       context: null,
[00:14:14]                   │ proc [kibana]       request: [Object],
[00:14:14]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:14]                   │ proc [kibana]       connection: [Object],
[00:14:14]                   │ proc [kibana]       attempts: 0,
[00:14:14]                   │ proc [kibana]       aborted: false
[00:14:14]                   │ proc [kibana]     }
[00:14:14]                   │ proc [kibana]   }
[00:14:14]                   │ proc [kibana] }
[00:14:14]                   │ proc [kibana]   log   [20:36:38.529] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:14]                   │ proc [kibana]   log   [20:36:38.531] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-02T20%3A21%3A38.331Z&end=2021-08-02T20%3A36%3A38.331Z&uiFilters=": responding with 403
[00:14:14]                   │ proc [kibana]  error  [20:36:38.406]  Error: Internal Server Error
[00:14:14]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:128:19)
[00:14:14]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:82:19)
[00:14:14]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:73:17)
[00:14:14]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:164:34)
[00:14:14]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:14]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:14]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:124:50)
[00:14:14]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:14]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:14]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:14]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:14]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:14]                   │ proc [kibana]  error  [20:36:38.407]  Error: Internal Server Error
[00:14:14]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/response_adapter.js:61:19)
[00:14:14]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:177:34)
[00:14:14]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:14]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:14]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-19/src/core/server/http/router/router.js:124:50)
[00:14:14]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:14]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:14]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:14]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:14]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-19/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:14]                   │ERROR browser[SEVERE] http://localhost:61191/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:14]                   │ERROR browser[SEVERE] http://localhost:61191/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:14]                   │ERROR browser[SEVERE] http://localhost:61191/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:14]                   │ERROR browser[SEVERE] http://localhost:61191/api/apm/observability_overview/has_rum_data?start=2021-08-02T20%3A21%3A38.331Z&end=2021-08-02T20%3A36%3A38.331Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:15]                   │ proc [kibana]   log   [20:36:38.626] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:15]                   │ debg TestSubjects.exists(case-creation-form-steps)
[00:14:15]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="case-creation-form-steps"]') with timeout=120000
[00:14:15]                   │ERROR browser[SEVERE] http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:15]                   │          at type_registry_TypeRegistry.get (http://localhost:61191/44945/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:15]                   │          at ExternalServiceColumn (http://localhost:61191/44945/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:15]                   │          at gs (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:15]                   │          at Pa (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:15]                   │          at Il (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:15]                   │          at Nl (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:15]                   │          at Cl (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:15]                   │          at http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:15]                   │          at t.unstable_runWithPriority (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:15]                   │          at Kr (http://localhost:61191/44945/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:15]                   │ERROR browser[SEVERE] http://localhost:61191/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:17]                   │ debg --- retry.tryForTime error: [data-test-subj="case-creation-form-steps"] is not displayed
[00:14:20]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:23]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:26]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:29]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:32]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:35]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:38]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:41]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:44]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:46]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/rxxeILYZRKGFeGgH0AaFaQ] update_mapping [_doc]
[00:14:47]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:50]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:53]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:56]                   │ debg --- retry.tryForTime failed again with the same message...
[00:14:59]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:03]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:06]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:09]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:12]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:15]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:18]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:21]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:24]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:27]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:30]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:33]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:36]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:39]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:42]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:45]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:48]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:51]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:54]                   │ debg --- retry.tryForTime failed again with the same message...
[00:15:57]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:00]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:03]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:06]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:09]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:12]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:15]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:16]                   │ info Taking screenshot "/dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/screenshots/failure/ObservabilityApp feature controls observability security feature controls observability cases all privileges allows a case to be created.png"
[00:16:16]                   │ info Current URL is: http://localhost:61191/app/observability/cases
[00:16:16]                   │ info Saving page source to: /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/failure_debug/html/ObservabilityApp feature controls observability security feature controls observability cases all privileges allows a case to be created.html
[00:16:16]                   └- ✖ fail: ObservabilityApp feature controls observability security feature controls observability cases all privileges allows a case to be created
[00:16:16]                   │      Error: expected testSubject(case-creation-form-steps) to exist
[00:16:16]                   │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/19/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:16:16]                   │       at Object.expectCreateCase (test/functional/page_objects/observability_page.ts:36:7)
[00:16:16]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:87:9)
[00:16:16]                   │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:16:16]                   │ 
[00:16:16]                   │ 

Stack Trace

Error: expected testSubject(case-creation-form-steps) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/19/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at Object.expectCreateCase (test/functional/page_objects/observability_page.ts:36:7)
    at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:87:9)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

✅ unchanged

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

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@cjcenizal cjcenizal merged commit acb9002 into elastic:master Aug 3, 2021
@cjcenizal cjcenizal deleted the chore/index-management-type-error-annotations branch August 3, 2021 16:17
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request Aug 3, 2021
* Improve Index Management ts-expect-error annotations.
* Add steps for testing legacy index template mappings types to Index Management README.
* Rename component template API route handler files to follow pattern used elsewhere.
cjcenizal added a commit that referenced this pull request Aug 3, 2021
* Improve Index Management ts-expect-error annotations.
* Add steps for testing legacy index template mappings types to Index Management README.
* Rename component template API route handler files to follow pattern used elsewhere.
streamich pushed a commit to vadimkibana/kibana that referenced this pull request Aug 8, 2021
* Improve Index Management ts-expect-error annotations.
* Add steps for testing legacy index template mappings types to Index Management README.
* Rename component template API route handler files to follow pattern used elsewhere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants