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

security app rbac rbac all role can save a visualization #22722

Closed
liza-mae opened this issue Sep 5, 2018 · 2 comments
Closed

security app rbac rbac all role can save a visualization #22722

liza-mae opened this issue Sep 5, 2018 · 2 comments
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test medium test_xpack_functional test

Comments

@liza-mae
Copy link
Contributor

liza-mae commented Sep 5, 2018

Error: retry.try timeout: Error: retry.try timeout: [POST http://localhost:9515/session/4e6f4f50c8ae45727137adbeb927926c/element / {"using":"partial link text","value":"Vertical Bar"}] no such element: Unable to locate element: {"method":"partial link text","selector":"Vertical Bar"}
(Session info: chrome=68.0.3440.106)
(Driver info: chromedriver=2.41.578700 (2f1ed5f9343c13f73144538f15c00b370eda6706),platform=Linux 4.15.0-1018-gcp x86_64)
at Server._post (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/functional/services/remote/verbose_remote_logging.js:34:21)
at runRequest (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/leadfoot/Session.js:92:40)
at /var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/leadfoot/Session.js:113:39
at new Promise (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/dojo/_debug/Promise.ts:411:4)
at Session._post (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/leadfoot/Session.js:67:10)
at Session.find (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/leadfoot/Session.js:1328:15)
at Command. (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/leadfoot/Command.js:42:36)
at /var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/dojo/_debug/Promise.ts:393:16
at run (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/dojo/_debug/Promise.ts:237:8)
at /var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/dojo/_debug/nextTick.ts:44:4
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Command.find (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/leadfoot/Command.js:23:10)
at Command.prototype.(anonymous function) [as findByPartialLinkText] (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/node_modules/leadfoot/lib/strategies.js:29:16)
at _ensureElementWithTimeout (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/functional/services/find.js:160:29)
at retry.try (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/functional/services/find.js:51:33)
at runAttempt (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/common/services/retry/retry_for_success.js:39:21)
at retryForSuccess (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/common/services/retry/retry_for_success.js:67:37)
at
at lastError (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/common/services/retry/retry_for_success.js:29:9)
at retryForSuccess (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/common/services/retry/retry_for_success.js:63:13)
at
at lastError (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/common/services/retry/retry_for_success.js:29:9)
at retryForSuccess (/var/lib/jenkins/workspace/elastic+kibana+6.x+multijob-x-pack/kibana/test/common/services/retry/retry_for_success.js:63:13)
at

Branch: 6.x

@rashmivkulkarni
Copy link
Contributor

rashmivkulkarni commented Sep 6, 2018

ran this in a loop on 6.x ranch on my local and it passed everytime. Am also trying this on master and cloud.

 info Config loaded
 info Remote initialized
 info Starting tests

 └-: security app
   └-> "before all" hook
   └-: rbac 
     └-> "before all" hook
     └-> "before all" hook
       │ info [logstash_functional] Loading "mappings.json"
       │ info [logstash_functional] Loading "data.json.gz"
       │ info [logstash_functional] Created index "logstash-2015.09.22"
       │ info [logstash_functional] Created index "logstash-2015.09.20"
       │ info [logstash_functional] Created index "logstash-2015.09.21"
       │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
       │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
       │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
       │ info [discover] Loading "mappings.json"
       │ info [discover] Loading "data.json.gz"
       │ info [discover] Created index ".kibana"
       │ info [discover] Indexed 2 docs into ".kibana"
     └-> rbac all role can save a visualization
       └-> "before each" hook: global before each
       └- ✓ pass  (22.0s)
     └-> rbac read only role can not  save a visualization
       └-> "before each" hook: global before each
       └- ✓ pass  (20.6s)
     └-> "after all" hook
     └-> "after all" hook
   └-> "after all" hook


2 passing (2.0m)

@LeeDr
Copy link

LeeDr commented Sep 11, 2018

Fixed by: #22912

The problem appeared to be when the test logged out, and then logged in as a new user, that login method in security_page didn't wait for the page to load. So the next step would try to navigate to visualize/new and fail quite often.

@LeeDr LeeDr closed this as completed Sep 11, 2018
@liza-mae liza-mae added failed-test A test failure on a tracked branch, potentially flaky-test and removed flaky-failing-test labels Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test medium test_xpack_functional test
Projects
None yet
Development

No branches or pull requests

3 participants