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

[Lens] Test migration parity for embeddable and saved objects #101362

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

flash1293
Copy link
Contributor

Adds a unit test to make sure migrations stay in sync.

@flash1293 flash1293 added Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:Lens v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 4, 2021
@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/graph/feature_controls/graph_security·ts.graph app feature controls security global graph all privileges allows creating a new workspace

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://github.com/elastic/kibana/issues/53204

[00:00:00]       │
[00:00:00]         └-: graph app
[00:00:00]           └-> "before all" hook in "graph app"
[00:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook in "feature controls"
[00:00:00]             └-: security
[00:00:00]               └-> "before all" hook in "security"
[00:00:00]               └-> "before all" hook in "security"
[00:00:00]                 │ info [empty_kibana] Loading "mappings.json"
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_8.0.0_001/20dG4IYiQoWs73o3K5vhuA] deleting index
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_task_manager_8.0.0_001/mtM0oRIIR2SitpJDmXbLYA] deleting index
[00:00:00]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:00:00]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [empty_kibana] Created index ".kibana"
[00:00:00]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]                 │ debg Migrating saved objects
[00:00:00]                 │ proc [kibana]   log   [09:51:43.731] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 5ms.
[00:00:00]                 │ proc [kibana]   log   [09:51:43.735] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 12ms.
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:00:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] adding block write to indices [[.kibana/CBwT-3ORSbyOE6y0Dxt-og]]
[00:00:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] completed adding block write to indices [.kibana]
[00:00:00]                 │ proc [kibana]   log   [09:51:43.864] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 133ms.
[00:00:00]                 │ proc [kibana]   log   [09:51:43.886] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 151ms.
[00:00:00]                 │ proc [kibana]   log   [09:51:43.912] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 48ms.
[00:00:00]                 │ proc [kibana]   log   [09:51:43.913] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 187ms
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:00:00]                 │ proc [kibana]   log   [09:51:43.994] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX. took: 108ms.
[00:00:00]                 │ proc [kibana]   log   [09:51:44.016] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK. took: 22ms.
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.tasks] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] updating number_of_replicas to [0] for indices [.tasks]
[00:00:00]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] 1513 finished with response BulkByScrollResponse[took=7.8ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:00]                 │ proc [kibana]   log   [09:51:44.138] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE. took: 122ms.
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana/CBwT-3ORSbyOE6y0Dxt-og] deleting index
[00:00:00]                 │ proc [kibana]   log   [09:51:44.191] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK. took: 53ms.
[00:00:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] adding block write to indices [[.kibana_pre6.5.0_001/2WBtVz4_SrSl0_MfIJavZQ]]
[00:00:00]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:00:00]                 │ proc [kibana]   log   [09:51:44.245] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 54ms.
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:00:01]                 │ proc [kibana]   log   [09:51:44.331] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 86ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.346] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 15ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.361] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 15ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.369] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 8ms.
[00:00:01]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] adding block write to indices [[.kibana_8.0.0_reindex_temp/V2aAumTiTry7N9fUUuAabg]]
[00:00:01]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:00:01]                 │ proc [kibana]   log   [09:51:44.442] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 73ms.
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_8.0.0_001/hKWbuKxbT5mmDdWmBmCxgg] create_mapping
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:00:01]                 │ proc [kibana]   log   [09:51:44.622] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 180ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.628] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 6ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.633] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 5ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.646] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 13ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.651] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 5ms.
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_8.0.0_001/hKWbuKxbT5mmDdWmBmCxgg] update_mapping [_doc]
[00:00:01]                 │ proc [kibana]   log   [09:51:44.730] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 79ms.
[00:00:01]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] 1584 finished with response BulkByScrollResponse[took=3.9ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:01]                 │ proc [kibana]   log   [09:51:44.839] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 109ms.
[00:00:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_8.0.0_reindex_temp/V2aAumTiTry7N9fUUuAabg] deleting index
[00:00:01]                 │ proc [kibana]   log   [09:51:44.894] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 55ms.
[00:00:01]                 │ proc [kibana]   log   [09:51:44.895] [info][savedobjects-service] [.kibana] Migration completed after 1172ms
[00:00:01]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:00:02]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:00:02]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] [.kibana_8.0.0_001/hKWbuKxbT5mmDdWmBmCxgg] update_mapping [_doc]
[00:00:04]                 │ debg SecurityPage.forceLogout
[00:00:04]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:04]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:04]                 │ debg Redirecting to /logout to force the logout
[00:00:05]                 │ debg Waiting on the login form to appear
[00:00:05]                 │ debg Waiting for Login Page to appear.
[00:00:05]                 │ debg Waiting up to 100000ms for login page...
[00:00:05]                 │ debg browser[INFO] http://localhost:61241/logout?_t=1622800308217 340 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:00:05]                 │
[00:00:05]                 │ debg browser[INFO] http://localhost:61241/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:05]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:08]                 │ERROR browser[SEVERE] http://localhost:61241/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:08]                 │ debg browser[INFO] http://localhost:61241/login?msg=LOGGED_OUT 340 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:00:08]                 │
[00:00:08]                 │ debg browser[INFO] http://localhost:61241/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:08]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:08]                 │ERROR browser[SEVERE] http://localhost:61241/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:09]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:09]               └-: global graph all privileges
[00:00:09]                 └-> "before all" hook for "shows graph navlink"
[00:00:09]                 └-> "before all" hook for "shows graph navlink"
[00:00:09]                   │ debg creating role global_graph_all_role
[00:00:09]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] added role [global_graph_all_role]
[00:00:09]                   │ debg creating user global_graph_all_user
[00:00:09]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1622798437986821423] added user [global_graph_all_user]
[00:00:09]                   │ debg created user global_graph_all_user
[00:00:09]                   │ debg TestSubjects.exists(loginForm)
[00:00:09]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:09]                   │ debg Waiting for Login Form to appear.
[00:00:09]                   │ debg Waiting up to 100000ms for login form...
[00:00:09]                   │ debg TestSubjects.exists(loginForm)
[00:00:09]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:09]                   │ debg TestSubjects.setValue(loginUsername, global_graph_all_user)
[00:00:09]                   │ debg TestSubjects.click(loginUsername)
[00:00:09]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:09]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:09]                   │ debg TestSubjects.setValue(loginPassword, global_graph_all_user-password)
[00:00:09]                   │ debg TestSubjects.click(loginPassword)
[00:00:09]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:09]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:10]                   │ debg TestSubjects.click(loginSubmit)
[00:00:10]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:10]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:10]                   │ debg Waiting for login result, expected: undefined.
[00:00:10]                   │ debg Waiting up to 20000ms for logout button visible...
[00:00:10]                   │ debg TestSubjects.exists(userMenuButton)
[00:00:10]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:10]                   │ proc [kibana]   log   [09:51:53.438] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:12]                   │ debg browser[INFO] http://localhost:61241/app/home 340 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:00:12]                   │
[00:00:12]                   │ debg browser[INFO] http://localhost:61241/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:12]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:00:13]                   │ debg TestSubjects.exists(userMenuButton)
[00:00:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:13]                   │ proc [kibana]   log   [09:51:57.270] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:00:14]                   │ debg TestSubjects.exists(userMenu)
[00:00:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:16]                   │ERROR browser[SEVERE] http://localhost:61241/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:16]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:00:17]                   │ debg TestSubjects.click(userMenuButton)
[00:00:17]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:17]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:17]                   │ debg TestSubjects.exists(userMenu)
[00:00:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:00:17]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:00:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:00:17]                 └-> shows graph navlink
[00:00:17]                   └-> "before each" hook: global before each for "shows graph navlink"
[00:00:17]                   │ debg isGlobalLoadingIndicatorVisible
[00:00:17]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:18]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:19]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:19]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:19]                   │ debg TestSubjects.exists(collapsibleNav)
[00:00:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:00:21]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:00:22]                   │ debg TestSubjects.click(toggleNavButton)
[00:00:22]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:22]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:22]                   │ debg TestSubjects.find(collapsibleNav)
[00:00:22]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:00:22]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:00:22]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:22]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:22]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:22]                   └- ✓ pass  (5.6s) "graph app feature controls security global graph all privileges shows graph navlink"
[00:00:22]                 └-> landing page shows "Create new graph" button
[00:00:22]                   └-> "before each" hook: global before each for "landing page shows "Create new graph" button"
[00:00:22]                   │ debg navigating to graph url: http://localhost:61241/app/graph
[00:00:22]                   │ debg navigate to: http://localhost:61241/app/graph
[00:00:23]                   │ debg browser[INFO] http://localhost:61241/app/graph?_t=1622800326228 340 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:00:23]                   │
[00:00:23]                   │ debg browser[INFO] http://localhost:61241/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                   │ debg ... sleep(700) start
[00:00:23]                   │ debg ... sleep(700) end
[00:00:23]                   │ debg returned from get, calling refresh
[00:00:24]                   │ debg browser[INFO] http://localhost:61241/app/graph?_t=1622800326228 340 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:00:24]                   │
[00:00:24]                   │ debg browser[INFO] http://localhost:61241/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:24]                   │ debg currentUrl = http://localhost:61241/app/graph
[00:00:24]                   │          appUrl = http://localhost:61241/app/graph
[00:00:24]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:24]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:26]                   │ proc [kibana]   log   [09:52:09.385] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:00:26]                   │ debg ... sleep(501) start
[00:00:26]                   │ERROR browser[SEVERE] http://localhost:61241/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:26]                   │ debg ... sleep(501) end
[00:00:26]                   │ debg in navigateTo url = http://localhost:61241/app/graph#/home
[00:00:26]                   │ debg TestSubjects.exists(graphLandingPage)
[00:00:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="graphLandingPage"]') with timeout=10000
[00:00:26]                   │ debg TestSubjects.exists(graphCreateGraphPromptButton)
[00:00:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=120000
[00:00:26]                   └- ✓ pass  (3.8s) "graph app feature controls security global graph all privileges landing page shows "Create new graph" button"
[00:00:26]                 └-> doesn't show read-only badge
[00:00:26]                   └-> "before each" hook: global before each for "doesn't show read-only badge"
[00:00:26]                   │ debg TestSubjects.missingOrFail(headerBadge)
[00:00:26]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="headerBadge"]') with timeout=2500
[00:00:27]                   └- ✓ pass  (521ms) "graph app feature controls security global graph all privileges doesn't show read-only badge"
[00:00:27]                 └-> allows creating a new workspace
[00:00:27]                   └-> "before each" hook: global before each for "allows creating a new workspace"
[00:00:27]                   │ debg navigating to graph url: http://localhost:61241/app/graph
[00:00:27]                   │ debg navigate to: http://localhost:61241/app/graph
[00:00:27]                   │ debg browser[INFO] http://localhost:61241/app/graph?_t=1622800330542 340 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:00:27]                   │
[00:00:27]                   │ debg browser[INFO] http://localhost:61241/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:27]                   │ debg ... sleep(700) start
[00:00:28]                   │ debg ... sleep(700) end
[00:00:28]                   │ debg returned from get, calling refresh
[00:00:28]                   │ debg browser[INFO] http://localhost:61241/app/graph?_t=1622800330542 340 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:00:28]                   │
[00:00:28]                   │ debg browser[INFO] http://localhost:61241/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:28]                   │ debg currentUrl = http://localhost:61241/app/graph
[00:00:28]                   │          appUrl = http://localhost:61241/app/graph
[00:00:28]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:28]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:30]                   │ERROR browser[SEVERE] http://localhost:61241/api/licensing/info - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:00:30]                   │ERROR browser[SEVERE] http://localhost:61241/api/fleet/epm/packages?experimental=true - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:00:30]                   │ERROR browser[SEVERE] http://localhost:61241/internal/global_search/searchable_types - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:00:30]                   │ debg browser[INFO] http://localhost:61241/43254/bundles/core/core.entry.js 12:151725 "Detected an unhandled Promise rejection.
[00:00:30]                   │      TypeError: Failed to fetch"
[00:00:30]                   │ERROR browser[SEVERE] http://localhost:61241/43254/bundles/core/core.entry.js 5:2514 
[00:00:30]                   │ debg ... sleep(501) start
[00:00:30]                   │ debg ... sleep(501) end
[00:00:30]                   │ debg in navigateTo url = http://localhost:61241/app/home#/
[00:00:30]                   │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:00:31]                   │ debg ... sleep(501) start
[00:00:31]                   │ debg ... sleep(501) end
[00:00:31]                   │ debg in navigateTo url = http://localhost:61241/app/home#/
[00:00:31]                   │ debg TestSubjects.click(graphCreateGraphPromptButton)
[00:00:31]                   │ debg Find.clickByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:00:31]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:00:41]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:00:41]                   │      Wait timed out after 10038ms
[00:00:42]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:00:52]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:00:52]                   │      Wait timed out after 10017ms
[00:00:52]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:01:02]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:01:02]                   │      Wait timed out after 10011ms
[00:01:03]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:01:13]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:01:13]                   │      Wait timed out after 10043ms
[00:01:13]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:01:23]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:01:23]                   │      Wait timed out after 10024ms
[00:01:24]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:01:34]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:01:34]                   │      Wait timed out after 10060ms
[00:01:34]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:01:44]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:01:44]                   │      Wait timed out after 10043ms
[00:01:45]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:01:55]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:01:55]                   │      Wait timed out after 10011ms
[00:01:55]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:02:06]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:02:06]                   │      Wait timed out after 10044ms
[00:02:06]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:02:16]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:02:16]                   │      Wait timed out after 10008ms
[00:02:17]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:02:27]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:02:27]                   │      Wait timed out after 10009ms
[00:02:27]                   │ debg Find.findByCssSelector('[data-test-subj="graphCreateGraphPromptButton"]') with timeout=10000
[00:02:37]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:02:37]                   │      Wait timed out after 10053ms
[00:02:38]                   │ info Taking screenshot "/dev/shm/workspace/parallel/24/kibana/x-pack/test/functional/screenshots/failure/graph app feature controls security global graph all privileges allows creating a new workspace.png"
[00:02:38]                   │ info Current URL is: http://localhost:61241/app/home#/
[00:02:38]                   │ info Saving page source to: /dev/shm/workspace/parallel/24/kibana/x-pack/test/functional/failure_debug/html/graph app feature controls security global graph all privileges allows creating a new workspace.html
[00:02:38]                   └- ✖ fail: graph app feature controls security global graph all privileges allows creating a new workspace
[00:02:38]                   │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="graphCreateGraphPromptButton"])
[00:02:38]                   │ Wait timed out after 10053ms
[00:02:38]                   │     at /dev/shm/workspace/parallel/24/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:02:38]                   │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:02:38]                   │       at onFailure (/dev/shm/workspace/parallel/24/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:02:38]                   │       at retryForSuccess (/dev/shm/workspace/parallel/24/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:02:38]                   │       at RetryService.try (/dev/shm/workspace/parallel/24/kibana/test/common/services/retry/retry.ts:31:12)
[00:02:38]                   │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/24/kibana/test/functional/services/common/find.ts:360:5)
[00:02:38]                   │       at TestSubjects.click (/dev/shm/workspace/parallel/24/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:02:38]                   │       at Context.<anonymous> (test/functional/apps/graph/feature_controls/graph_security.ts:84:9)
[00:02:38]                   │       at Object.apply (/dev/shm/workspace/parallel/24/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:38]                   │ 
[00:02:38]                   │ 

Stack Trace

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

Metrics [docs]

✅ unchanged

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

@flash1293 flash1293 marked this pull request as ready for review June 4, 2021 11:11
@flash1293 flash1293 requested a review from a team June 4, 2021 11:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

LGTM!

@flash1293 flash1293 merged commit d62bb45 into elastic:master Jun 4, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 4, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 4, 2021
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants