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

Migrate savedObject management to new plugin #59110

Closed
wants to merge 12 commits into from

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Mar 3, 2020

Summary

Sandbox for #50308

Sandbox PR, to be split into smaller bits, see root issue.

@pgayvallet pgayvallet added Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.7.0 v8.0.0 labels Mar 3, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@kibanamachine
Copy link
Contributor

💔 Build Failed


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security·ts.Saved objects management feature controls saved objects management global all privileges listing shows all saved objects

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:13:49]         └-: Saved objects management
[00:13:49]           └-> "before all" hook
[00:13:49]           └-: feature controls saved objects management
[00:13:49]             └-> "before all" hook
[00:13:49]             └-> "before all" hook
[00:13:49]               │ info [saved_objects_management/feature_controls/security] Loading "mappings.json"
[00:13:49]               │ info [saved_objects_management/feature_controls/security] Loading "data.json"
[00:13:49]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/1J5BUTCyT3yfwBiWQB_1Pg] deleting index
[00:13:49]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_1/g1JTb1EgQzqMLsHUskJQ3A] deleting index
[00:13:49]               │ info [saved_objects_management/feature_controls/security] Deleted existing index [".kibana_2",".kibana_1"]
[00:13:49]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:13:49]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:13:49]               │ info [saved_objects_management/feature_controls/security] Created index ".kibana"
[00:13:49]               │ debg [saved_objects_management/feature_controls/security] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:13:49]               │ info [saved_objects_management/feature_controls/security] Indexed 4 docs into ".kibana"
[00:13:49]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana/2N13vYe9TUmBHl74xY1EoQ] update_mapping [_doc]
[00:13:49]               │ debg Migrating saved objects
[00:13:50]               │ proc [kibana]   log   [22:32:44.635] [info][savedobjects-service] Creating index .kibana_2.
[00:13:50]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:13:50]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] updating number_of_replicas to [0] for indices [.kibana_2]
[00:13:50]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:13:50]               │ proc [kibana]   log   [22:32:44.716] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:13:50]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:13:50]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] updating number_of_replicas to [0] for indices [.kibana_1]
[00:13:50]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:13:50]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] 19522 finished with response BulkByScrollResponse[took=44.7ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:13:51]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana/2N13vYe9TUmBHl74xY1EoQ] deleting index
[00:13:51]               │ proc [kibana]   log   [22:32:45.120] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:13:51]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/33piLHgJSXqcynsLzBLcXg] update_mapping [_doc]
[00:13:51]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/33piLHgJSXqcynsLzBLcXg] update_mapping [_doc]
[00:13:51]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/33piLHgJSXqcynsLzBLcXg] update_mapping [_doc]
[00:13:51]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/33piLHgJSXqcynsLzBLcXg] update_mapping [_doc]
[00:13:51]               │ proc [kibana]   log   [22:32:45.308] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:13:51]               │ proc [kibana]   log   [22:32:45.374] [info][savedobjects-service] Finished in 741ms.
[00:13:51]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:13:51]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/33piLHgJSXqcynsLzBLcXg] update_mapping [_doc]
[00:13:51]             └-: global all privileges
[00:13:51]               └-> "before all" hook
[00:13:51]               └-> "before all" hook
[00:13:51]                 │ debg creating role global_all_role
[00:13:51]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] added role [global_all_role]
[00:13:51]                 │ debg created role global_all_role
[00:13:51]                 │ debg creating user global_all_user
[00:13:51]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] added user [global_all_user]
[00:13:51]                 │ debg created user global_all_user
[00:13:51]                 │ debg SecurityPage.forceLogout
[00:13:51]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:13:52]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:13:52]                 │ debg Redirecting to /logout to force the logout
[00:13:52]                 │ debg Waiting on the login form to appear
[00:13:52]                 │ debg Waiting up to 100000ms for login form...
[00:13:52]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:13:52]                 │ debg browser[INFO] http://localhost:6121/logout?_t=1583447566559 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:13:52]                 │
[00:13:52]                 │ debg browser[INFO] http://localhost:6121/bundles/app/logout/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:55]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:32:49Z
[00:13:55]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:13:55]                 │
[00:13:55]                 │      "
[00:13:55]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:13:56]                 │ debg browser[INFO] http://localhost:6121/login?_t=1583447566559 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:13:56]                 │
[00:13:56]                 │ debg browser[INFO] http://localhost:6121/bundles/app/login/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:56]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:13:57]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:32:51Z
[00:13:57]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:13:57]                 │
[00:13:57]                 │      "
[00:13:57]                 │ debg navigating to login url: http://localhost:6121/login
[00:13:57]                 │ debg Navigate to: http://localhost:6121/login
[00:13:57]                 │ debg ... sleep(700) start
[00:13:58]                 │ debg browser[INFO] http://localhost:6121/login?_t=1583447571795 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:13:58]                 │
[00:13:58]                 │ debg browser[INFO] http://localhost:6121/bundles/app/login/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:58]                 │ debg ... sleep(700) end
[00:13:58]                 │ debg returned from get, calling refresh
[00:13:59]                 │ debg browser[INFO] http://localhost:6121/login?_t=1583447571795 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:13:59]                 │
[00:13:59]                 │ debg browser[INFO] http://localhost:6121/bundles/app/login/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:59]                 │ debg currentUrl = http://localhost:6121/login
[00:13:59]                 │          appUrl = http://localhost:6121/login
[00:13:59]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:01]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:32:55Z
[00:14:01]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:14:01]                 │
[00:14:01]                 │      "
[00:14:01]                 │ debg ... sleep(501) start
[00:14:02]                 │ debg ... sleep(501) end
[00:14:02]                 │ debg in navigateTo url = http://localhost:6121/login#/
[00:14:02]                 │ debg TestSubjects.exists(statusPageContainer)
[00:14:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:14:04]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:14:05]                 │ debg TestSubjects.setValue(loginUsername, global_all_user)
[00:14:05]                 │ debg TestSubjects.click(loginUsername)
[00:14:05]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:05]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:05]                 │ debg TestSubjects.setValue(loginPassword, global_all_user-password)
[00:14:05]                 │ debg TestSubjects.click(loginPassword)
[00:14:05]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:05]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:05]                 │ debg TestSubjects.click(loginSubmit)
[00:14:05]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:05]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:06]                 │ debg Waiting up to 20000ms for logout button visible...
[00:14:06]                 │ debg TestSubjects.exists(userMenuButton)
[00:14:06]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:14:09]                 │ debg browser[INFO] http://localhost:6121/app/kibana 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:14:09]                 │
[00:14:09]                 │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:09]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:14:09]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:33:03Z
[00:14:09]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:14:09]                 │
[00:14:09]                 │      "
[00:14:10]                 │ debg TestSubjects.exists(userMenuButton)
[00:14:10]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:14:11]                 │ debg TestSubjects.exists(userMenu)
[00:14:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:14:14]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:14:14]                 │ debg TestSubjects.click(userMenuButton)
[00:14:14]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:14]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:14]                 │ debg Waiting up to 20000ms for user menu opened...
[00:14:14]                 │ debg TestSubjects.exists(userMenu)
[00:14:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:14:14]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:14:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:14:14]               └-: listing
[00:14:14]                 └-> "before all" hook
[00:14:14]                 └-> "before all" hook
[00:14:14]                   │ debg navigating to settings url: http://localhost:6121/app/kibana#/management
[00:14:14]                   │ debg Navigate to: http://localhost:6121/app/kibana#/management
[00:14:14]                   │ debg ... sleep(700) start
[00:14:14]                   │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1583447588753#/management 350 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:14]                   │
[00:14:14]                   │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:15]                   │ debg ... sleep(700) end
[00:14:15]                   │ debg returned from get, calling refresh
[00:14:16]                   │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1583447588753#/management 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:14:16]                   │
[00:14:16]                   │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:16]                   │ debg currentUrl = http://localhost:6121/app/kibana#/management
[00:14:16]                   │          appUrl = http://localhost:6121/app/kibana#/management
[00:14:16]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:20]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:20]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:14:20]                   │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:33:12Z
[00:14:20]                   │        Adding connection to http://localhost:6121/elasticsearch
[00:14:20]                   │
[00:14:20]                   │      "
[00:14:20]                   │ debg ... sleep(501) start
[00:14:20]                   │ debg ... sleep(501) end
[00:14:20]                   │ debg in navigateTo url = http://localhost:6121/app/kibana#/management?_g=()
[00:14:20]                   │ debg TestSubjects.exists(statusPageContainer)
[00:14:20]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:14:23]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:14:23]                   │ debg TestSubjects.click(objects)
[00:14:23]                   │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:14:23]                   │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:14:24]                 └-> shows all saved objects
[00:14:24]                   └-> "before each" hook: global before each
[00:14:24]                   │ debg TestSubjects.find(savedObjectsTable)
[00:14:24]                   │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:14:24]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Saved objects management feature controls saved objects management global all privileges listing shows all saved objects.png"
[00:14:24]                   │ info Current URL is: http://localhost:6121/app/kibana#/management/kibana/objects?_g=()
[00:14:24]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Saved objects management feature controls saved objects management global all privileges listing shows all saved objects.html
[00:14:24]                   └- ✖ fail: "Saved objects management feature controls saved objects management global all privileges listing shows all saved objects"
[00:14:24]                   │

