Skip to content

[7.x] [Transform] Fix default naming and sorting fields suggestion for top_metrics agg (#103690)#103862

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-103690
Jun 30, 2021
Merged

[7.x] [Transform] Fix default naming and sorting fields suggestion for top_metrics agg (#103690)#103862
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-103690

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

…_metrics` agg (elastic#103690)

* [ML] remove advanced settings

* [ML] fix getUpdatedItem for switching to single field agg

* [ML] incremental naming for top aggs

* [ML] set default sorting field based on date type

* [ML] set desc order by default

* [ML] fix TS

* [ML] change sorting direction init
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💛 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.Observability specs 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:11:33]         └-: Observability specs
[00:11:33]           └-> "before all" hook in "Observability specs"
[00:11:33]           └-: feature controls
[00:11:33]             └-> "before all" hook in "feature controls"
[00:11:33]             └-: observability security feature controls
[00:11:33]               └-> "before all" hook in "observability security feature controls"
[00:11:33]               └-> "before all" hook in "observability security feature controls"
[00:11:33]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "mappings.json"
[00:11:33]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "data.json.gz"
[00:11:33]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/uVxyWoKcT_-RG6QkqH9cGw] deleting index
[00:11:33]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_7.14.0_001/IaTjOkqTTSSbxocCowFcyQ] deleting index
[00:11:33]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.14.0_001/0zclMCxkRY2V2SgYzcdqVg] deleting index
[00:11:33]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_7.14.0_001"
[00:11:33]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_task_manager_7.14.0_001"
[00:11:33]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_1"
[00:11:33]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:11:33]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:33]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:11:33]                 │ info [x-pack/test/functional/es_archives/cases/default] Created index ".kibana_1"
[00:11:33]                 │ 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:11:33]                 │ info [x-pack/test/functional/es_archives/cases/default] Indexed 9 docs into ".kibana_1"
[00:11:33]                 │ debg Migrating saved objects
[00:11:33]                 │ proc [kibana]   log   [11:34:33.786] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:33.788] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 5ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:33.790] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 2ms.
[00:11:33]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_7.14.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:11:33]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.14.0_001]
[00:11:33]                 │ proc [kibana]   log   [11:34:33.795] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 5ms.
[00:11:33]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/mjvLFQRoTK6_blPARX3S2A]]
[00:11:33]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_7.14.0_001][0]]]).
[00:11:33]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:11:33]                 │ proc [kibana]   log   [11:34:33.906] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 120ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:33.928] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 132ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:33.962] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 55ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:33.962] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 178ms
[00:11:33]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.14.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:11:33]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.14.0_reindex_temp]
[00:11:33]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.14.0_reindex_temp][0]]]).
[00:11:33]                 │ proc [kibana]   log   [11:34:34.019] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 92ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:34.022] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 3ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:34.027] [info][savedobjects-service] [.kibana] Starting to process 9 documents.
[00:11:33]                 │ proc [kibana]   log   [11:34:34.028] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 5ms.
[00:11:33]                 │ proc [kibana]   log   [11:34:34.030] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 3ms.
[00:11:33]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.14.0_reindex_temp/_q0WfjIxR2iXgcHa1-YnJw] update_mapping [_doc]
[00:11:33]                 │ proc [kibana]   log   [11:34:34.069] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 39ms.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.075] [info][savedobjects-service] [.kibana] Processed 9 documents out of 9.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.075] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.077] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 2ms.
[00:11:34]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_7.14.0_reindex_temp/_q0WfjIxR2iXgcHa1-YnJw]]
[00:11:34]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_7.14.0_reindex_temp]
[00:11:34]                 │ proc [kibana]   log   [11:34:34.127] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 50ms.
[00:11:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_7.14.0_reindex_temp] metadata
[00:11:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.14.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:11:34]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.14.0_001]
[00:11:34]                 │ proc [kibana]   log   [11:34:34.166] [warning][environment] Detected an unhandled Promise rejection.
[00:11:34]                 │ proc [kibana] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [.kibana_7.14.0] and [require_alias] request flag is [true] and [.kibana_7.14.0] is not an alias","index_uuid":"_na_","index":".kibana_7.14.0"}],"type":"index_not_found_exception","reason":"no such index [.kibana_7.14.0] and [require_alias] request flag is [true] and [.kibana_7.14.0] is not an alias","index_uuid":"_na_","index":".kibana_7.14.0"},"status":404}
[00:11:34]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.14.0_001/IaTuB2skQu6r1rYxRho6hQ] create_mapping [_doc]
[00:11:34]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.14.0_001][0]]]).
[00:11:34]                 │ proc [kibana]   log   [11:34:34.245] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 118ms.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.248] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 3ms.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.250] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.254] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 4ms.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.256] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 2ms.
[00:11:34]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.14.0_001/IaTuB2skQu6r1rYxRho6hQ] update_mapping [_doc]
[00:11:34]                 │ proc [kibana]   log   [11:34:34.317] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 61ms.
[00:11:34]                 │ info [o.e.t.LoggingTaskListener] [node-01] 27861 finished with response BulkByScrollResponse[took=20.5ms,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:11:34]                 │ proc [kibana]   log   [11:34:34.422] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 105ms.
[00:11:34]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.14.0_reindex_temp/_q0WfjIxR2iXgcHa1-YnJw] deleting index
[00:11:34]                 │ proc [kibana]   log   [11:34:34.485] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 63ms.
[00:11:34]                 │ proc [kibana]   log   [11:34:34.485] [info][savedobjects-service] [.kibana] Migration completed after 702ms
[00:11:34]                 │ debg [x-pack/test/functional/es_archives/cases/default] Migrated Kibana index after loading Kibana data
[00:11:35]                 │ debg [x-pack/test/functional/es_archives/cases/default] Ensured that default space exists in .kibana
[00:11:35]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true,"visualization:visualize:legacyPieChartsLibrary":true}
[00:11:35]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.14.0_001/IaTuB2skQu6r1rYxRho6hQ] update_mapping [_doc]
[00:11:37]               └-: observability cases all privileges
[00:11:37]                 └-> "before all" hook for "shows observability/cases navlink"
[00:11:37]                 └-> "before all" hook for "shows observability/cases navlink"
[00:11:37]                   │ debg creating role cases_observability_all_role
[00:11:37]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [cases_observability_all_role]
[00:11:37]                   │ debg creating user cases_observability_all_user
[00:11:37]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [cases_observability_all_user]
[00:11:37]                   │ debg created user cases_observability_all_user
[00:11:37]                   │ debg SecurityPage.forceLogout
[00:11:37]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:11:37]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:37]                   │ debg Redirecting to /logout to force the logout
[00:11:38]                   │ debg Waiting on the login form to appear
[00:11:38]                   │ debg Waiting for Login Page to appear.
[00:11:38]                   │ debg Waiting up to 100000ms for login page...
[00:11:38]                   │ debg browser[INFO] http://localhost:61201/logout?_t=1625052877953 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:11:38]                   │
[00:11:38]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:38]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:40]                   │ERROR browser[SEVERE] http://localhost:61201/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:11:40]                   │ debg browser[INFO] http://localhost:61201/42248/bundles/core/core.entry.js 12:157416 "Detected an unhandled Promise rejection.
[00:11:40]                   │      Error: Unauthorized"
[00:11:40]                   │ERROR browser[SEVERE] http://localhost:61201/42248/bundles/core/core.entry.js 5:2514 
[00:11:40]                   │ debg browser[INFO] http://localhost:61201/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:11:40]                   │
[00:11:40]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:40]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:41]                   │ERROR browser[SEVERE] http://localhost:61201/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:11:41]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:41]                   │ debg TestSubjects.exists(loginForm)
[00:11:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:11:41]                   │ debg Waiting for Login Form to appear.
[00:11:41]                   │ debg Waiting up to 100000ms for login form...
[00:11:41]                   │ debg TestSubjects.exists(loginForm)
[00:11:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:11:41]                   │ debg TestSubjects.setValue(loginUsername, cases_observability_all_user)
[00:11:41]                   │ debg TestSubjects.click(loginUsername)
[00:11:41]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:41]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:41]                   │ debg TestSubjects.setValue(loginPassword, cases_observability_all_user-password)
[00:11:41]                   │ debg TestSubjects.click(loginPassword)
[00:11:41]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:41]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:42]                   │ debg TestSubjects.click(loginSubmit)
[00:11:42]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:42]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:42]                   │ debg Waiting for login result, expected: undefined.
[00:11:42]                   │ debg Waiting up to 20000ms for logout button visible...
[00:11:42]                   │ debg TestSubjects.exists(userMenuButton)
[00:11:42]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:11:42]                   │ proc [kibana]   log   [11:34:42.276] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:11:45]                   │ debg browser[INFO] http://localhost:61201/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:11:45]                   │
[00:11:45]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:45]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:11:45]                   │ proc [kibana]   log   [11:34:45.538] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:11:45]                   │ERROR browser[SEVERE] http://localhost:61201/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:46]                   │ debg TestSubjects.exists(userMenuButton)
[00:11:46]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:11:46]                   │ debg TestSubjects.exists(userMenu)
[00:11:46]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:11:48]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:11:49]                   │ debg TestSubjects.click(userMenuButton)
[00:11:49]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:11:49]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:11:49]                   │ debg TestSubjects.exists(userMenu)
[00:11:49]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:11:49]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:11:49]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:11:49]                 └-> shows observability/cases navlink
[00:11:49]                   └-> "before each" hook: global before each for "shows observability/cases navlink"
[00:11:49]                   │ debg isGlobalLoadingIndicatorVisible
[00:11:49]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:11:49]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:11:51]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:11:51]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:11:51]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:11:51]                   │ debg TestSubjects.exists(collapsibleNav)
[00:11:51]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:11:54]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:11:54]                   │ debg TestSubjects.click(toggleNavButton)
[00:11:54]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:11:54]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:11:54]                   │ debg TestSubjects.find(collapsibleNav)
[00:11:54]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:11:54]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:11:54]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:11:54]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:11:54]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:11:54]                   └- ✓ pass  (5.5s) "Observability specs feature controls observability security feature controls observability cases all privileges shows observability/cases navlink"
[00:11:54]                 └-> landing page shows "Create new case" button
[00:11:54]                   └-> "before each" hook: global before each for "landing page shows "Create new case" button"
[00:11:54]                   │ debg navigateToActualUrl http://localhost:61201/app/observability/cases
[00:11:55]                   │ debg browser[INFO] http://localhost:61201/app/observability/cases?_t=1625052895015 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:11:55]                   │
[00:11:55]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:55]                   │ debg currentUrl = http://localhost:61201/app/observability/cases
[00:11:55]                   │          appUrl = http://localhost:61201/app/observability/cases
[00:11:55]                   │ debg TestSubjects.find(kibanaChrome)
[00:11:55]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:56]                   │ debg TestSubjects.find(createNewCaseBtn)
[00:11:56]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=20000
[00:11:56]                   │ proc [kibana]   log   [11:34:56.642] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:11:56]                   │ proc [kibana]   log   [11:34:56.776] [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:11:56]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-20/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:11:56]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-20/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:11:56]                   │ proc [kibana]     at IncomingMessage.emit (events.js:388:22)
[00:11:56]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1336:12)
[00:11:56]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:11:56]                   │ proc [kibana]   meta: {
[00:11:56]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:11:56]                   │ proc [kibana]     statusCode: 403,
[00:11:56]                   │ proc [kibana]     headers: {
[00:11:56]                   │ proc [kibana]       'x-opaque-id': '81c89026-f000-4e0f-8d31-bc387299e662',
[00:11:56]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:11:56]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:11:56]                   │ proc [kibana]       'content-length': '501'
[00:11:56]                   │ proc [kibana]     },
[00:11:56]                   │ proc [kibana]     meta: {
[00:11:56]                   │ proc [kibana]       context: null,
[00:11:56]                   │ proc [kibana]       request: [Object],
[00:11:56]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:11:56]                   │ proc [kibana]       connection: [Object],
[00:11:56]                   │ proc [kibana]       attempts: 0,
[00:11:56]                   │ proc [kibana]       aborted: false
[00:11:56]                   │ proc [kibana]     }
[00:11:56]                   │ proc [kibana]   }
[00:11:56]                   │ proc [kibana] }
[00:11:56]                   │ proc [kibana]  error  [11:34:56.677]  Error: Internal Server Error
[00:11:56]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:128:19)
[00:11:56]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:82:19)
[00:11:56]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:73:17)
[00:11:56]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:164:34)
[00:11:56]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:56]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:56]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:124:50)
[00:11:56]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:56]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:56]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:56]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:56]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:56]                   │ proc [kibana]  error  [11:34:56.678]  Error: Internal Server Error
[00:11:56]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:61:19)
[00:11:56]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:177:34)
[00:11:56]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:56]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:56]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:124:50)
[00:11:56]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:56]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:56]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:56]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:56]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:56]                   │ proc [kibana]   log   [11:34:56.823] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-06-30T11%3A19%3A56.641Z&end=2021-06-30T11%3A34%3A56.641Z&uiFilters=": responding with 403
[00:11:56]                   │ proc [kibana]   log   [11:34:56.825] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:11:56]                   │ proc [kibana]   log   [11:34:56.877] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:11:56]                   │ERROR browser[SEVERE] http://localhost:61201/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:56]                   │ERROR browser[SEVERE] http://localhost:61201/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:56]                   │ERROR browser[SEVERE] http://localhost:61201/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:56]                   │ERROR browser[SEVERE] http://localhost:61201/api/apm/observability_overview/has_rum_data?start=2021-06-30T11%3A19%3A56.641Z&end=2021-06-30T11%3A34%3A56.641Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:56]                   │ERROR browser[SEVERE] http://localhost:61201/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:56]                   │ERROR browser[SEVERE] http://localhost:61201/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:56]                   └- ✓ pass  (2.0s) "Observability specs feature controls observability security feature controls observability cases all privileges landing page shows "Create new case" button"
[00:11:56]                 └-> doesn't show read-only badge
[00:11:56]                   └-> "before each" hook: global before each for "doesn't show read-only badge"
[00:11:56]                   │ debg navigateToActualUrl http://localhost:61201/app/observability/cases
[00:11:57]                   │ERROR browser[SEVERE] http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:77071 Error: Object type ".none" is not registered.
[00:11:57]                   │          at type_registry_TypeRegistry.get (http://localhost:61201/42248/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:53212)
[00:11:57]                   │          at ExternalServiceColumn (http://localhost:61201/42248/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11153)
[00:11:57]                   │          at us (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59332)
[00:11:57]                   │          at wa (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:104414)
[00:11:57]                   │          at ml (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:90018)
[00:11:57]                   │          at fl (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:89943)
[00:11:57]                   │          at ol (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:87291)
[00:11:57]                   │          at http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45733
[00:11:57]                   │          at t.unstable_runWithPriority (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:11:57]                   │          at $r (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45442)
[00:11:57]                   │ debg browser[INFO] http://localhost:61201/app/observability/cases?_t=1625052896968 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:11:57]                   │
[00:11:57]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:57]                   │ debg currentUrl = http://localhost:61201/app/observability/cases
[00:11:57]                   │          appUrl = http://localhost:61201/app/observability/cases
[00:11:57]                   │ debg TestSubjects.find(kibanaChrome)
[00:11:57]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:58]                   │ debg TestSubjects.missingOrFail(case-callout-e41900b01c9ef0fa81dd6ff326083fb3)
[00:11:58]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="case-callout-e41900b01c9ef0fa81dd6ff326083fb3"]') with timeout=2500
[00:11:58]                   │ proc [kibana]   log   [11:34:58.871] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:11:58]                   │ proc [kibana]   log   [11:34:59.041] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-06-30T11%3A19%3A58.835Z&end=2021-06-30T11%3A34%3A58.835Z&uiFilters=": responding with 403
[00:11:59]                   │ proc [kibana]   log   [11:34:59.116] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:11:59]                   │ proc [kibana]   log   [11:34:59.134] [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:11:59]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-20/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:11:59]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-20/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:11:59]                   │ proc [kibana]     at IncomingMessage.emit (events.js:388:22)
[00:11:59]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1336:12)
[00:11:59]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:11:59]                   │ proc [kibana]   meta: {
[00:11:59]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:11:59]                   │ proc [kibana]     statusCode: 403,
[00:11:59]                   │ proc [kibana]     headers: {
[00:11:59]                   │ proc [kibana]       'x-opaque-id': '5635959c-35e3-4d96-b0c8-3be00d83f085',
[00:11:59]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:11:59]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:11:59]                   │ proc [kibana]       'content-length': '501'
[00:11:59]                   │ proc [kibana]     },
[00:11:59]                   │ proc [kibana]     meta: {
[00:11:59]                   │ proc [kibana]       context: null,
[00:11:59]                   │ proc [kibana]       request: [Object],
[00:11:59]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:11:59]                   │ proc [kibana]       connection: [Object],
[00:11:59]                   │ proc [kibana]       attempts: 0,
[00:11:59]                   │ proc [kibana]       aborted: false
[00:11:59]                   │ proc [kibana]     }
[00:11:59]                   │ proc [kibana]   }
[00:11:59]                   │ proc [kibana] }
[00:11:59]                   │ proc [kibana]   log   [11:34:59.137] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:11:59]                   │ proc [kibana]  error  [11:34:58.922]  Error: Internal Server Error
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:128:19)
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:82:19)
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:73:17)
[00:11:59]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:164:34)
[00:11:59]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:59]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:59]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:124:50)
[00:11:59]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:59]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:59]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:59]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:59]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:59]                   │ proc [kibana]  error  [11:34:58.924]  Error: Internal Server Error
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:61:19)
[00:11:59]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:177:34)
[00:11:59]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:59]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:59]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:124:50)
[00:11:59]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:59]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:59]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:59]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:59]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:61201/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:61201/api/apm/observability_overview/has_rum_data?start=2021-06-30T11%3A19%3A58.835Z&end=2021-06-30T11%3A34%3A58.835Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:61201/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:61201/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:61201/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:61201/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:77071 Error: Object type ".none" is not registered.
[00:11:59]                   │          at type_registry_TypeRegistry.get (http://localhost:61201/42248/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:53212)
[00:11:59]                   │          at ExternalServiceColumn (http://localhost:61201/42248/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11153)
[00:11:59]                   │          at us (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59332)
[00:11:59]                   │          at wa (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:104414)
[00:11:59]                   │          at ml (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:90018)
[00:11:59]                   │          at fl (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:89943)
[00:11:59]                   │          at ol (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:87291)
[00:11:59]                   │          at http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45733
[00:11:59]                   │          at t.unstable_runWithPriority (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:11:59]                   │          at $r (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45442)
[00:11:59]                   └- ✓ pass  (2.4s) "Observability specs feature controls observability security feature controls observability cases all privileges doesn't show read-only badge"
[00:11:59]                 └-> allows a case to be created
[00:11:59]                   └-> "before each" hook: global before each for "allows a case to be created"
[00:11:59]                   │ debg navigateToActualUrl http://localhost:61201/app/observability/cases
[00:11:59]                   │ debg browser[INFO] http://localhost:61201/app/observability/cases?_t=1625052899390 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:11:59]                   │
[00:11:59]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:59]                   │ debg currentUrl = http://localhost:61201/app/observability/cases
[00:11:59]                   │          appUrl = http://localhost:61201/app/observability/cases
[00:11:59]                   │ debg TestSubjects.find(kibanaChrome)
[00:11:59]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:00]                   │ debg TestSubjects.click(createNewCaseBtn)
[00:12:00]                   │ debg Find.clickByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:00]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:00]                   │ proc [kibana]   log   [11:35:01.060] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:12:01]                   │ proc [kibana]   log   [11:35:01.170] [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:12:01]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-20/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:12:01]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-20/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:12:01]                   │ proc [kibana]     at IncomingMessage.emit (events.js:388:22)
[00:12:01]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1336:12)
[00:12:01]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:12:01]                   │ proc [kibana]   meta: {
[00:12:01]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:12:01]                   │ proc [kibana]     statusCode: 403,
[00:12:01]                   │ proc [kibana]     headers: {
[00:12:01]                   │ proc [kibana]       'x-opaque-id': '2b0ea3b1-9e64-4721-b678-0892188658c8',
[00:12:01]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:12:01]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:12:01]                   │ proc [kibana]       'content-length': '501'
[00:12:01]                   │ proc [kibana]     },
[00:12:01]                   │ proc [kibana]     meta: {
[00:12:01]                   │ proc [kibana]       context: null,
[00:12:01]                   │ proc [kibana]       request: [Object],
[00:12:01]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:12:01]                   │ proc [kibana]       connection: [Object],
[00:12:01]                   │ proc [kibana]       attempts: 0,
[00:12:01]                   │ proc [kibana]       aborted: false
[00:12:01]                   │ proc [kibana]     }
[00:12:01]                   │ proc [kibana]   }
[00:12:01]                   │ proc [kibana] }
[00:12:01]                   │ proc [kibana]  error  [11:35:01.109]  Error: Internal Server Error
[00:12:01]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:61:19)
[00:12:01]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:177:34)
[00:12:01]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:12:01]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:12:01]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:124:50)
[00:12:01]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:12:01]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:12:01]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:12:01]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:12:01]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:12:01]                   │ proc [kibana]  error  [11:35:01.109]  Error: Internal Server Error
[00:12:01]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:128:19)
[00:12:01]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:82:19)
[00:12:01]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/response_adapter.js:73:17)
[00:12:01]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:164:34)
[00:12:01]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:12:01]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:12:01]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-20/src/core/server/http/router/router.js:124:50)
[00:12:01]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:12:01]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:12:01]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:12:01]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:12:01]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-20/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:12:01]                   │ proc [kibana]   log   [11:35:01.209] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-06-30T11%3A20%3A01.084Z&end=2021-06-30T11%3A35%3A01.084Z&uiFilters=": responding with 403
[00:12:01]                   │ proc [kibana]   log   [11:35:01.218] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:12:01]                   │ERROR browser[SEVERE] http://localhost:61201/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:12:01]                   │ERROR browser[SEVERE] http://localhost:61201/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:12:01]                   │ERROR browser[SEVERE] http://localhost:61201/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:12:01]                   │ERROR browser[SEVERE] http://localhost:61201/api/apm/observability_overview/has_rum_data?start=2021-06-30T11%3A20%3A01.084Z&end=2021-06-30T11%3A35%3A01.084Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:12:01]                   │ERROR browser[SEVERE] http://localhost:61201/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:12:01]                   │ proc [kibana]   log   [11:35:01.359] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:12:01]                   │ warn WebElementWrapper.click: stale element reference: element is not attached to the page document
[00:12:01]                   │        (Session info: headless chrome=91.0.4472.114)
[00:12:01]                   │ debg finding element 'By(css selector, [data-test-subj="createNewCaseBtn"])' again, 2 attempts left
[00:12:01]                   │ERROR browser[SEVERE] http://localhost:61201/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:12:01]                   │ERROR browser[SEVERE] http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:77071 Error: Object type ".none" is not registered.
[00:12:01]                   │          at type_registry_TypeRegistry.get (http://localhost:61201/42248/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:53212)
[00:12:01]                   │          at ExternalServiceColumn (http://localhost:61201/42248/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11153)
[00:12:01]                   │          at us (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59332)
[00:12:01]                   │          at wa (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:104414)
[00:12:01]                   │          at ml (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:90018)
[00:12:01]                   │          at fl (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:89943)
[00:12:01]                   │          at ol (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:87291)
[00:12:01]                   │          at http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45733
[00:12:01]                   │          at t.unstable_runWithPriority (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:12:01]                   │          at $r (http://localhost:61201/42248/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45442)
[00:12:11]                   │ debg --- retry.try error: no such element: Unable to locate element: {"method":"css selector","selector":"[data-test-subj="createNewCaseBtn"]"}
[00:12:11]                   │        (Session info: headless chrome=91.0.4472.114)
[00:12:12]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:22]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:22]                   │      Wait timed out after 10055ms
[00:12:22]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:32]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:32]                   │      Wait timed out after 10027ms
[00:12:33]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:43]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:43]                   │      Wait timed out after 10056ms
[00:12:43]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:53]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:53]                   │      Wait timed out after 10040ms
[00:12:54]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:04]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:04]                   │      Wait timed out after 10034ms
[00:13:04]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:14]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:14]                   │      Wait timed out after 10046ms
[00:13:15]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:25]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:25]                   │      Wait timed out after 10041ms
[00:13:25]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:35]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:35]                   │      Wait timed out after 10025ms
[00:13:36]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:46]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:46]                   │      Wait timed out after 10046ms
[00:13:47]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:57]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:57]                   │      Wait timed out after 10021ms
[00:13:57]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:07]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:14:07]                   │      Wait timed out after 10030ms
[00:14:08]                   │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/screenshots/failure/Observability specs feature controls observability security feature controls observability cases all privileges allows a case to be created.png"
[00:14:08]                   │ info Current URL is: http://localhost:61201/app/observability/cases
[00:14:08]                   │ info Saving page source to: /dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/failure_debug/html/Observability specs feature controls observability security feature controls observability cases all privileges allows a case to be created.html
[00:14:08]                   └- ✖ fail: Observability specs feature controls observability security feature controls observability cases all privileges allows a case to be created
[00:14:08]                   │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:14:08]                   │ Wait timed out after 10030ms
[00:14:08]                   │     at /dev/shm/workspace/parallel/20/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:14:08]                   │     at runMicrotasks (<anonymous>)
[00:14:08]                   │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:08]                   │       at onFailure (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:14:08]                   │       at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:14:08]                   │       at RetryService.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:31:12)
[00:14:08]                   │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/find.ts:360:5)
[00:14:08]                   │       at TestSubjects.click (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:14:08]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:85:9)
[00:14:08]                   │       at Object.apply (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:14:08]                   │ 
[00:14:08]                   │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
Wait timed out after 10030ms
    at /dev/shm/workspace/parallel/20/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/find.ts:360:5)
    at TestSubjects.click (/dev/shm/workspace/parallel/20/kibana/test/functional/services/common/test_subjects.ts:105:5)
    at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:85:9)
    at Object.apply (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
transform 928.4KB 927.6KB -842.0B

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

cc @darnautov

@kibanamachine kibanamachine merged commit a1a6799 into elastic:7.x Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants