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

Unskip xpack functional security management test #90114

Conversation

rashmivkulkarni
Copy link
Contributor

Trying to resolve a skipped test #61173

@kibanamachine
Copy link
Contributor

kibanamachine commented Feb 3, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/security/management·js.security app Management Security navigation Can navigate to create user section

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: security app
[00:00:00]           └-> "before all" hook
[00:02:14]           └-: Management
[00:02:14]             └-> "before all" hook
[00:02:14]             └-> "before all" hook
[00:02:14]               │ debg SecurityPage:initTests
[00:02:14]               │ info [empty_kibana] Loading "mappings.json"
[00:02:14]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_1/HZXeSmVmR7CS7d37OgknNg] deleting index
[00:02:14]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_2/gJHIEZ8zQ9mEuLeFNDspaQ] deleting index
[00:02:14]               │ info [empty_kibana] Deleted existing index [".kibana_2",".kibana_1"]
[00:02:14]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:02:14]               │ info [empty_kibana] Created index ".kibana"
[00:02:14]               │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:02:14]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana/mUPFiRjRTiuvk3TRNnGsIw] update_mapping [_doc]
[00:02:14]               │ debg Migrating saved objects
[00:02:14]               │ proc [kibana]   log   [03:23:48.329] [info][savedobjects-service] Creating index .kibana_2.
[00:02:14]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:02:14]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] updating number_of_replicas to [0] for indices [.kibana_2]
[00:02:14]               │ proc [kibana]   log   [03:23:48.431] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:02:14]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:02:14]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] updating number_of_replicas to [0] for indices [.kibana_1]
[00:02:14]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] 4986 finished with response BulkByScrollResponse[took=3.2ms,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:02:14]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana/mUPFiRjRTiuvk3TRNnGsIw] deleting index
[00:02:14]               │ proc [kibana]   log   [03:23:48.823] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:02:14]               │ proc [kibana]   log   [03:23:48.831] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:02:14]               │ proc [kibana]   log   [03:23:48.873] [info][savedobjects-service] Finished in 547ms.
[00:02:14]               │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:02:14]               │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:02:14]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:02:15]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_2/sGpMjGiqR_-BZHWsPtk_tA] update_mapping [_doc]
[00:02:16]               │ info [logstash_functional] Loading "mappings.json"
[00:02:16]               │ info [logstash_functional] Loading "data.json.gz"
[00:02:16]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:02:16]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:02:16]               │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:16]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:02:16]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:02:16]               │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:16]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:02:16]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:02:16]               │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:26]               │ info progress: 11038
[00:02:28]               │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:02:28]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:02:28]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:02:29]               │ debg applying update to kibana config: {"defaultIndex":"logstash-*"}
[00:02:29]               │ debg navigating to settings url: http://localhost:61191/app/management
[00:02:29]               │ debg navigate to: http://localhost:61191/app/management
[00:02:29]               │ debg browser[INFO] http://localhost:61191/login?next=%2Fapp%2Fmanagement%3F_t%3D1612322643423 341 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:29]               │
[00:02:29]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:29]               │ debg ... sleep(700) start
[00:02:30]               │ debg ... sleep(700) end
[00:02:30]               │ debg returned from get, calling refresh
[00:02:30]               │ERROR browser[SEVERE] http://localhost:61191/40097/bundles/core/core.entry.js 12:158432 TypeError: Failed to fetch
[00:02:30]               │          at fetch_Fetch.fetchResponse (http://localhost:61191/40097/bundles/core/core.entry.js:6:32451)
[00:02:30]               │          at async interceptResponse (http://localhost:61191/40097/bundles/core/core.entry.js:6:28637)
[00:02:30]               │          at async http://localhost:61191/40097/bundles/core/core.entry.js:6:31117
[00:02:30]               │ debg browser[INFO] http://localhost:61191/login?next=%2Fapp%2Fmanagement%3F_t%3D1612322643423 341 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:30]               │
[00:02:30]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:30]               │ debg currentUrl = http://localhost:61191/login?next=%2Fapp%2Fmanagement%3F_t%3D1612322643423
[00:02:30]               │          appUrl = http://localhost:61191/app/management
[00:02:30]               │ debg TestSubjects.find(kibanaChrome)
[00:02:30]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:31]               │ debg Found login page
[00:02:31]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:02:31]               │ debg TestSubjects.click(loginUsername)
[00:02:31]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:31]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:31]               │ERROR browser[SEVERE] http://localhost:61191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:31]               │ debg browser[INFO] http://localhost:61191/40097/bundles/core/core.entry.js 12:159380 "Detected an unhandled Promise rejection.
[00:02:31]               │      Error: Unauthorized"
[00:02:31]               │ERROR browser[SEVERE] http://localhost:61191/40097/bundles/core/core.entry.js 5:3002 
[00:02:32]               │ERROR browser[SEVERE] http://localhost:61191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:32]               │ERROR browser[SEVERE] http://localhost:61191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:32]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:02:32]               │ debg TestSubjects.click(loginPassword)
[00:02:32]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:32]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:32]               │ debg TestSubjects.click(loginSubmit)
[00:02:32]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:32]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:32]               │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:02:32]               │ proc [kibana]   log   [03:24:06.409] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:02:33]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:33]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:02:34]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322643423 341 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:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:34]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322648464 341 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:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:35]               │ debg Finished login process currentUrl = http://localhost:61191/app/management
[00:02:35]               │ debg ... sleep(501) start
[00:02:35]               │ debg ... sleep(501) end
[00:02:35]               │ debg in navigateTo url = http://localhost:61191/app/management
[00:02:35]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:35]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:38]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:38]               │ debg TestSubjects.click(roles)
[00:02:38]               │ debg Find.clickByCssSelector('[data-test-subj="roles"]') with timeout=10000
[00:02:38]               │ debg Find.findByCssSelector('[data-test-subj="roles"]') with timeout=10000
[00:02:38]               │ debg TestSubjects.click(createRoleButton)
[00:02:39]               │ debg Find.clickByCssSelector('[data-test-subj="createRoleButton"]') with timeout=10000
[00:02:39]               │ debg Find.findByCssSelector('[data-test-subj="createRoleButton"]') with timeout=10000
[00:02:39]               │ debg TestSubjects.setValue(roleFormNameInput, logstash-readonly)
[00:02:39]               │ debg TestSubjects.click(roleFormNameInput)
[00:02:39]               │ debg Find.clickByCssSelector('[data-test-subj="roleFormNameInput"]') with timeout=10000
[00:02:39]               │ debg Find.findByCssSelector('[data-test-subj="roleFormNameInput"]') with timeout=10000
[00:02:39]               │ debg Adding index logstash-* to role
[00:02:39]               │ debg comboBox.setCustom, comboBoxSelector: indicesInput0, value: logstash-*
[00:02:39]               │ debg TestSubjects.find(indicesInput0)
[00:02:39]               │ debg Find.findByCssSelector('[data-test-subj="indicesInput0"]') with timeout=10000
[00:02:42]               │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:02:42]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:02:42]               │ debg Adding privilege read to role
[00:02:42]               │ debg Find.findByCssSelector('[data-test-subj="privilegesInput0"] input') with timeout=10000
[00:02:42]               │ debg Find.byButtonText('read') with timeout=10000
[00:02:42]               │ debg TestSubjects.find(roleFormSaveButton)
[00:02:42]               │ debg Find.findByCssSelector('[data-test-subj="roleFormSaveButton"]') with timeout=10000
[00:02:43]               │ debg isGlobalLoadingIndicatorVisible
[00:02:43]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:43]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:43]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] added role [logstash-readonly]
[00:02:44]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:45]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:45]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:45]               │ debg navigating to settings url: http://localhost:61191/app/management
[00:02:45]               │ debg navigate to: http://localhost:61191/app/management
[00:02:45]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322659164 341 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:45]               │
[00:02:45]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:45]               │ debg ... sleep(700) start
[00:02:46]               │ debg ... sleep(700) end
[00:02:46]               │ debg returned from get, calling refresh
[00:02:46]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322659164 341 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:46]               │
[00:02:46]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:47]               │ debg currentUrl = http://localhost:61191/app/management
[00:02:47]               │          appUrl = http://localhost:61191/app/management
[00:02:47]               │ debg TestSubjects.find(kibanaChrome)
[00:02:47]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:47]               │ debg ... sleep(501) start
[00:02:48]               │ debg ... sleep(501) end
[00:02:48]               │ debg in navigateTo url = http://localhost:61191/app/management
[00:02:48]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:50]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:51]             └-: Security
[00:02:51]               └-> "before all" hook
[00:02:51]               └-: navigation
[00:02:51]                 └-> "before all" hook
[00:02:51]                 └-> Can navigate to create user section
[00:02:51]                   └-> "before each" hook: global before each
[00:02:51]                   │ debg navigating to settings url: http://localhost:61191/app/management
[00:02:51]                   │ debg navigate to: http://localhost:61191/app/management
[00:02:51]                   │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322664985 341 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:51]                   │
[00:02:51]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:51]                   │ debg ... sleep(700) start
[00:02:51]                   │ debg ... sleep(700) end
[00:02:51]                   │ debg returned from get, calling refresh
[00:02:52]                   │ERROR browser[SEVERE] http://localhost:61191/40097/bundles/core/core.entry.js 12:158432 TypeError: Failed to fetch
[00:02:52]                   │          at fetch_Fetch.fetchResponse (http://localhost:61191/40097/bundles/core/core.entry.js:6:32451)
[00:02:52]                   │          at async interceptResponse (http://localhost:61191/40097/bundles/core/core.entry.js:6:28637)
[00:02:52]                   │          at async http://localhost:61191/40097/bundles/core/core.entry.js:6:31117
[00:02:52]                   │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322664985 341 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:52]                   │
[00:02:52]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:53]                   │ debg currentUrl = http://localhost:61191/app/management
[00:02:53]                   │          appUrl = http://localhost:61191/app/management
[00:02:53]                   │ debg TestSubjects.find(kibanaChrome)
[00:02:53]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:53]                   │ debg ... sleep(501) start
[00:02:53]                   │ debg ... sleep(501) end
[00:02:53]                   │ debg in navigateTo url = http://localhost:61191/app/management
[00:02:53]                   │ debg TestSubjects.exists(statusPageContainer)
[00:02:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:56]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:56]                   │ debg TestSubjects.click(users)
[00:02:56]                   │ debg Find.clickByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:02:56]                   │ debg Find.findByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:02:57]                   │ debg TestSubjects.click(createUserButton)
[00:02:57]                   │ debg Find.clickByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:02:57]                   │ debg Find.findByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:02:57]                   │ info Taking screenshot "/dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/screenshots/failure/security app Management Security navigation Can navigate to create user section.png"
[00:02:57]                   │ info Current URL is: http://localhost:61191/app/management/security/users/create
[00:02:57]                   │ info Saving page source to: /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/failure_debug/html/security app Management Security navigation Can navigate to create user section.html
[00:02:57]                   └- ✖ fail: security app Management Security navigation Can navigate to create user section
[00:02:57]                   │      Error: expected 'http://localhost:61191/app/management/security/users/create' to contain 'security/users/edit'
[00:02:57]                   │       at Assertion.assert (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:100:11)
[00:02:57]                   │       at Assertion.contain (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:442:10)
[00:02:57]                   │       at Context.<anonymous> (test/functional/apps/security/management.js:51:33)
[00:02:57]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:02:57]                   │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:57]                   │ 
[00:02:57]                   │ 