Stack Trace

{ Error: expected [ 'A Dashboard', 'logstash-*', 'A Pie' ] to sort of equal [ 'Advanced Settings [6.0.0]',
  'Advanced Settings [8.0.0-SNAPSHOT]',
  'A Dashboard',
  'logstash-*',
  'A Pie' ]
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security.ts:70:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  actual: '[\n  "A Dashboard"\n  "logstash-*"\n  "A Pie"\n]',
  expected:
   '[\n  "Advanced Settings [6.0.0]"\n  "Advanced Settings [8.0.0-SNAPSHOT]"\n  "A Dashboard"\n  "logstash-*"\n  "A Pie"\n]',
  showDiff: true }

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security·ts.Saved objects management feature controls saved objects management global all privileges listing shows all saved objects

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:14:01]         └-: Saved objects management
[00:14:01]           └-> "before all" hook
[00:14:01]           └-: feature controls saved objects management
[00:14:01]             └-> "before all" hook
[00:14:01]             └-> "before all" hook
[00:14:01]               │ info [saved_objects_management/feature_controls/security] Loading "mappings.json"
[00:14:01]               │ info [saved_objects_management/feature_controls/security] Loading "data.json"
[00:14:01]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/n6P7louIS6qlAGzrYQik8g] deleting index
[00:14:01]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_1/Lf63KHfiRem2JIugaDdBUQ] deleting index
[00:14:01]               │ info [saved_objects_management/feature_controls/security] Deleted existing index [".kibana_2",".kibana_1"]
[00:14:01]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:14:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:14:01]               │ info [saved_objects_management/feature_controls/security] Created index ".kibana"
[00:14:01]               │ debg [saved_objects_management/feature_controls/security] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:14:01]               │ info [saved_objects_management/feature_controls/security] Indexed 4 docs into ".kibana"
[00:14:01]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana/WRlbUt1_RrupQBJS_PSs1w] update_mapping [_doc]
[00:14:01]               │ debg Migrating saved objects
[00:14:02]               │ proc [kibana]   log   [22:15:43.467] [info][savedobjects-service] Creating index .kibana_2.
[00:14:02]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:14:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] updating number_of_replicas to [0] for indices [.kibana_2]
[00:14:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:14:02]               │ proc [kibana]   log   [22:15:43.554] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:14:02]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:14:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] updating number_of_replicas to [0] for indices [.kibana_1]
[00:14:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:14:02]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] 19648 finished with response BulkByScrollResponse[took=56.5ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:14:03]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana/WRlbUt1_RrupQBJS_PSs1w] deleting index
[00:14:03]               │ proc [kibana]   log   [22:15:43.969] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:14:03]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/dGE7G2WZQnqoIsVJdRUXUQ] update_mapping [_doc]
[00:14:03]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/dGE7G2WZQnqoIsVJdRUXUQ] update_mapping [_doc]
[00:14:03]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/dGE7G2WZQnqoIsVJdRUXUQ] update_mapping [_doc]
[00:14:03]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/dGE7G2WZQnqoIsVJdRUXUQ] update_mapping [_doc]
[00:14:03]               │ proc [kibana]   log   [22:15:44.198] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:14:03]               │ proc [kibana]   log   [22:15:44.302] [info][savedobjects-service] Finished in 837ms.
[00:14:03]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:14:03]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] [.kibana_2/dGE7G2WZQnqoIsVJdRUXUQ] update_mapping [_doc]
[00:14:03]             └-: global all privileges
[00:14:03]               └-> "before all" hook
[00:14:03]               └-> "before all" hook
[00:14:03]                 │ debg creating role global_all_role
[00:14:03]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] added role [global_all_role]
[00:14:03]                 │ debg created role global_all_role
[00:14:03]                 │ debg creating user global_all_user
[00:14:04]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xl-1583443479714487502] added user [global_all_user]
[00:14:04]                 │ debg created user global_all_user
[00:14:04]                 │ debg SecurityPage.forceLogout
[00:14:04]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:14:04]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:14:04]                 │ debg Redirecting to /logout to force the logout
[00:14:04]                 │ debg Waiting on the login form to appear
[00:14:04]                 │ debg Waiting up to 100000ms for login form...
[00:14:04]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:14:04]                 │ debg browser[INFO] http://localhost:6121/logout?_t=1583446545462 350 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:04]                 │
[00:14:04]                 │ debg browser[INFO] http://localhost:6121/bundles/app/logout/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:07]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:15:48Z
[00:14:07]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:14:07]                 │
[00:14:07]                 │      "
[00:14:07]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:14:08]                 │ debg browser[INFO] http://localhost:6121/login?_t=1583446545462 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:14:08]                 │
[00:14:08]                 │ debg browser[INFO] http://localhost:6121/bundles/app/login/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:08]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:14:09]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:15:50Z
[00:14:09]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:14:09]                 │
[00:14:09]                 │      "
[00:14:09]                 │ debg navigating to login url: http://localhost:6121/login
[00:14:09]                 │ debg Navigate to: http://localhost:6121/login
[00:14:10]                 │ debg ... sleep(700) start
[00:14:10]                 │ debg browser[INFO] http://localhost:6121/login?_t=1583446550747 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:14:10]                 │
[00:14:10]                 │ debg browser[INFO] http://localhost:6121/bundles/app/login/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:10]                 │ debg ... sleep(700) end
[00:14:10]                 │ debg returned from get, calling refresh
[00:14:11]                 │ debg browser[INFO] http://localhost:6121/login?_t=1583446550747 350 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:11]                 │
[00:14:11]                 │ debg browser[INFO] http://localhost:6121/bundles/app/login/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:11]                 │ debg currentUrl = http://localhost:6121/login
[00:14:11]                 │          appUrl = http://localhost:6121/login
[00:14:11]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:14]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:15:54Z
[00:14:14]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:14:14]                 │
[00:14:14]                 │      "
[00:14:14]                 │ debg ... sleep(501) start
[00:14:14]                 │ debg ... sleep(501) end
[00:14:15]                 │ debg in navigateTo url = http://localhost:6121/login#/
[00:14:15]                 │ debg TestSubjects.exists(statusPageContainer)
[00:14:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:14:17]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:14:18]                 │ debg TestSubjects.setValue(loginUsername, global_all_user)
[00:14:18]                 │ debg TestSubjects.click(loginUsername)
[00:14:18]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:18]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:14:18]                 │ debg TestSubjects.setValue(loginPassword, global_all_user-password)
[00:14:18]                 │ debg TestSubjects.click(loginPassword)
[00:14:18]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:18]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:14:18]                 │ debg TestSubjects.click(loginSubmit)
[00:14:18]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:18]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:14:18]                 │ debg Waiting up to 20000ms for logout button visible...
[00:14:18]                 │ debg TestSubjects.exists(userMenuButton)
[00:14:18]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:14:22]                 │ debg browser[INFO] http://localhost:6121/app/kibana 350 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:22]                 │
[00:14:22]                 │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:22]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:14:23]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:16:03Z
[00:14:23]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:14:23]                 │
[00:14:23]                 │      "
[00:14:23]                 │ debg TestSubjects.exists(userMenuButton)
[00:14:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:14:24]                 │ debg TestSubjects.exists(userMenu)
[00:14:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:14:27]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:14:27]                 │ debg TestSubjects.click(userMenuButton)
[00:14:27]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:27]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:14:27]                 │ debg Waiting up to 20000ms for user menu opened...
[00:14:27]                 │ debg TestSubjects.exists(userMenu)
[00:14:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:14:28]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:14:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:14:28]               └-: listing
[00:14:28]                 └-> "before all" hook
[00:14:28]                 └-> "before all" hook
[00:14:28]                   │ debg navigating to settings url: http://localhost:6121/app/kibana#/management
[00:14:28]                   │ debg Navigate to: http://localhost:6121/app/kibana#/management
[00:14:28]                   │ debg ... sleep(700) start
[00:14:28]                   │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1583446568842#/management 350 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:28]                   │
[00:14:28]                   │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:28]                   │ debg ... sleep(700) end
[00:14:28]                   │ debg returned from get, calling refresh
[00:14:29]                   │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1583446568842#/management 350 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:29]                   │
[00:14:29]                   │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:29]                   │ debg currentUrl = http://localhost:6121/app/kibana#/management
[00:14:29]                   │          appUrl = http://localhost:6121/app/kibana#/management
[00:14:29]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:34]                   │ debg TestSubjects.find(kibanaChrome)
[00:14:34]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:14:34]                   │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-05T22:16:13Z
[00:14:34]                   │        Adding connection to http://localhost:6121/elasticsearch
[00:14:34]                   │
[00:14:34]                   │      "
[00:14:34]                   │ debg ... sleep(501) start
[00:14:35]                   │ debg ... sleep(501) end
[00:14:35]                   │ debg in navigateTo url = http://localhost:6121/app/kibana#/management?_g=()
[00:14:35]                   │ debg TestSubjects.exists(statusPageContainer)
[00:14:35]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:14:37]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:14:38]                   │ debg TestSubjects.click(objects)
[00:14:38]                   │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:14:38]                   │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:14:38]                 └-> shows all saved objects
[00:14:38]                   └-> "before each" hook: global before each
[00:14:38]                   │ debg TestSubjects.find(savedObjectsTable)
[00:14:38]                   │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:14:38]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Saved objects management feature controls saved objects management global all privileges listing shows all saved objects.png"
[00:14:39]                   │ info Current URL is: http://localhost:6121/app/kibana#/management/kibana/objects?_g=()
[00:14:39]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Saved objects management feature controls saved objects management global all privileges listing shows all saved objects.html
[00:14:39]                   └- ✖ fail: "Saved objects management feature controls saved objects management global all privileges listing shows all saved objects"
[00:14:39]                   │

Stack Trace

{ Error: expected [ 'A Dashboard', 'logstash-*', 'A Pie' ] to sort of equal [ 'Advanced Settings [6.0.0]',
  'Advanced Settings [8.0.0-SNAPSHOT]',
  'A Dashboard',
  'logstash-*',
  'A Pie' ]
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/functional/apps/saved_objects_management/feature_controls/saved_objects_management_security.ts:70:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  actual: '[\n  "A Dashboard"\n  "logstash-*"\n  "A Pie"\n]',
  expected:
   '[\n  "Advanced Settings [6.0.0]"\n  "Advanced Settings [8.0.0-SNAPSHOT]"\n  "A Dashboard"\n  "logstash-*"\n  "A Pie"\n]',
  showDiff: true }

History

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

@pgayvallet
Copy link
Contributor Author

Closing in favor of #61700

@pgayvallet pgayvallet closed this Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants