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

Add "coerce" to dev tools autocomplete #56862

Merged
merged 2 commits into from
Feb 12, 2020
Merged

Add "coerce" to dev tools autocomplete #56862

merged 2 commits into from
Feb 12, 2020

Conversation

AndyHunt66
Copy link
Contributor

@AndyHunt66 AndyHunt66 commented Feb 5, 2020

Fixes #56861

For maintainers

@AndyHunt66 AndyHunt66 requested a review from jloleysens February 5, 2020 15:44
@cjcenizal cjcenizal added Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more labels Feb 5, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@cjcenizal
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security·ts.Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings; redirects to management home

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Advanced Settings
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: security feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[00:00:00]               │ info [empty_kibana] Loading "mappings.json"
[00:00:00]               │ info [empty_kibana] Loading "data.json.gz"
[00:00:00]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana_1/eGgEa62CSdms74WXPeFEsQ] deleting index
[00:00:00]               │ info [empty_kibana] Deleted existing index [".kibana_1"]
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[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]               │ info [empty_kibana] Indexed 2 docs into ".kibana"
[00:00:41]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana/fv8rkKJVQ9G61b6OKmR7og] update_mapping [_doc]
[00:00:43]               │ info Creating index .kibana_2.
[00:00:43]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:43]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:43]               │ info Reindexing .kibana to .kibana_1
[00:00:43]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:43]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:44]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:44]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] updating number_of_replicas to [0] for indices [.tasks]
[00:00:44]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] 793 finished with response BulkByScrollResponse[took=107.1ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:44]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana/fv8rkKJVQ9G61b6OKmR7og] deleting index
[00:00:44]               │ info Migrating .kibana_1 saved objects to .kibana_2
[00:00:44]               │ debg Migrating saved objects config:6.0.0-alpha1, space:default, maps-telemetry:maps-telemetry, config:8.0.0-SNAPSHOT
[00:00:44]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana_2/zLmgZjyPSgKa_Gs3sdN71Q] update_mapping [_doc]
[00:00:44]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana_2/zLmgZjyPSgKa_Gs3sdN71Q] update_mapping [_doc]
[00:00:44]               │ info Pointing alias .kibana to .kibana_2.
[00:00:45]               │ info Finished in 1334ms.
[00:00:45]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:45]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] [.kibana_2/zLmgZjyPSgKa_Gs3sdN71Q] update_mapping [_doc]
[00:02:21]             └-: no advanced_settings privileges
[00:02:21]               └-> "before all" hook
[00:02:21]               └-> "before all" hook
[00:02:21]                 │ debg creating role no_advanced_settings_privileges_role
[00:02:21]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] added role [no_advanced_settings_privileges_role]
[00:02:21]                 │ debg created role no_advanced_settings_privileges_role
[00:02:21]                 │ debg creating user no_advanced_settings_privileges_user
[00:02:21]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1581538463942328131] added user [no_advanced_settings_privileges_user]
[00:02:21]                 │ debg created user no_advanced_settings_privileges_user
[00:02:21]                 │ debg navigating to login url: http://localhost:6131/login
[00:02:21]                 │ debg Navigate to: http://localhost:6131/login
[00:02:21]                 │ proc [kibana]   log   [20:47:06.278] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] unable to authenticate user [global_advanced_settings_read_user] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } }
[00:02:21]                 │ debg ... sleep(700) start
[00:02:21]                 │ERROR browser[SEVERE] http://localhost:6131/ - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:22]                 │ debg ... sleep(700) end
[00:02:22]                 │ debg returned from get, calling refresh
[00:02:22]                 │ debg browser[INFO] http://localhost:6131/login?next=%2F 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:02:22]                 │
[00:02:22]                 │ debg browser[INFO] http://localhost:6131/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:22]                 │ debg currentUrl = http://localhost:6131/login?next=%2F
[00:02:22]                 │          appUrl = http://localhost:6131/login
[00:02:22]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:27]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 582:139970 "INFO: 2020-02-12T20:47:11Z
[00:02:27]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:27]                 │
[00:02:27]                 │      "
[00:02:27]                 │ debg ... sleep(501) start
[00:02:27]                 │ debg ... sleep(501) end
[00:02:27]                 │ debg in navigateTo url = http://localhost:6131/login?next=%2F#/
[00:02:27]                 │ debg TestSubjects.exists(statusPageContainer)
[00:02:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:30]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:30]                 │ debg TestSubjects.setValue(loginUsername, no_advanced_settings_privileges_user)
[00:02:30]                 │ debg TestSubjects.click(loginUsername)
[00:02:30]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:30]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:31]                 │ debg TestSubjects.setValue(loginPassword, no_advanced_settings_privileges_user-password)
[00:02:31]                 │ debg TestSubjects.click(loginPassword)
[00:02:31]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:31]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:31]                 │ debg TestSubjects.click(loginSubmit)
[00:02:31]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:31]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:32]                 │ debg Waiting up to 20000ms for logout button visible...
[00:02:32]                 │ debg TestSubjects.exists(userMenuButton)
[00:02:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:02:34]                 │ debg browser[INFO] http://localhost:6131/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:02:34]                 │
[00:02:34]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:34]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:02:35]                 │ debg TestSubjects.exists(userMenuButton)
[00:02:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:02:37]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 582:139970 "INFO: 2020-02-12T20:47:20Z
[00:02:37]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:37]                 │
[00:02:37]                 │      "
[00:02:37]                 │ debg TestSubjects.exists(userMenu)
[00:02:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:02:40]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:02:40]                 │ debg TestSubjects.click(userMenuButton)
[00:02:40]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:02:40]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:02:41]                 │ debg Waiting up to 20000ms for user menu opened...
[00:02:41]                 │ debg TestSubjects.exists(userMenu)
[00:02:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:02:41]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:02:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:02:41]               └-> shows Management navlink
[00:02:41]                 └-> "before each" hook: global before each
[00:02:41]                 │ debg TestSubjects.find(navDrawer)
[00:02:41]                 │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:02:41]                 └- ✓ pass  (42ms) "Advanced Settings security feature controls no advanced_settings privileges shows Management navlink"
[00:02:41]               └-> does not allow navigation to advanced settings; redirects to management home
[00:02:41]                 └-> "before each" hook: global before each
[00:02:41]                 │ debg navigateToActualUrl http://localhost:6131/app/kibana#management/kibana/settings
[00:02:41]                 │ debg browser[INFO] http://localhost:6131/app/kibana?_t=1581540445950#management/kibana/settings 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:02:41]                 │
[00:02:41]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:41]                 │ debg TestSubjects.exists(managementHome)
[00:02:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="managementHome"]') with timeout=10000
[00:02:43]                 │ debg --- retry.tryForTime error: [data-test-subj="managementHome"] is not displayed
[00:02:47]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 582:139970 "INFO: 2020-02-12T20:47:30Z
[00:02:47]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:47]                 │
[00:02:47]                 │      "
[00:02:47]                 │ debg browser[INFO] http://localhost:6131/app/kibana#/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:02:47]                 │
[00:02:47]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:51]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:51]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings_ redirects to management home.png"
[00:02:53]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 582:139970 "INFO: 2020-02-12T20:47:36Z
[00:02:53]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:53]                 │
[00:02:53]                 │      "
[00:02:53]                 │ info Current URL is: http://localhost:6131/app/kibana#/management?_g=()
[00:02:53]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings_ redirects to management home.html
[00:02:53]                 └- ✖ fail: "Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings; redirects to management home"
[00:02:53]                 │

Stack Trace

Error: expected testSubject(managementHome) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/test_subjects.ts:60:15)

History

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

cjcenizal added a commit that referenced this pull request Feb 12, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 13, 2020
…ibana into backport/7.x/pr-57404

* 'backport/7.x/pr-57404' of https://github.com/gmmorris/kibana:
  [Maps] Autocomplete for custom color palettes and custom icon palettes (elastic#56446) (elastic#57504)
  Add "coerce" to dev tools autocomplete (elastic#56862) (elastic#57498)
  [DOCS] Fixes typo in release highlights (elastic#57487)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"coerce" is not suggested by autocomplete in Dev Tools
5 participants