Stack Trace

Error: expected 'http://localhost:61191/app/management/security/users/create' to contain 'security/users/edit'
    at Assertion.assert (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.contain (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:442:10)
    at Context.<anonymous> (test/functional/apps/security/management.js:51:33)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/security/management·js.security app Management Security navigation Can navigate to create user section

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: security app
[00:00:00]           └-> "before all" hook
[00:02:24]           └-: Management
[00:02:24]             └-> "before all" hook
[00:02:24]             └-> "before all" hook
[00:02:24]               │ debg SecurityPage:initTests
[00:02:24]               │ info [empty_kibana] Loading "mappings.json"
[00:02:24]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_1/lWBPS992TOubHslNbcNiAw] deleting index
[00:02:24]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_2/9y5ydW2wTSKoI5adfvR4qw] deleting index
[00:02:24]               │ info [empty_kibana] Deleted existing index [".kibana_2",".kibana_1"]
[00:02:24]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:02:24]               │ info [empty_kibana] Created index ".kibana"
[00:02:24]               │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:02:24]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana/230K8wS-Q9C1Njo9DngzsQ] update_mapping [_doc]
[00:02:24]               │ debg Migrating saved objects
[00:02:24]               │ proc [kibana]   log   [03:19:28.326] [info][savedobjects-service] Creating index .kibana_2.
[00:02:24]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:02:24]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] updating number_of_replicas to [0] for indices [.kibana_2]
[00:02:24]               │ proc [kibana]   log   [03:19:28.411] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:02:24]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:02:24]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] updating number_of_replicas to [0] for indices [.kibana_1]
[00:02:24]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] 5092 finished with response BulkByScrollResponse[took=2.7ms,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:02:24]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana/230K8wS-Q9C1Njo9DngzsQ] deleting index
[00:02:24]               │ proc [kibana]   log   [03:19:28.788] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:02:24]               │ proc [kibana]   log   [03:19:28.798] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:02:24]               │ proc [kibana]   log   [03:19:28.842] [info][savedobjects-service] Finished in 520ms.
[00:02:24]               │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:02:24]               │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:02:24]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:02:24]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [.kibana_2/RexDvkuIQla3tzdF0QN1MA] update_mapping [_doc]
[00:02:26]               │ info [logstash_functional] Loading "mappings.json"
[00:02:26]               │ info [logstash_functional] Loading "data.json.gz"
[00:02:26]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:02:26]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:02:26]               │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:26]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:02:26]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:02:26]               │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:26]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:02:26]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:02:26]               │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:36]               │ info progress: 10824
[00:02:38]               │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:02:38]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:02:38]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:02:39]               │ debg applying update to kibana config: {"defaultIndex":"logstash-*"}
[00:02:39]               │ debg navigating to settings url: http://localhost:61191/app/management
[00:02:39]               │ debg navigate to: http://localhost:61191/app/management
[00:02:39]               │ debg browser[INFO] http://localhost:61191/login?next=%2Fapp%2Fmanagement%3F_t%3D1612322383413 341 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:39]               │
[00:02:39]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:39]               │ debg ... sleep(700) start
[00:02:40]               │ debg ... sleep(700) end
[00:02:40]               │ debg returned from get, calling refresh
[00:02:40]               │ debg browser[INFO] http://localhost:61191/login?next=%2Fapp%2Fmanagement%3F_t%3D1612322383413 341 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:40]               │
[00:02:40]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:40]               │ debg currentUrl = http://localhost:61191/login?next=%2Fapp%2Fmanagement%3F_t%3D1612322383413
[00:02:40]               │          appUrl = http://localhost:61191/app/management
[00:02:40]               │ debg TestSubjects.find(kibanaChrome)
[00:02:40]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:41]               │ debg Found login page
[00:02:41]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:02:41]               │ debg TestSubjects.click(loginUsername)
[00:02:41]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:41]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:41]               │ERROR browser[SEVERE] http://localhost:61191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:41]               │ debg browser[INFO] http://localhost:61191/40097/bundles/core/core.entry.js 12:159380 "Detected an unhandled Promise rejection.
[00:02:41]               │      Error: Unauthorized"
[00:02:41]               │ERROR browser[SEVERE] http://localhost:61191/40097/bundles/core/core.entry.js 5:3002 
[00:02:41]               │ERROR browser[SEVERE] http://localhost:61191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:41]               │ERROR browser[SEVERE] http://localhost:61191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:41]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:02:41]               │ debg TestSubjects.click(loginPassword)
[00:02:41]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:41]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:42]               │ debg TestSubjects.click(loginSubmit)
[00:02:42]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:42]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:42]               │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:02:42]               │ proc [kibana]   log   [03:19:46.068] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:02:42]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:42]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:02:44]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322383413 341 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:44]               │
[00:02:44]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:44]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322388171 341 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:44]               │
[00:02:44]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:45]               │ debg Finished login process currentUrl = http://localhost:61191/app/management
[00:02:45]               │ debg ... sleep(501) start
[00:02:45]               │ debg ... sleep(501) end
[00:02:45]               │ debg in navigateTo url = http://localhost:61191/app/management
[00:02:45]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:45]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:48]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:48]               │ debg TestSubjects.click(roles)
[00:02:48]               │ debg Find.clickByCssSelector('[data-test-subj="roles"]') with timeout=10000
[00:02:48]               │ debg Find.findByCssSelector('[data-test-subj="roles"]') with timeout=10000
[00:02:48]               │ debg TestSubjects.click(createRoleButton)
[00:02:48]               │ debg Find.clickByCssSelector('[data-test-subj="createRoleButton"]') with timeout=10000
[00:02:48]               │ debg Find.findByCssSelector('[data-test-subj="createRoleButton"]') with timeout=10000
[00:02:48]               │ debg TestSubjects.setValue(roleFormNameInput, logstash-readonly)
[00:02:48]               │ debg TestSubjects.click(roleFormNameInput)
[00:02:48]               │ debg Find.clickByCssSelector('[data-test-subj="roleFormNameInput"]') with timeout=10000
[00:02:48]               │ debg Find.findByCssSelector('[data-test-subj="roleFormNameInput"]') with timeout=10000
[00:02:49]               │ debg Adding index logstash-* to role
[00:02:49]               │ debg comboBox.setCustom, comboBoxSelector: indicesInput0, value: logstash-*
[00:02:49]               │ debg TestSubjects.find(indicesInput0)
[00:02:49]               │ debg Find.findByCssSelector('[data-test-subj="indicesInput0"]') with timeout=10000
[00:02:51]               │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:02:51]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:02:51]               │ debg Adding privilege read to role
[00:02:51]               │ debg Find.findByCssSelector('[data-test-subj="privilegesInput0"] input') with timeout=10000
[00:02:51]               │ debg Find.byButtonText('read') with timeout=10000
[00:02:52]               │ debg TestSubjects.find(roleFormSaveButton)
[00:02:52]               │ debg Find.findByCssSelector('[data-test-subj="roleFormSaveButton"]') with timeout=10000
[00:02:52]               │ debg isGlobalLoadingIndicatorVisible
[00:02:52]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:52]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:52]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612320163060957460] added role [logstash-readonly]
[00:02:54]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:54]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:54]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:55]               │ debg navigating to settings url: http://localhost:61191/app/management
[00:02:55]               │ debg navigate to: http://localhost:61191/app/management
[00:02:55]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322398933 341 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:55]               │
[00:02:55]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:55]               │ debg ... sleep(700) start
[00:02:55]               │ debg ... sleep(700) end
[00:02:55]               │ debg returned from get, calling refresh
[00:02:56]               │ERROR browser[SEVERE] http://localhost:61191/40097/bundles/core/core.entry.js 12:158432 TypeError: Failed to fetch
[00:02:56]               │          at fetch_Fetch.fetchResponse (http://localhost:61191/40097/bundles/core/core.entry.js:6:32451)
[00:02:56]               │          at async interceptResponse (http://localhost:61191/40097/bundles/core/core.entry.js:6:28637)
[00:02:56]               │          at async http://localhost:61191/40097/bundles/core/core.entry.js:6:31117
[00:02:56]               │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322398933 341 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:56]               │
[00:02:56]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:56]               │ debg currentUrl = http://localhost:61191/app/management
[00:02:56]               │          appUrl = http://localhost:61191/app/management
[00:02:56]               │ debg TestSubjects.find(kibanaChrome)
[00:02:56]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:57]               │ debg ... sleep(501) start
[00:02:57]               │ debg ... sleep(501) end
[00:02:57]               │ debg in navigateTo url = http://localhost:61191/app/management
[00:02:57]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:57]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:00]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:00]             └-: Security
[00:03:00]               └-> "before all" hook
[00:03:00]               └-: navigation
[00:03:00]                 └-> "before all" hook
[00:03:00]                 └-> Can navigate to create user section
[00:03:00]                   └-> "before each" hook: global before each
[00:03:00]                   │ debg navigating to settings url: http://localhost:61191/app/management
[00:03:00]                   │ debg navigate to: http://localhost:61191/app/management
[00:03:00]                   │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322404657 341 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:03:00]                   │
[00:03:00]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:00]                   │ debg ... sleep(700) start
[00:03:01]                   │ debg ... sleep(700) end
[00:03:01]                   │ debg returned from get, calling refresh
[00:03:02]                   │ debg browser[INFO] http://localhost:61191/app/management?_t=1612322404657 341 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:03:02]                   │
[00:03:02]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:02]                   │ debg currentUrl = http://localhost:61191/app/management
[00:03:02]                   │          appUrl = http://localhost:61191/app/management
[00:03:02]                   │ debg TestSubjects.find(kibanaChrome)
[00:03:02]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:02]                   │ debg ... sleep(501) start
[00:03:03]                   │ debg ... sleep(501) end
[00:03:03]                   │ debg in navigateTo url = http://localhost:61191/app/management
[00:03:03]                   │ debg TestSubjects.exists(statusPageContainer)
[00:03:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:05]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:06]                   │ debg TestSubjects.click(users)
[00:03:06]                   │ debg Find.clickByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:03:06]                   │ debg Find.findByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:03:06]                   │ debg TestSubjects.click(createUserButton)
[00:03:06]                   │ debg Find.clickByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:03:06]                   │ debg Find.findByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:03:06]                   │ info Taking screenshot "/dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/screenshots/failure/security app Management Security navigation Can navigate to create user section.png"
[00:03:06]                   │ info Current URL is: http://localhost:61191/app/management/security/users/create
[00:03:06]                   │ info Saving page source to: /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/failure_debug/html/security app Management Security navigation Can navigate to create user section.html
[00:03:06]                   └- ✖ fail: security app Management Security navigation Can navigate to create user section
[00:03:06]                   │      Error: expected 'http://localhost:61191/app/management/security/users/create' to contain 'security/users/edit'
[00:03:06]                   │       at Assertion.assert (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:100:11)
[00:03:06]                   │       at Assertion.contain (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:442:10)
[00:03:06]                   │       at Context.<anonymous> (test/functional/apps/security/management.js:51:33)
[00:03:06]                   │       at runMicrotasks (<anonymous>)
[00:03:06]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:03:06]                   │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:03:06]                   │ 
[00:03:06]                   │ 

Stack Trace

Error: expected 'http://localhost:61191/app/management/security/users/create' to contain 'security/users/edit'
    at Assertion.assert (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.contain (/dev/shm/workspace/parallel/19/kibana/packages/kbn-expect/expect.js:442:10)
    at Context.<anonymous> (test/functional/apps/security/management.js:51:33)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/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

Copy link
Contributor

@thomheymann thomheymann left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this test!

Looks good but got one comment and one question :)

// await testSubjects.setValue('passwordInput', '123456');
// await testSubjects.setValue('passwordConfirmationInput', '123456');
// await testSubjects.setValue('userFormFullNameInput', 'Full User Name');
// await testSubjects.setValue('userFormEmailInput', 'example@example.com');
Copy link
Contributor

Choose a reason for hiding this comment

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

I would remove all the comments here and below the call to createUsers.

We can use git if we ever want to revert.

@@ -148,7 +156,9 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.security.clickSaveEditUser();

await PageObjects.settings.navigateTo();
await testSubjects.click('users');
await testSubjects.click('roles');
Copy link
Contributor

Choose a reason for hiding this comment

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

Surprised this test passes.

Why did you change 'users' to 'roles'? Shouldn't we check that the newly created user appears on the user listing page?

@rashmivkulkarni
Copy link
Contributor Author

closing this branch...it was against master but should have been against 7.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants