Skip to content

[7.x] [RAC] [TGrid] Implements sorting in the TGrid (#107495)#107686

Merged
andrew-goldstein merged 1 commit intoelastic:7.xfrom
andrew-goldstein:backport/7.x/pr-107495
Aug 4, 2021
Merged

[7.x] [RAC] [TGrid] Implements sorting in the TGrid (#107495)#107686
andrew-goldstein merged 1 commit intoelastic:7.xfrom
andrew-goldstein:backport/7.x/pr-107495

Conversation

@andrew-goldstein
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

## Summary

This PR implements sorting in the `TGrid`, per the animated gifs below:

![observability-sorting](https://user-images.githubusercontent.com/4459398/127960825-5be21a92-81c1-487d-9c62-1335495f4561.gif)

_Above: Sorting in Observability, via `EuiDataGrid`'s sort popover_

![security-solution-sorting](https://user-images.githubusercontent.com/4459398/128050301-0ea9ccbc-7896-46ef-96da-17b5b6d2e34b.gif)

_Above: Sorting and hiding columns in the Security Solution via `EuiDataGrid`'s column header actions_

## Details

* Sorting is disabled for non-aggregatble fields
* This PR resolves the `Sort [Object Object]` TODO described [here](elastic#106199 (comment))
* ~This PR restores the column header tooltips where the TGrid is used in the Security Solution~

## Desk testing

To desk test this PR, you must enable feature flags in the Observability and Security Solution:

- To desk test the `Observability > Alerts` page, add the following settings to `config/kibana.dev.yml`:

```
xpack.observability.unsafe.cases.enabled: true
xpack.observability.unsafe.alertingExperience.enabled: true
xpack.ruleRegistry.write.enabled: true
```

- To desk test the TGrid in the following Security Solution, edit `x-pack/plugins/security_solution/common/experimental_features.ts` and in the `allowedExperimentalValues` section set:

```typescript
tGridEnabled: true,
```

cc @mdefazio
@andrew-goldstein andrew-goldstein added the backport This PR is a backport of another PR label Aug 4, 2021
@andrew-goldstein andrew-goldstein enabled auto-merge (squash) August 4, 2021 18:48
@kibanamachine
Copy link
Copy Markdown
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:14:04]         └-: ObservabilityApp
[00:14:04]           └-> "before all" hook in "ObservabilityApp"
[00:14:04]           └-: feature controls
[00:14:04]             └-> "before all" hook in "feature controls"
[00:14:04]             └-: observability security feature controls
[00:14:04]               └-> "before all" hook in "observability security feature controls"
[00:14:04]               └-> "before all" hook in "observability security feature controls"
[00:14:04]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "mappings.json"
[00:14:04]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "data.json.gz"
[00:14:04]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/1J6ANf2dRtOkgAmZGzHxSg] deleting index
[00:14:04]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.15.0_001/_idpxWU8SoipDLA6Qjt_NQ] deleting index
[00:14:04]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_7.15.0_001/VSRCnlorSYySlGcNbq9TCw] deleting index
[00:14:05]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_7.15.0_001"
[00:14:05]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_task_manager_7.15.0_001"
[00:14:05]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_1"
[00:14:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_1]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:14:05]                 │ info [x-pack/test/functional/es_archives/cases/default] Created index ".kibana_1"
[00:14:05]                 │ 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:14:05]                 │ info [x-pack/test/functional/es_archives/cases/default] Indexed 9 docs into ".kibana_1"
[00:14:05]                 │ debg Migrating saved objects
[00:14:05]                 │ proc [kibana]   log   [19:42:48.750] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:48.752] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 6ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:48.754] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 2ms.
[00:14:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_7.15.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.15.0_001]
[00:14:05]                 │ proc [kibana]   log   [19:42:48.759] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 5ms.
[00:14:05]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/roSIfDifTDmM907aOzIZ3A]]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_7.15.0_001][0]]]).
[00:14:05]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:14:05]                 │ proc [kibana]   log   [19:42:48.884] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 134ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:48.912] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 153ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:48.915] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 3ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:48.944] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 60ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:48.945] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 197ms
[00:14:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.15.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.15.0_reindex_temp]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.15.0_reindex_temp][0]]]).
[00:14:05]                 │ proc [kibana]   log   [19:42:49.029] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 114ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.033] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.039] [info][savedobjects-service] [.kibana] Starting to process 9 documents.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.040] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 6ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.044] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 5ms.
[00:14:05]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_reindex_temp/6_QpBc-XQseT-_Yvqgk36A] update_mapping [_doc]
[00:14:05]                 │ proc [kibana]   log   [19:42:49.088] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 44ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.094] [info][savedobjects-service] [.kibana] Processed 9 documents out of 9.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.095] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.098] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:14:05]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_7.15.0_reindex_temp/6_QpBc-XQseT-_Yvqgk36A]]
[00:14:05]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_7.15.0_reindex_temp]
[00:14:05]                 │ proc [kibana]   log   [19:42:49.161] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 63ms.
[00:14:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_7.15.0_reindex_temp] metadata
[00:14:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.15.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.15.0_001]
[00:14:05]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/BYsf5S3CTZKydwwBSL7X0A] create_mapping [_doc]
[00:14:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.15.0_001][0]]]).
[00:14:05]                 │ proc [kibana]   log   [19:42:49.314] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 153ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.317] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 3ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.320] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.326] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 6ms.
[00:14:05]                 │ proc [kibana]   log   [19:42:49.329] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:14:05]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/BYsf5S3CTZKydwwBSL7X0A] update_mapping [_doc]
[00:14:05]                 │ proc [kibana]   log   [19:42:49.400] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 71ms.
[00:14:05]                 │ info [o.e.t.LoggingTaskListener] [node-01] 32377 finished with response BulkByScrollResponse[took=21.7ms,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:14:05]                 │ proc [kibana]   log   [19:42:49.505] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 105ms.
[00:14:05]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.15.0_reindex_temp/6_QpBc-XQseT-_Yvqgk36A] deleting index
[00:14:06]                 │ proc [kibana]   log   [19:42:49.571] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 66ms.
[00:14:06]                 │ proc [kibana]   log   [19:42:49.572] [info][savedobjects-service] [.kibana] Migration completed after 826ms
[00:14:06]                 │ debg [x-pack/test/functional/es_archives/cases/default] Migrated Kibana index after loading Kibana data
[00:14:06]                 │ debg [x-pack/test/functional/es_archives/cases/default] Ensured that default space exists in .kibana
[00:14:06]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true,"visualization:visualize:legacyPieChartsLibrary":true}
[00:14:06]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/BYsf5S3CTZKydwwBSL7X0A] update_mapping [_doc]
[00:14:08]               └-: observability cases all privileges
[00:14:08]                 └-> "before all" hook for "shows observability/cases navlink"
[00:14:08]                 └-> "before all" hook for "shows observability/cases navlink"
[00:14:08]                   │ debg creating role cases_observability_all_role
[00:14:08]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [cases_observability_all_role]
[00:14:08]                   │ debg creating user cases_observability_all_user
[00:14:08]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [cases_observability_all_user]
[00:14:08]                   │ debg created user cases_observability_all_user
[00:14:08]                   │ debg SecurityPage.forceLogout
[00:14:08]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:14:08]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:14:09]                   │ debg Redirecting to /logout to force the logout
[00:14:09]                   │ debg Waiting on the login form to appear
[00:14:09]                   │ debg Waiting for Login Page to appear.
[00:14:09]                   │ debg Waiting up to 100000ms for login page...
[00:14:09]                   │ debg browser[INFO] http://localhost:61211/logout?_t=1628106173024 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:09]                   │
[00:14:09]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:09]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61211/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:14:12]                   │ debg browser[INFO] http://localhost:61211/43194/bundles/core/core.entry.js 12:156264 "Detected an unhandled Promise rejection.
[00:14:12]                   │      Error: Unauthorized"
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61211/43194/bundles/core/core.entry.js 5:2474 
[00:14:12]                   │ debg browser[INFO] http://localhost:61211/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:14:12]                   │
[00:14:12]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:12]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61211/api/canvas/fns - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:14:12]                   │ debg browser[INFO] http://localhost:61211/43194/bundles/core/core.entry.js 12:156264 "Detected an unhandled Promise rejection.
[00:14:12]                   │      Error: Unauthorized"
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61211/43194/bundles/core/core.entry.js 5:2474 
[00:14:12]                   │ERROR browser[SEVERE] http://localhost:61211/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:14:13]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:14:13]                   │ debg TestSubjects.exists(loginForm)
[00:14:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:14:13]                   │ debg Waiting for Login Form to appear.
[00:14:13]                   │ debg Waiting up to 100000ms for login form...
[00:14:13]                   │ debg TestSubjects.exists(loginForm)
[00:14:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:14:13]                   │ debg TestSubjects.setValue(loginUsername, cases_observability_all_user)
[00:14:13]                   │ debg TestSubjects.click(loginUsername)
[00:14:13]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:13]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:13]                   │ debg TestSubjects.setValue(loginPassword, cases_observability_all_user-password)
[00:14:13]                   │ debg TestSubjects.click(loginPassword)
[00:14:13]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:13]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:13]                   │ debg TestSubjects.click(loginSubmit)
[00:14:13]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:13]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:14]                   │ debg Waiting for login result, expected: undefined.
[00:14:14]                   │ debg Waiting up to 20000ms for logout button visible...
[00:14:14]                   │ debg TestSubjects.exists(userMenuButton)
[00:14:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:14:14]                   │ proc [kibana]   log   [19:42:57.572] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:14:16]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/BYsf5S3CTZKydwwBSL7X0A] update_mapping [_doc]
[00:14:16]                   │ debg browser[INFO] http://localhost:61211/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:14:16]                   │
[00:14:16]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:16]                   │ debg TestSubjects.exists(userMenu)
[00:14:16]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:14:18]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:14:19]                   │ debg TestSubjects.click(userMenuButton)
[00:14:19]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:19]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:19]                   │ debg TestSubjects.exists(userMenu)
[00:14:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:14:19]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:14:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:14:19]                 └-> shows observability/cases navlink
[00:14:19]                   └-> "before each" hook: global before each for "shows observability/cases navlink"
[00:14:19]                   │ debg isGlobalLoadingIndicatorVisible
[00:14:19]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:14:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:14:21]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:14:21]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:14:21]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:14:21]                   │ debg TestSubjects.exists(collapsibleNav)
[00:14:21]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:14:24]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:14:24]                   │ debg TestSubjects.click(toggleNavButton)
[00:14:24]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:14:24]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:14:25]                   │ debg TestSubjects.find(collapsibleNav)
[00:14:25]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:14:25]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:14:25]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:25]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:25]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:25]                   └- ✓ pass  (5.5s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges shows observability/cases navlink"
[00:14:25]                 └-> landing page shows "Create new case" button
[00:14:25]                   └-> "before each" hook: global before each for "landing page shows "Create new case" button"
[00:14:25]                   │ debg navigateToActualUrl http://localhost:61211/app/observability/cases
[00:14:25]                   │ debg browser[INFO] http://localhost:61211/app/observability/cases?_t=1628106188787 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:25]                   │
[00:14:25]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:25]                   │ debg currentUrl = http://localhost:61211/app/observability/cases
[00:14:25]                   │          appUrl = http://localhost:61211/app/observability/cases
[00:14:25]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:25]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:27]                   │ debg TestSubjects.find(createNewCaseBtn)
[00:14:27]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=20000
[00:14:27]                   │ proc [kibana]  error  [19:43:10.659]  Error: Internal Server Error
[00:14:27]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:128:19)
[00:14:27]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:82:19)
[00:14:27]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:73:17)
[00:14:27]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:164:34)
[00:14:27]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:27]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:27]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:14:27]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:27]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:27]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:27]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:27]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:27]                   │ proc [kibana]   log   [19:43:10.835] [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:27]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:27]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:27]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:27]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:27]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:27]                   │ proc [kibana]   meta: {
[00:14:27]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:27]                   │ proc [kibana]     statusCode: 403,
[00:14:27]                   │ proc [kibana]     headers: {
[00:14:27]                   │ proc [kibana]       'x-opaque-id': 'dc8d1197-64ac-4e52-9f58-090366f3249e',
[00:14:27]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:27]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:14:27]                   │ proc [kibana]       'content-length': '501'
[00:14:27]                   │ proc [kibana]     },
[00:14:27]                   │ proc [kibana]     meta: {
[00:14:27]                   │ proc [kibana]       context: null,
[00:14:27]                   │ proc [kibana]       request: [Object],
[00:14:27]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:27]                   │ proc [kibana]       connection: [Object],
[00:14:27]                   │ proc [kibana]       attempts: 0,
[00:14:27]                   │ proc [kibana]       aborted: false
[00:14:27]                   │ proc [kibana]     }
[00:14:27]                   │ proc [kibana]   }
[00:14:27]                   │ proc [kibana] }
[00:14:27]                   │ proc [kibana]   log   [19:43:10.849] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:27]                   │ proc [kibana]   log   [19:43:10.852] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-04T19%3A28%3A10.633Z&end=2021-08-04T19%3A43%3A10.634Z&uiFilters=": responding with 403
[00:14:27]                   │ proc [kibana]  error  [19:43:10.718]  Error: Internal Server Error
[00:14:27]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:14:27]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:177:34)
[00:14:27]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:27]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:27]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:14:27]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:27]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:27]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:27]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:27]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:27]                   │ERROR browser[SEVERE] http://localhost:61211/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:27]                   │ERROR browser[SEVERE] http://localhost:61211/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:27]                   │ERROR browser[SEVERE] http://localhost:61211/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:27]                   │ERROR browser[SEVERE] http://localhost:61211/api/apm/observability_overview/has_rum_data?start=2021-08-04T19%3A28%3A10.633Z&end=2021-08-04T19%3A43%3A10.634Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:27]                   └- ✓ pass  (2.2s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges landing page shows "Create new case" button"
[00:14:27]                 └-> doesn't show read-only badge
[00:14:27]                   └-> "before each" hook: global before each for "doesn't show read-only badge"
[00:14:27]                   │ debg navigateToActualUrl http://localhost:61211/app/observability/cases
[00:14:27]                   │ proc [kibana]   log   [19:43:11.009] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:27]                   │ERROR browser[SEVERE] http://localhost:61211/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:27]                   │ERROR browser[SEVERE] http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:27]                   │          at type_registry_TypeRegistry.get (http://localhost:61211/43194/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:27]                   │          at ExternalServiceColumn (http://localhost:61211/43194/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:27]                   │          at gs (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:27]                   │          at Pa (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:27]                   │          at Il (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:27]                   │          at Nl (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:27]                   │          at Cl (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:27]                   │          at http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:27]                   │          at t.unstable_runWithPriority (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:27]                   │          at Kr (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:27]                   │ debg browser[INFO] http://localhost:61211/app/observability/cases?_t=1628106190972 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:27]                   │
[00:14:27]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:27]                   │ debg currentUrl = http://localhost:61211/app/observability/cases
[00:14:27]                   │          appUrl = http://localhost:61211/app/observability/cases
[00:14:27]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:27]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:29]                   │ debg TestSubjects.missingOrFail(case-callout-e41900b01c9ef0fa81dd6ff326083fb3)
[00:14:29]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="case-callout-e41900b01c9ef0fa81dd6ff326083fb3"]') with timeout=2500
[00:14:29]                   │ proc [kibana]   log   [19:43:13.303] [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:29]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:29]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:29]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:29]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:29]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:29]                   │ proc [kibana]   meta: {
[00:14:29]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:29]                   │ proc [kibana]     statusCode: 403,
[00:14:29]                   │ proc [kibana]     headers: {
[00:14:29]                   │ proc [kibana]       'x-opaque-id': '55415f7f-717a-4b86-b17e-960b3558f98e',
[00:14:29]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:29]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:14:29]                   │ proc [kibana]       'content-length': '501'
[00:14:29]                   │ proc [kibana]     },
[00:14:29]                   │ proc [kibana]     meta: {
[00:14:29]                   │ proc [kibana]       context: null,
[00:14:29]                   │ proc [kibana]       request: [Object],
[00:14:29]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:29]                   │ proc [kibana]       connection: [Object],
[00:14:29]                   │ proc [kibana]       attempts: 0,
[00:14:29]                   │ proc [kibana]       aborted: false
[00:14:29]                   │ proc [kibana]     }
[00:14:29]                   │ proc [kibana]   }
[00:14:29]                   │ proc [kibana] }
[00:14:29]                   │ proc [kibana]  error  [19:43:13.167]  Error: Internal Server Error
[00:14:29]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:128:19)
[00:14:29]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:82:19)
[00:14:29]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:73:17)
[00:14:29]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:164:34)
[00:14:29]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:29]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:29]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:14:29]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:29]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:29]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:29]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:29]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:29]                   │ proc [kibana]  error  [19:43:13.184]  Error: Internal Server Error
[00:14:29]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:14:29]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:177:34)
[00:14:29]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:29]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:29]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:14:29]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:29]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:29]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:29]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:29]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:29]                   │ proc [kibana]   log   [19:43:13.332] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-04T19%3A28%3A13.111Z&end=2021-08-04T19%3A43%3A13.112Z&uiFilters=": responding with 403
[00:14:29]                   │ proc [kibana]   log   [19:43:13.335] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:29]                   │ proc [kibana]   log   [19:43:13.466] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:30]                   │ERROR browser[SEVERE] http://localhost:61211/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:30]                   │ERROR browser[SEVERE] http://localhost:61211/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:30]                   │ERROR browser[SEVERE] http://localhost:61211/api/apm/observability_overview/has_rum_data?start=2021-08-04T19%3A28%3A13.111Z&end=2021-08-04T19%3A43%3A13.112Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:30]                   │ERROR browser[SEVERE] http://localhost:61211/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:30]                   │ERROR browser[SEVERE] http://localhost:61211/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:30]                   │ERROR browser[SEVERE] http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:30]                   │          at type_registry_TypeRegistry.get (http://localhost:61211/43194/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:30]                   │          at ExternalServiceColumn (http://localhost:61211/43194/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:30]                   │          at gs (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:30]                   │          at Pa (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:30]                   │          at Il (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:30]                   │          at Nl (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:30]                   │          at Cl (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:30]                   │          at http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:30]                   │          at t.unstable_runWithPriority (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:30]                   │          at Kr (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:30]                   └- ✓ pass  (2.7s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges doesn't show read-only badge"
[00:14:30]                 └-> allows a case to be created
[00:14:30]                   └-> "before each" hook: global before each for "allows a case to be created"
[00:14:30]                   │ debg navigateToActualUrl http://localhost:61211/app/observability/cases
[00:14:30]                   │ debg browser[INFO] http://localhost:61211/app/observability/cases?_t=1628106193701 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:30]                   │
[00:14:30]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:30]                   │ debg currentUrl = http://localhost:61211/app/observability/cases
[00:14:30]                   │          appUrl = http://localhost:61211/app/observability/cases
[00:14:30]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:30]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:31]                   │ debg TestSubjects.click(createNewCaseBtn)
[00:14:31]                   │ debg Find.clickByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:31]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:32]                   │ proc [kibana]   log   [19:43:15.569] [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:32]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:32]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-21/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:32]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:32]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:32]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:32]                   │ proc [kibana]   meta: {
[00:14:32]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:32]                   │ proc [kibana]     statusCode: 403,
[00:14:32]                   │ proc [kibana]     headers: {
[00:14:32]                   │ proc [kibana]       'x-opaque-id': 'c2e7adcc-46b1-47e1-8a3f-8b36c8662785',
[00:14:32]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:32]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:14:32]                   │ proc [kibana]       'content-length': '501'
[00:14:32]                   │ proc [kibana]     },
[00:14:32]                   │ proc [kibana]     meta: {
[00:14:32]                   │ proc [kibana]       context: null,
[00:14:32]                   │ proc [kibana]       request: [Object],
[00:14:32]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:32]                   │ proc [kibana]       connection: [Object],
[00:14:32]                   │ proc [kibana]       attempts: 0,
[00:14:32]                   │ proc [kibana]       aborted: false
[00:14:32]                   │ proc [kibana]     }
[00:14:32]                   │ proc [kibana]   }
[00:14:32]                   │ proc [kibana] }
[00:14:32]                   │ proc [kibana]  error  [19:43:15.499]  Error: Internal Server Error
[00:14:32]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:128:19)
[00:14:32]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:82:19)
[00:14:32]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:73:17)
[00:14:32]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:164:34)
[00:14:32]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:32]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:32]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:14:32]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:32]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:32]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:32]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:32]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:32]                   │ proc [kibana]  error  [19:43:15.500]  Error: Internal Server Error
[00:14:32]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/response_adapter.js:61:19)
[00:14:32]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:177:34)
[00:14:32]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:32]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:32]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:14:32]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:32]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:32]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:32]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:32]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:32]                   │ proc [kibana]   log   [19:43:15.602] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-04T19%3A28%3A15.456Z&end=2021-08-04T19%3A43%3A15.456Z&uiFilters=": responding with 403
[00:14:32]                   │ proc [kibana]   log   [19:43:15.604] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:32]                   │ERROR browser[SEVERE] http://localhost:61211/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:32]                   │ERROR browser[SEVERE] http://localhost:61211/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:32]                   │ERROR browser[SEVERE] http://localhost:61211/api/apm/observability_overview/has_rum_data?start=2021-08-04T19%3A28%3A15.456Z&end=2021-08-04T19%3A43%3A15.456Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:32]                   │ERROR browser[SEVERE] http://localhost:61211/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:32]                   │ proc [kibana]   log   [19:43:15.690] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:32]                   │ warn WebElementWrapper.click: stale element reference: element is not attached to the page document
[00:14:32]                   │        (Session info: headless chrome=92.0.4515.131)
[00:14:32]                   │ debg finding element 'By(css selector, [data-test-subj="createNewCaseBtn"])' again, 2 attempts left
[00:14:32]                   │ERROR browser[SEVERE] http://localhost:61211/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:32]                   │ERROR browser[SEVERE] http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:32]                   │          at type_registry_TypeRegistry.get (http://localhost:61211/43194/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:32]                   │          at ExternalServiceColumn (http://localhost:61211/43194/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:32]                   │          at gs (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:32]                   │          at Pa (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:32]                   │          at Il (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:32]                   │          at Nl (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:32]                   │          at Cl (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:32]                   │          at http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:32]                   │          at t.unstable_runWithPriority (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:32]                   │          at Kr (http://localhost:61211/43194/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:42]                   │ debg --- retry.try error: no such element: Unable to locate element: {"method":"css selector","selector":"[data-test-subj="createNewCaseBtn"]"}
[00:14:42]                   │        (Session info: headless chrome=92.0.4515.131)
[00:14:43]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:47]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_7.15.0_001/MFkBheReS4u_U2oa9dmxyw] update_mapping [_doc]
[00:14:53]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:14:53]                   │      Wait timed out after 10009ms
[00:14:53]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:15:03]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:15:03]                   │      Wait timed out after 10014ms
[00:15:04]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:15:14]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:15:14]                   │      Wait timed out after 10013ms
[00:15:14]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:15:24]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:15:24]                   │      Wait timed out after 10026ms
[00:15:25]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:15:35]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:15:35]                   │      Wait timed out after 10027ms
[00:15:35]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:15:45]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:15:45]                   │      Wait timed out after 10059ms
[00:15:46]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:15:56]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:15:56]                   │      Wait timed out after 10054ms
[00:15:56]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:16:06]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:16:06]                   │      Wait timed out after 10034ms
[00:16:07]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:16:17]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:16:17]                   │      Wait timed out after 10030ms
[00:16:17]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:16:27]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:16:27]                   │      Wait timed out after 10037ms
[00:16:28]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:16:38]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:16:38]                   │      Wait timed out after 10024ms
[00:16:38]                   │ info Taking screenshot "/dev/shm/workspace/parallel/21/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:39]                   │ info Current URL is: http://localhost:61211/app/observability/cases
[00:16:39]                   │ info Saving page source to: /dev/shm/workspace/parallel/21/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:39]                   └- ✖ fail: ObservabilityApp feature controls observability security feature controls observability cases all privileges allows a case to be created
[00:16:39]                   │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:16:39]                   │ Wait timed out after 10024ms
[00:16:39]                   │     at /dev/shm/workspace/parallel/21/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:16:39]                   │     at runMicrotasks (<anonymous>)
[00:16:39]                   │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:16:39]                   │       at onFailure (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:16:39]                   │       at retryForSuccess (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:16:39]                   │       at RetryService.try (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry.ts:31:12)
[00:16:39]                   │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/find.ts:360:5)
[00:16:39]                   │       at TestSubjects.click (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:16:39]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:85:9)
[00:16:39]                   │       at Object.apply (/dev/shm/workspace/parallel/21/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:16:39]                   │ 
[00:16:39]                   │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
Wait timed out after 10024ms
    at /dev/shm/workspace/parallel/21/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/21/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/21/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/find.ts:360:5)
    at TestSubjects.click (/dev/shm/workspace/parallel/21/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/21/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
timelines 240 241 +1

Async chunks

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

id before after diff
timelines 260.9KB 266.2KB +5.3KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
timelines 298.2KB 298.3KB +135.0B

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

@andrew-goldstein andrew-goldstein merged commit fbfa51a into elastic:7.x Aug 4, 2021
@andrew-goldstein andrew-goldstein deleted the backport/7.x/pr-107495 branch August 5, 2021 02:38
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