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

Fix endpoint host list test #64104

Closed
wants to merge 48 commits into from
Closed

Fix endpoint host list test #64104

wants to merge 48 commits into from

Conversation

charlie-pichette
Copy link
Contributor

@charlie-pichette charlie-pichette commented Apr 21, 2020

Summary

The endpoint host list tests were failing due to not waiting for data to load. Added a check to verify the data loads. Also added steps to the after block for the test where we remove data.

fixes #63621

Checklist

Delete any items that are not applicable to this PR.

For maintainers

charlie-pichette and others added 30 commits February 20, 2020 11:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-app-team (Feature:Endpoint)

@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-management (Team:Endpoint Management)

@charlie-pichette charlie-pichette changed the title Fx endpoint host list test Fix endpoint host list test Apr 21, 2020
Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Just minor comment (optional)

this.tags('ciGroup7');
const sleep = (ms = 100) => new Promise(resolve => setTimeout(resolve, ms));
before(async () => {
await esArchiver.load('endpoint/metadata/api_feature');
await pageObjects.common.navigateToUrlWithBrowserHistory('endpoint', '/hosts');
Copy link
Contributor

Choose a reason for hiding this comment

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

these two lines could be removed, since all subsequent test blocks (describe()) already do this navigation - unless: this is meant for the UI to run the "setup" where we call ingest to install the package (mabye?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was a concern from a timing perspective. If you feel it is not needed I can remove them @paul-tavares.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will remove the load. It was an oversight.

@charlie-pichette
Copy link
Contributor Author

jenkins test this

@madirey
Copy link
Contributor

madirey commented Apr 25, 2020

@elasticmachine merge upstream

@charlie-pichette charlie-pichette requested a review from a team as a code owner May 11, 2020 19:47
@charlie-pichette
Copy link
Contributor Author

@elasticmachine merge upstream

@charlie-pichette
Copy link
Contributor Author

@elasticmachine test this please

@charlie-pichette
Copy link
Contributor Author

@elasticmachine merge upstream

@charlie-pichette
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack Endpoint Functional Tests.x-pack/test/functional_endpoint/apps/endpoint/host_list·ts.endpoint host list with data finds title

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: endpoint
[00:00:00]           └-> "before all" hook
[00:01:18]           └-: host list
[00:01:18]             └-> "before all" hook
[00:01:18]             └-> "before all" hook
[00:01:18]               │ debg navigateToActualUrl http://localhost:6181/app/endpoint/hosts
[00:01:19]               │ debg browser[INFO] http://localhost:6181/app/endpoint/hosts?_t=1589574711857 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:01:19]               │
[00:01:19]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:19]               │ debg currentUrl = http://localhost:6181/app/endpoint/hosts
[00:01:19]               │          appUrl = http://localhost:6181/app/endpoint/hosts
[00:01:19]               │ debg TestSubjects.find(kibanaChrome)
[00:01:19]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:22]               │ debg isGlobalLoadingIndicatorVisible
[00:01:22]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:22]               │ debg browser[INFO] http://localhost:6181/33299/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-15T20:31:54Z
[00:01:22]               │        Adding connection to http://localhost:6181/elasticsearch
[00:01:22]               │
[00:01:22]               │      "
[00:01:22]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:22]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:22]             └-: with data
[00:01:22]               └-> "before all" hook
[00:01:22]               └-> "before all" hook
[00:01:22]                 │ info [endpoint/metadata/api_feature] Loading "mappings.json"
[00:01:22]                 │ info [endpoint/metadata/api_feature] Loading "data.json"
[00:01:22]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] applying create index request using v2 template [metrics-endpoint]
[00:01:22]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] [metrics-endpoint-default-1] creating index, cause [api], templates [metrics-endpoint], shards [1]/[1], mappings [_doc]
[00:01:22]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] moving index [metrics-endpoint-default-1] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [metrics-default]
[00:01:22]                 │ info [endpoint/metadata/api_feature] Created index "metrics-endpoint-default-1"
[00:01:22]                 │ debg [endpoint/metadata/api_feature] "metrics-endpoint-default-1" settings {"index":{"mapping":{"total_fields":{"limit":10000}},"refresh_interval":"5s"}}
[00:01:22]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] moving index [metrics-endpoint-default-1] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [metrics-default]
[00:01:22]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] moving index [metrics-endpoint-default-1] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [metrics-default]
[00:01:22]                 │ info [endpoint/metadata/api_feature] Indexed 9 docs into "metrics-endpoint-default-1"
[00:01:22]                 │ debg navigateToActualUrl http://localhost:6181/app/endpoint/hosts
[00:01:22]                 │ debg browser[INFO] http://localhost:6181/app/endpoint/hosts?_t=1589574715669 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:01:22]                 │
[00:01:22]                 │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:22]                 │ debg currentUrl = http://localhost:6181/app/endpoint/hosts
[00:01:22]                 │          appUrl = http://localhost:6181/app/endpoint/hosts
[00:01:22]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:22]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:25]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:25]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:25]                 │ debg browser[INFO] http://localhost:6181/33299/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-15T20:31:58Z
[00:01:25]                 │        Adding connection to http://localhost:6181/elasticsearch
[00:01:25]                 │
[00:01:25]                 │      "
[00:01:26]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:26]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:26]                 │ proc [kibana]   log   [20:31:59.166] [warning][endpoint][metadata][plugins] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:01:26]                 │ proc [kibana]   log   [20:31:59.167] [warning][endpoint][metadata][plugins] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:01:26]                 │ proc [kibana]   log   [20:31:59.168] [warning][endpoint][metadata][plugins] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:01:26]                 │ proc [kibana]   log   [20:31:59.169] [warning][endpoint][metadata][plugins] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:01:26]                 │ proc [kibana]   log   [20:31:59.169] [warning][endpoint][metadata][plugins] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:01:26]                 │ proc [kibana]   log   [20:31:59.171] [warning][endpoint][metadata][plugins] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:01:26]                 │ debg Waiting up to 2000ms for table to have data...
[00:01:26]                 │ debg TestSubjects.exists(hostListTable)
[00:01:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="hostListTable"]') with timeout=2500
[00:01:26]                 │ debg TestSubjects.find(hostListTable)
[00:01:26]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTable"]') with timeout=10000
[00:01:26]               └-> finds title
[00:01:26]                 └-> "before each" hook: global before each
[00:01:26]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:01:26]                 │ debg TestSubjects.find(hostListTitle)
[00:01:26]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:01:36]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:01:36]                 │      Wait timed out after 10023ms
[00:01:36]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:01:36]                 │ debg TestSubjects.find(hostListTitle)
[00:01:36]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:01:46]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:01:46]                 │      Wait timed out after 10057ms
[00:01:47]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:01:47]                 │ debg TestSubjects.find(hostListTitle)
[00:01:47]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:01:57]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:01:57]                 │      Wait timed out after 10009ms
[00:01:58]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:01:58]                 │ debg TestSubjects.find(hostListTitle)
[00:01:58]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:08]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:08]                 │      Wait timed out after 10013ms
[00:02:08]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:08]                 │ debg TestSubjects.find(hostListTitle)
[00:02:08]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:18]                 │ debg --- retry.try failed again with the same message...
[00:02:19]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:19]                 │ debg TestSubjects.find(hostListTitle)
[00:02:19]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:29]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:29]                 │      Wait timed out after 10042ms
[00:02:29]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:29]                 │ debg TestSubjects.find(hostListTitle)
[00:02:29]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:39]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:39]                 │      Wait timed out after 10056ms
[00:02:40]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:40]                 │ debg TestSubjects.find(hostListTitle)
[00:02:40]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:50]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:50]                 │      Wait timed out after 10008ms
[00:02:50]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:50]                 │ debg TestSubjects.find(hostListTitle)
[00:02:50]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:00]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:00]                 │      Wait timed out after 10011ms
[00:03:01]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:03:01]                 │ debg TestSubjects.find(hostListTitle)
[00:03:01]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:11]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:11]                 │      Wait timed out after 10010ms
[00:03:11]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:03:11]                 │ debg TestSubjects.find(hostListTitle)
[00:03:11]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:21]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:21]                 │      Wait timed out after 10032ms
[00:03:22]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:03:22]                 │ debg TestSubjects.find(hostListTitle)
[00:03:22]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:32]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:32]                 │      Wait timed out after 10033ms
[00:03:32]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/endpoint host list with data finds title.png"
[00:03:32]                 │ info Current URL is: http://localhost:6181/app/endpoint/hosts
[00:03:33]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/endpoint host list with data finds title.html
[00:03:33]                 └- ✖ fail: "endpoint host list with data finds title"
[00:03:33]                 │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
Wait timed out after 10033ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Kibana Pipeline / kibana-xpack-agent / X-Pack Endpoint Functional Tests.x-pack/test/functional_endpoint/apps/endpoint/host_list·ts.endpoint host list with data finds title

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: endpoint
[00:00:00]           └-> "before all" hook
[00:01:22]           └-: host list
[00:01:22]             └-> "before all" hook
[00:01:22]             └-> "before all" hook
[00:01:22]               │ debg navigateToActualUrl http://localhost:6181/app/endpoint/hosts
[00:01:22]               │ debg browser[INFO] http://localhost:6181/app/endpoint/hosts?_t=1589571863936 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:01:22]               │
[00:01:22]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:22]               │ debg currentUrl = http://localhost:6181/app/endpoint/hosts
[00:01:22]               │          appUrl = http://localhost:6181/app/endpoint/hosts
[00:01:22]               │ debg TestSubjects.find(kibanaChrome)
[00:01:22]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:25]               │ debg isGlobalLoadingIndicatorVisible
[00:01:25]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:25]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:25]               │ debg browser[INFO] http://localhost:6181/33299/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-15T19:44:26Z
[00:01:25]               │        Adding connection to http://localhost:6181/elasticsearch
[00:01:25]               │
[00:01:25]               │      "
[00:01:25]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:25]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:25]             └-: with data
[00:01:25]               └-> "before all" hook
[00:01:25]               └-> "before all" hook
[00:01:25]                 │ info [endpoint/metadata/api_feature] Loading "mappings.json"
[00:01:25]                 │ info [endpoint/metadata/api_feature] Loading "data.json"
[00:01:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] applying create index request using v2 template [metrics-endpoint]
[00:01:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] [metrics-endpoint-default-1] creating index, cause [api], templates [metrics-endpoint], shards [1]/[1], mappings [_doc]
[00:01:26]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] moving index [metrics-endpoint-default-1] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [metrics-default]
[00:01:26]                 │ info [endpoint/metadata/api_feature] Created index "metrics-endpoint-default-1"
[00:01:26]                 │ debg [endpoint/metadata/api_feature] "metrics-endpoint-default-1" settings {"index":{"mapping":{"total_fields":{"limit":10000}},"refresh_interval":"5s"}}
[00:01:26]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] moving index [metrics-endpoint-default-1] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [metrics-default]
[00:01:26]                 │ info [endpoint/metadata/api_feature] Indexed 9 docs into "metrics-endpoint-default-1"
[00:01:26]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1589566310302792553] moving index [metrics-endpoint-default-1] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [metrics-default]
[00:01:26]                 │ debg navigateToActualUrl http://localhost:6181/app/endpoint/hosts
[00:01:26]                 │ debg browser[INFO] http://localhost:6181/app/endpoint/hosts?_t=1589571867936 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:01:26]                 │
[00:01:26]                 │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:26]                 │ debg currentUrl = http://localhost:6181/app/endpoint/hosts
[00:01:26]                 │          appUrl = http://localhost:6181/app/endpoint/hosts
[00:01:26]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:26]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:29]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:29]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:29]                 │ debg browser[INFO] http://localhost:6181/33299/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-15T19:44:30Z
[00:01:29]                 │        Adding connection to http://localhost:6181/elasticsearch
[00:01:29]                 │
[00:01:29]                 │      "
[00:01:29]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:29]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:29]                 │ proc [kibana]   log   [19:44:31.630] [warning][endpoint][metadata][plugins] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:01:29]                 │ proc [kibana]   log   [19:44:31.632] [warning][endpoint][metadata][plugins] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:01:29]                 │ proc [kibana]   log   [19:44:31.633] [warning][endpoint][metadata][plugins] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:01:29]                 │ proc [kibana]   log   [19:44:31.634] [warning][endpoint][metadata][plugins] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:01:29]                 │ proc [kibana]   log   [19:44:31.636] [warning][endpoint][metadata][plugins] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:01:29]                 │ proc [kibana]   log   [19:44:31.638] [warning][endpoint][metadata][plugins] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:01:29]                 │ debg Waiting up to 2000ms for table to have data...
[00:01:29]                 │ debg TestSubjects.exists(hostListTable)
[00:01:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="hostListTable"]') with timeout=2500
[00:01:30]                 │ debg TestSubjects.find(hostListTable)
[00:01:30]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTable"]') with timeout=10000
[00:01:30]               └-> finds title
[00:01:30]                 └-> "before each" hook: global before each
[00:01:30]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:01:30]                 │ debg TestSubjects.find(hostListTitle)
[00:01:30]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:01:40]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:01:40]                 │      Wait timed out after 10012ms
[00:01:40]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:01:40]                 │ debg TestSubjects.find(hostListTitle)
[00:01:40]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:01:50]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:01:50]                 │      Wait timed out after 10029ms
[00:01:51]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:01:51]                 │ debg TestSubjects.find(hostListTitle)
[00:01:51]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:01]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:01]                 │      Wait timed out after 10014ms
[00:02:01]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:01]                 │ debg TestSubjects.find(hostListTitle)
[00:02:01]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:11]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:11]                 │      Wait timed out after 10057ms
[00:02:12]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:12]                 │ debg TestSubjects.find(hostListTitle)
[00:02:12]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:22]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:22]                 │      Wait timed out after 10055ms
[00:02:22]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:22]                 │ debg TestSubjects.find(hostListTitle)
[00:02:22]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:32]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:32]                 │      Wait timed out after 10016ms
[00:02:33]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:33]                 │ debg TestSubjects.find(hostListTitle)
[00:02:33]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:43]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:43]                 │      Wait timed out after 10034ms
[00:02:43]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:43]                 │ debg TestSubjects.find(hostListTitle)
[00:02:43]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:02:53]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:02:53]                 │      Wait timed out after 10026ms
[00:02:54]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:02:54]                 │ debg TestSubjects.find(hostListTitle)
[00:02:54]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:04]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:04]                 │      Wait timed out after 10022ms
[00:03:04]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:03:04]                 │ debg TestSubjects.find(hostListTitle)
[00:03:04]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:14]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:14]                 │      Wait timed out after 10017ms
[00:03:15]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:03:15]                 │ debg TestSubjects.find(hostListTitle)
[00:03:15]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:25]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:25]                 │      Wait timed out after 10058ms
[00:03:25]                 │ debg TestSubjects.getVisibleText(hostListTitle)
[00:03:25]                 │ debg TestSubjects.find(hostListTitle)
[00:03:25]                 │ debg Find.findByCssSelector('[data-test-subj="hostListTitle"]') with timeout=10000
[00:03:35]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
[00:03:35]                 │      Wait timed out after 10053ms
[00:03:36]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/endpoint host list with data finds title.png"
[00:03:36]                 │ info Current URL is: http://localhost:6181/app/endpoint/hosts
[00:03:36]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/endpoint host list with data finds title.html
[00:03:36]                 └- ✖ fail: "endpoint host list with data finds title"
[00:03:36]                 │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="hostListTitle"])
Wait timed out after 10053ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Endpoint Elastic Endpoint feature release_note:skip Skip the PR/issue when compiling release notes v7.9.0 v8.0.0
Projects
None yet
6 participants