Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [Security solution] [RAC] Add checkbox control column to t-grid (#107144) #107630

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

machadoum
Copy link
Member

Backports the following commits to 7.x:

…tic#107144)

* Add checkbox control column to t-grid

* Add unit tests

* Update translations

Co-authored-by: Kibana Machine <[email protected]>
@machadoum machadoum enabled auto-merge (squash) August 4, 2021 11:19
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

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

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:14:13]         └-: ObservabilityApp
[00:14:13]           └-> "before all" hook in "ObservabilityApp"
[00:14:13]           └-: feature controls
[00:14:13]             └-> "before all" hook in "feature controls"
[00:14:13]             └-: observability security feature controls
[00:14:13]               └-> "before all" hook in "observability security feature controls"
[00:14:13]               └-> "before all" hook in "observability security feature controls"
[00:14:13]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "mappings.json"
[00:14:13]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "data.json.gz"
[00:14:13]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.15.0_001/zbx0FZPdQdm3jEl0hcxeZg] deleting index
[00:14:13]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/EqtlPL15QQqUxPQmLct41g] deleting index
[00:14:13]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_7.15.0_001/uxvQa4x5SAKM5rjsg9W6wg] deleting index
[00:14:13]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_7.15.0_001"
[00:14:13]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_task_manager_7.15.0_001"
[00:14:13]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_1"
[00:14:13]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:14:13]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_1]
[00:14:13]                 │ 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:13]                 │ info [x-pack/test/functional/es_archives/cases/default] Created index ".kibana_1"
[00:14:13]                 │ 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:13]                 │ info [x-pack/test/functional/es_archives/cases/default] Indexed 9 docs into ".kibana_1"
[00:14:13]                 │ debg Migrating saved objects
[00:14:13]                 │ proc [kibana]   log   [12:06:25.494] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 4ms.
[00:14:13]                 │ proc [kibana]   log   [12:06:25.498] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 11ms.
[00:14:13]                 │ proc [kibana]   log   [12:06:25.501] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 3ms.
[00:14:13]                 │ 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:13]                 │ 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:13]                 │ proc [kibana]   log   [12:06:25.509] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 8ms.
[00:14:13]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/iri1xDJ1RISVg6Ls4WDxaQ]]
[00:14:13]                 │ 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:13]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:14:13]                 │ proc [kibana]   log   [12:06:25.606] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 112ms.
[00:14:13]                 │ proc [kibana]   log   [12:06:25.631] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 122ms.
[00:14:13]                 │ proc [kibana]   log   [12:06:25.636] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 5ms.
[00:14:13]                 │ proc [kibana]   log   [12:06:25.657] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 51ms.
[00:14:13]                 │ proc [kibana]   log   [12:06:25.657] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 167ms
[00:14:13]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.15.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:14:13]                 │ 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:14]                 │ 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:14]                 │ proc [kibana]   log   [12:06:25.729] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 93ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:25.734] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 5ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:25.741] [info][savedobjects-service] [.kibana] Starting to process 9 documents.
[00:14:14]                 │ proc [kibana]   log   [12:06:25.742] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 7ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:25.746] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 5ms.
[00:14:14]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_reindex_temp/HAuM3YFxROeGQziOq7-jug] update_mapping [_doc]
[00:14:14]                 │ proc [kibana]   log   [12:06:25.790] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 44ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:25.797] [info][savedobjects-service] [.kibana] Processed 9 documents out of 9.
[00:14:14]                 │ proc [kibana]   log   [12:06:25.798] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 7ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:25.801] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:14:14]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_7.15.0_reindex_temp/HAuM3YFxROeGQziOq7-jug]]
[00:14:14]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_7.15.0_reindex_temp]
[00:14:14]                 │ proc [kibana]   log   [12:06:25.879] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 78ms.
[00:14:14]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_7.15.0_reindex_temp] metadata
[00:14:14]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.15.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:14:14]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.15.0_001]
[00:14:14]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/cHxyHEbJRdu13MG0UUYKqA] create_mapping [_doc]
[00:14:14]                 │ 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:14]                 │ proc [kibana]   log   [12:06:26.044] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 165ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:26.048] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:26.052] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:26.057] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 5ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:26.061] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:14:14]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/cHxyHEbJRdu13MG0UUYKqA] update_mapping [_doc]
[00:14:14]                 │ proc [kibana]   log   [12:06:26.137] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 77ms.
[00:14:14]                 │ info [o.e.t.LoggingTaskListener] [node-01] 32843 finished with response BulkByScrollResponse[took=25.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:14]                 │ proc [kibana]   log   [12:06:26.245] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 108ms.
[00:14:14]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.15.0_reindex_temp/HAuM3YFxROeGQziOq7-jug] deleting index
[00:14:14]                 │ proc [kibana]   log   [12:06:26.315] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 70ms.
[00:14:14]                 │ proc [kibana]   log   [12:06:26.315] [info][savedobjects-service] [.kibana] Migration completed after 828ms
[00:14:14]                 │ debg [x-pack/test/functional/es_archives/cases/default] Migrated Kibana index after loading Kibana data
[00:14:15]                 │ debg [x-pack/test/functional/es_archives/cases/default] Ensured that default space exists in .kibana
[00:14:15]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true,"visualization:visualize:legacyPieChartsLibrary":true}
[00:14:15]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/cHxyHEbJRdu13MG0UUYKqA] update_mapping [_doc]
[00:14:17]               └-: observability cases all privileges
[00:14:17]                 └-> "before all" hook for "shows observability/cases navlink"
[00:14:17]                 └-> "before all" hook for "shows observability/cases navlink"
[00:14:17]                   │ debg creating role cases_observability_all_role
[00:14:17]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [cases_observability_all_role]
[00:14:17]                   │ debg creating user cases_observability_all_user
[00:14:17]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [cases_observability_all_user]
[00:14:17]                   │ debg created user cases_observability_all_user
[00:14:17]                   │ debg SecurityPage.forceLogout
[00:14:17]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:14:17]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:14:18]                   │ debg Redirecting to /logout to force the logout
[00:14:18]                   │ debg Waiting on the login form to appear
[00:14:18]                   │ debg Waiting for Login Page to appear.
[00:14:18]                   │ debg Waiting up to 100000ms for login page...
[00:14:18]                   │ debg browser[INFO] http://localhost:6141/logout?_t=1628078789770 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:18]                   │
[00:14:18]                   │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:18]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:14:21]                   │ERROR browser[SEVERE] http://localhost:6141/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:14:21]                   │ debg browser[INFO] http://localhost:6141/43182/bundles/core/core.entry.js 12:156264 "Detected an unhandled Promise rejection.
[00:14:21]                   │      Error: Unauthorized"
[00:14:21]                   │ERROR browser[SEVERE] http://localhost:6141/43182/bundles/core/core.entry.js 5:2474 
[00:14:21]                   │ debg browser[INFO] http://localhost:6141/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:21]                   │
[00:14:21]                   │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:21]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:14:22]                   │ERROR browser[SEVERE] http://localhost:6141/api/canvas/fns - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:14:22]                   │ debg browser[INFO] http://localhost:6141/43182/bundles/core/core.entry.js 12:156264 "Detected an unhandled Promise rejection.
[00:14:22]                   │      Error: Unauthorized"
[00:14:22]                   │ERROR browser[SEVERE] http://localhost:6141/43182/bundles/core/core.entry.js 5:2474 
[00:14:22]                   │ERROR browser[SEVERE] http://localhost:6141/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:14:22]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:14:22]                   │ debg TestSubjects.exists(loginForm)
[00:14:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:14:22]                   │ debg Waiting for Login Form to appear.
[00:14:22]                   │ debg Waiting up to 100000ms for login form...
[00:14:22]                   │ debg TestSubjects.exists(loginForm)
[00:14:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:14:22]                   │ debg TestSubjects.setValue(loginUsername, cases_observability_all_user)
[00:14:22]                   │ debg TestSubjects.click(loginUsername)
[00:14:22]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:22]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:23]                   │ debg TestSubjects.setValue(loginPassword, cases_observability_all_user-password)
[00:14:23]                   │ debg TestSubjects.click(loginPassword)
[00:14:23]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:23]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:23]                   │ debg TestSubjects.click(loginSubmit)
[00:14:23]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:23]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:23]                   │ debg Waiting for login result, expected: undefined.
[00:14:23]                   │ debg Waiting up to 20000ms for logout button visible...
[00:14:23]                   │ debg TestSubjects.exists(userMenuButton)
[00:14:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:14:23]                   │ proc [kibana]   log   [12:06:35.322] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:14:25]                   │ debg browser[INFO] http://localhost:6141/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:25]                   │
[00:14:25]                   │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:25]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/cHxyHEbJRdu13MG0UUYKqA] update_mapping [_doc]
[00:14:26]                   │ debg TestSubjects.exists(userMenu)
[00:14:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:14:28]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:14:29]                   │ debg TestSubjects.click(userMenuButton)
[00:14:29]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:29]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:29]                   │ debg TestSubjects.exists(userMenu)
[00:14:29]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:14:29]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:14:29]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:14:29]                 └-> shows observability/cases navlink
[00:14:29]                   └-> "before each" hook: global before each for "shows observability/cases navlink"
[00:14:29]                   │ debg isGlobalLoadingIndicatorVisible
[00:14:29]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:14:29]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:14:30]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:14:31]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:14:31]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:14:31]                   │ debg TestSubjects.exists(collapsibleNav)
[00:14:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:14:33]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:14:34]                   │ debg TestSubjects.click(toggleNavButton)
[00:14:34]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:14:34]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:14:34]                   │ debg TestSubjects.find(collapsibleNav)
[00:14:34]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:14:34]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:14:34]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:34]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:34]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:14:34]                   └- ✓ pass  (5.5s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges shows observability/cases navlink"
[00:14:34]                 └-> landing page shows "Create new case" button
[00:14:34]                   └-> "before each" hook: global before each for "landing page shows "Create new case" button"
[00:14:34]                   │ debg navigateToActualUrl http://localhost:6141/app/observability/cases
[00:14:35]                   │ debg browser[INFO] http://localhost:6141/app/observability/cases?_t=1628078806575 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:35]                   │
[00:14:35]                   │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:35]                   │ debg currentUrl = http://localhost:6141/app/observability/cases
[00:14:35]                   │          appUrl = http://localhost:6141/app/observability/cases
[00:14:35]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:35]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:37]                   │ debg TestSubjects.find(createNewCaseBtn)
[00:14:37]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=20000
[00:14:37]                   │ proc [kibana]   log   [12:06:49.051] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:37]                   │ proc [kibana]   log   [12:06:49.053] [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:37]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:37]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:37]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:37]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:37]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:37]                   │ proc [kibana]   meta: {
[00:14:37]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:37]                   │ proc [kibana]     statusCode: 403,
[00:14:37]                   │ proc [kibana]     headers: {
[00:14:37]                   │ proc [kibana]       'x-opaque-id': '2ca4a9bd-cefe-4e2a-9c98-77508c2c9391',
[00:14:37]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:37]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:14:37]                   │ proc [kibana]       'content-length': '501'
[00:14:37]                   │ proc [kibana]     },
[00:14:37]                   │ proc [kibana]     meta: {
[00:14:37]                   │ proc [kibana]       context: null,
[00:14:37]                   │ proc [kibana]       request: [Object],
[00:14:37]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:37]                   │ proc [kibana]       connection: [Object],
[00:14:37]                   │ proc [kibana]       attempts: 0,
[00:14:37]                   │ proc [kibana]       aborted: false
[00:14:37]                   │ proc [kibana]     }
[00:14:37]                   │ proc [kibana]   }
[00:14:37]                   │ proc [kibana] }
[00:14:37]                   │ proc [kibana]  error  [12:06:48.921]  Error: Internal Server Error
[00:14:37]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:128:19)
[00:14:37]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:82:19)
[00:14:37]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:73:17)
[00:14:37]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:164:34)
[00:14:37]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:37]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:37]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:124:50)
[00:14:37]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:37]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:37]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:37]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:37]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:37]                   │ proc [kibana]  error  [12:06:48.922]  Error: Internal Server Error
[00:14:37]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:61:19)
[00:14:37]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:177:34)
[00:14:37]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:37]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:37]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:124:50)
[00:14:37]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:37]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:37]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:37]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:37]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:37]                   │ proc [kibana]   log   [12:06:49.106] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-04T11%3A51%3A48.879Z&end=2021-08-04T12%3A06%3A48.879Z&uiFilters=": responding with 403
[00:14:37]                   │ERROR browser[SEVERE] http://localhost:6141/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:37]                   │ERROR browser[SEVERE] http://localhost:6141/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:37]                   │ERROR browser[SEVERE] http://localhost:6141/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:37]                   │ERROR browser[SEVERE] http://localhost:6141/api/apm/observability_overview/has_rum_data?start=2021-08-04T11%3A51%3A48.879Z&end=2021-08-04T12%3A06%3A48.879Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:37]                   └- ✓ pass  (2.7s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges landing page shows "Create new case" button"
[00:14:37]                 └-> doesn't show read-only badge
[00:14:37]                   └-> "before each" hook: global before each for "doesn't show read-only badge"
[00:14:37]                   │ debg navigateToActualUrl http://localhost:6141/app/observability/cases
[00:14:37]                   │ proc [kibana]   log   [12:06:49.340] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:37]                   │ERROR browser[SEVERE] http://localhost:6141/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:37]                   │ERROR browser[SEVERE] http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:37]                   │          at type_registry_TypeRegistry.get (http://localhost:6141/43182/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:37]                   │          at ExternalServiceColumn (http://localhost:6141/43182/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:37]                   │          at gs (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:37]                   │          at Pa (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:37]                   │          at Il (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:37]                   │          at Nl (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:37]                   │          at Cl (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:37]                   │          at http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:37]                   │          at t.unstable_runWithPriority (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:37]                   │          at Kr (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:37]                   │ debg browser[INFO] http://localhost:6141/app/observability/cases?_t=1628078809318 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:37]                   │
[00:14:37]                   │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:37]                   │ debg currentUrl = http://localhost:6141/app/observability/cases
[00:14:37]                   │          appUrl = http://localhost:6141/app/observability/cases
[00:14:37]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:37]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:39]                   │ debg TestSubjects.missingOrFail(case-callout-e41900b01c9ef0fa81dd6ff326083fb3)
[00:14:39]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="case-callout-e41900b01c9ef0fa81dd6ff326083fb3"]') with timeout=2500
[00:14:39]                   │ proc [kibana]   log   [12:06:51.519] [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:39]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:39]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:39]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:39]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:39]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:39]                   │ proc [kibana]   meta: {
[00:14:39]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:39]                   │ proc [kibana]     statusCode: 403,
[00:14:39]                   │ proc [kibana]     headers: {
[00:14:39]                   │ proc [kibana]       'x-opaque-id': '2cd51eb1-c8ce-4242-9ce2-935ed65be266',
[00:14:39]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:39]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:14:39]                   │ proc [kibana]       'content-length': '501'
[00:14:39]                   │ proc [kibana]     },
[00:14:39]                   │ proc [kibana]     meta: {
[00:14:39]                   │ proc [kibana]       context: null,
[00:14:39]                   │ proc [kibana]       request: [Object],
[00:14:39]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:39]                   │ proc [kibana]       connection: [Object],
[00:14:39]                   │ proc [kibana]       attempts: 0,
[00:14:39]                   │ proc [kibana]       aborted: false
[00:14:39]                   │ proc [kibana]     }
[00:14:39]                   │ proc [kibana]   }
[00:14:39]                   │ proc [kibana] }
[00:14:39]                   │ proc [kibana]   log   [12:06:51.545] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-04T11%3A51%3A51.346Z&end=2021-08-04T12%3A06%3A51.346Z&uiFilters=": responding with 403
[00:14:39]                   │ proc [kibana]  error  [12:06:51.392]  Error: Internal Server Error
[00:14:39]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:61:19)
[00:14:39]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:177:34)
[00:14:39]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:39]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:39]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:124:50)
[00:14:39]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:39]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:39]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:39]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:39]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:39]                   │ proc [kibana]  error  [12:06:51.382]  Error: Internal Server Error
[00:14:39]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:128:19)
[00:14:39]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:82:19)
[00:14:39]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:73:17)
[00:14:39]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:164:34)
[00:14:39]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:39]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:39]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:124:50)
[00:14:39]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:39]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:39]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:39]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:39]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:39]                   │ proc [kibana]   log   [12:06:51.577] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:39]                   │ proc [kibana]   log   [12:06:51.596] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:40]                   │ERROR browser[SEVERE] http://localhost:6141/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:40]                   │ERROR browser[SEVERE] http://localhost:6141/api/apm/observability_overview/has_rum_data?start=2021-08-04T11%3A51%3A51.346Z&end=2021-08-04T12%3A06%3A51.346Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:40]                   │ERROR browser[SEVERE] http://localhost:6141/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:40]                   │ERROR browser[SEVERE] http://localhost:6141/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:40]                   │ERROR browser[SEVERE] http://localhost:6141/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:40]                   │ERROR browser[SEVERE] http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:40]                   │          at type_registry_TypeRegistry.get (http://localhost:6141/43182/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:40]                   │          at ExternalServiceColumn (http://localhost:6141/43182/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:40]                   │          at gs (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:40]                   │          at Pa (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:40]                   │          at Il (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:40]                   │          at Nl (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:40]                   │          at Cl (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:40]                   │          at http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:40]                   │          at t.unstable_runWithPriority (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:40]                   │          at Kr (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:40]                   └- ✓ pass  (2.6s) "ObservabilityApp feature controls observability security feature controls observability cases all privileges doesn't show read-only badge"
[00:14:40]                 └-> allows a case to be created
[00:14:40]                   └-> "before each" hook: global before each for "allows a case to be created"
[00:14:40]                   │ debg navigateToActualUrl http://localhost:6141/app/observability/cases
[00:14:40]                   │ debg browser[INFO] http://localhost:6141/app/observability/cases?_t=1628078811917 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:40]                   │
[00:14:40]                   │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:40]                   │ debg currentUrl = http://localhost:6141/app/observability/cases
[00:14:40]                   │          appUrl = http://localhost:6141/app/observability/cases
[00:14:40]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:40]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:42]                   │ debg TestSubjects.click(createNewCaseBtn)
[00:14:42]                   │ debg Find.clickByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:42]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:42]                   │ proc [kibana]   log   [12:06:54.146] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-08-04T11%3A51%3A53.969Z&end=2021-08-04T12%3A06%3A53.970Z&uiFilters=": responding with 403
[00:14:42]                   │ proc [kibana]   log   [12:06:54.153] [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:42]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:14:42]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:14:42]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:14:42]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:14:42]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:14:42]                   │ proc [kibana]   meta: {
[00:14:42]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:14:42]                   │ proc [kibana]     statusCode: 403,
[00:14:42]                   │ proc [kibana]     headers: {
[00:14:42]                   │ proc [kibana]       'x-opaque-id': '5bee5092-bf1e-4681-a5f2-1221e7bc2ef2',
[00:14:42]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:14:42]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:14:42]                   │ proc [kibana]       'content-length': '501'
[00:14:42]                   │ proc [kibana]     },
[00:14:42]                   │ proc [kibana]     meta: {
[00:14:42]                   │ proc [kibana]       context: null,
[00:14:42]                   │ proc [kibana]       request: [Object],
[00:14:42]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:14:42]                   │ proc [kibana]       connection: [Object],
[00:14:42]                   │ proc [kibana]       attempts: 0,
[00:14:42]                   │ proc [kibana]       aborted: false
[00:14:42]                   │ proc [kibana]     }
[00:14:42]                   │ proc [kibana]   }
[00:14:42]                   │ proc [kibana] }
[00:14:42]                   │ proc [kibana]  error  [12:06:54.008]  Error: Internal Server Error
[00:14:42]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:128:19)
[00:14:42]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:82:19)
[00:14:42]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:73:17)
[00:14:42]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:164:34)
[00:14:42]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:42]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:42]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:124:50)
[00:14:42]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:42]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:42]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:42]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:42]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:42]                   │ proc [kibana]  error  [12:06:54.008]  Error: Internal Server Error
[00:14:42]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/response_adapter.js:61:19)
[00:14:42]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:177:34)
[00:14:42]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:14:42]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:42]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-4/src/core/server/http/router/router.js:124:50)
[00:14:42]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:14:42]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:14:42]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:14:42]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:14:42]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-4/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:14:42]                   │ proc [kibana]   log   [12:06:54.181] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:14:42]                   │ proc [kibana]   log   [12:06:54.188] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:14:42]                   │ERROR browser[SEVERE] http://localhost:6141/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:42]                   │ERROR browser[SEVERE] http://localhost:6141/api/apm/observability_overview/has_rum_data?start=2021-08-04T11%3A51%3A53.969Z&end=2021-08-04T12%3A06%3A53.970Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:42]                   │ERROR browser[SEVERE] http://localhost:6141/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:14:42]                   │ERROR browser[SEVERE] http://localhost:6141/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:42]                   │ERROR browser[SEVERE] http://localhost:6141/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:14:42]                   │ warn WebElementWrapper.click: stale element reference: element is not attached to the page document
[00:14:42]                   │        (Session info: headless chrome=92.0.4515.131)
[00:14:42]                   │ debg finding element 'By(css selector, [data-test-subj="createNewCaseBtn"])' again, 2 attempts left
[00:14:42]                   │ERROR browser[SEVERE] http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:84011 Error: Object type ".none" is not registered.
[00:14:42]                   │          at type_registry_TypeRegistry.get (http://localhost:6141/43182/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55400)
[00:14:42]                   │          at ExternalServiceColumn (http://localhost:6141/43182/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11238)
[00:14:42]                   │          at gs (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59761)
[00:14:42]                   │          at Pa (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:107651)
[00:14:42]                   │          at Il (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97334)
[00:14:42]                   │          at Nl (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:97146)
[00:14:42]                   │          at Cl (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:94325)
[00:14:42]                   │          at http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:46038
[00:14:42]                   │          at t.unstable_runWithPriority (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:14:42]                   │          at Kr (http://localhost:6141/43182/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45747)
[00:14:43]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_7.15.0_001/hYt6UwqfQDiu9KHexVDT0Q] update_mapping [_doc]
[00:14:52]                   │ debg --- retry.try error: no such element: Unable to locate element: {"method":"css selector","selector":"[data-test-subj="createNewCaseBtn"]"}
[00:14:52]                   │        (Session info: headless chrome=92.0.4515.131)
[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 10011ms
[00:15:03]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:15:13]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:15:13]                   │      Wait timed out after 10041ms
[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 10045ms
[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 10017ms
[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 10048ms
[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 10028ms
[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 10038ms
[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 10009ms
[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 10047ms
[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]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:16:48]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:16:48]                   │      Wait timed out after 10010ms
[00:16:49]                   │ info Taking screenshot "/dev/shm/workspace/parallel/4/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:49]                   │ info Current URL is: http://localhost:6141/app/observability/cases
[00:16:49]                   │ info Saving page source to: /dev/shm/workspace/parallel/4/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:49]                   └- ✖ fail: ObservabilityApp feature controls observability security feature controls observability cases all privileges allows a case to be created
[00:16:49]                   │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:16:49]                   │ Wait timed out after 10010ms
[00:16:49]                   │     at /dev/shm/workspace/parallel/4/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:16:49]                   │     at runMicrotasks (<anonymous>)
[00:16:49]                   │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:16:49]                   │       at onFailure (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:16:49]                   │       at retryForSuccess (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:16:49]                   │       at RetryService.try (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry.ts:31:12)
[00:16:49]                   │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/find.ts:360:5)
[00:16:49]                   │       at TestSubjects.click (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:16:49]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:85:9)
[00:16:49]                   │       at Object.apply (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:16:49]                   │ 
[00:16:49]                   │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
Wait timed out after 10010ms
    at /dev/shm/workspace/parallel/4/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/4/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/find.ts:360:5)
    at TestSubjects.click (/dev/shm/workspace/parallel/4/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/4/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 233 236 +3

Async chunks

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

id before after diff
securitySolution 6.4MB 6.4MB +131.0B
timelines 241.9KB 244.5KB +2.6KB
total +2.7KB

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

@machadoum machadoum merged commit 23e3037 into elastic:7.x Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants