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

[7.x] [Endpoint] Refactor Management List Tests (#58148) #58246

Closed
wants to merge 1 commit into from
Closed

[7.x] [Endpoint] Refactor Management List Tests (#58148) #58246

wants to merge 1 commit into from

Conversation

charlie-pichette
Copy link
Contributor

Backports the following commits to 7.x:

* endpoint-161-refactor-management-list-test

* fix location of es archive file
@kibanamachine
Copy link
Contributor

💔 Build Failed


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/endpoint/management·ts.endpoint Endpoint Management List displays no items found

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:20:05]         └-: endpoint
[00:20:05]           └-> "before all" hook
[00:20:51]           └-: Endpoint Management List
[00:20:51]             └-> "before all" hook
[00:20:51]             └-> "before all" hook
[00:20:51]               │ info [endpoint/endpoints/api_feature] Loading "mappings.json"
[00:20:51]               │ info [endpoint/endpoints/api_feature] Loading "data.json"
[00:20:51]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1582309790168237004] [endpoint-agent] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:20:51]               │ info [endpoint/endpoints/api_feature] Created index "endpoint-agent"
[00:20:51]               │ debg [endpoint/endpoints/api_feature] "endpoint-agent" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:20:51]               │ info [endpoint/endpoints/api_feature] Indexed 9 docs into "endpoint-agent"
[00:20:51]               │ debg navigateToActualUrl http://localhost:6171/app/endpoint/management
[00:20:51]               │ debg browser[INFO] http://localhost:6171/app/endpoint/management?_t=1582314821092 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:20:51]               │
[00:20:51]               │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:20:51]               │ debg currentUrl = http://localhost:6171/app/endpoint/management
[00:20:51]               │          appUrl = http://localhost:6171/app/endpoint/management
[00:20:51]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:20:54]             └-> finds title
[00:20:54]               └-> "before each" hook: global before each
[00:20:54]                 │ debg browser[INFO] http://localhost:6171/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-02-21T19:53:43Z
[00:20:54]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:20:54]                 │
[00:20:54]                 │      "
[00:20:54]               │ debg TestSubjects.getVisibleText(managementViewTitle)
[00:20:54]               │ debg TestSubjects.find(managementViewTitle)
[00:20:54]               │ debg Find.findByCssSelector('[data-test-subj="managementViewTitle"]') with timeout=10000
[00:20:54]               └- ✓ pass  (218ms) "endpoint Endpoint Management List finds title"
[00:20:54]             └-> displays table data
[00:20:54]               └-> "before each" hook: global before each
[00:20:54]               │ debg TestSubjects.exists(managementListTable)
[00:20:54]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="managementListTable"]') with timeout=2500
[00:20:54]               │ debg TestSubjects.find(managementListTable)
[00:20:54]               │ debg Find.findByCssSelector('[data-test-subj="managementListTable"]') with timeout=10000
[00:20:54]               └- ✓ pass  (201ms) "endpoint Endpoint Management List displays table data"
[00:20:54]             └-> displays no items found
[00:20:54]               └-> "before each" hook: global before each
[00:20:54]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/endpoint Endpoint Management List displays no items found.png"
[00:20:55]               │ info Current URL is: http://localhost:6171/app/endpoint/management
[00:20:55]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/endpoint Endpoint Management List displays no items found.html
[00:20:55]               └- ✖ fail: "endpoint Endpoint Management List displays no items found"
[00:20:55]               │

Stack Trace

{ [Error: ENOENT: no such file or directory, scandir '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature']
  cause:
   { Error: ENOENT: no such file or directory, scandir '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature'
     errno: -2,
     code: 'ENOENT',
     syscall: 'scandir',
     path:
      '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature' },
  isOperational: true,
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path:
   '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature' }

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/endpoint/management·ts.endpoint Endpoint Management List displays no items found

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:21:24]         └-: endpoint
[00:21:24]           └-> "before all" hook
[00:22:17]           └-: Endpoint Management List
[00:22:17]             └-> "before all" hook
[00:22:17]             └-> "before all" hook
[00:22:17]               │ info [endpoint/endpoints/api_feature] Loading "mappings.json"
[00:22:17]               │ info [endpoint/endpoints/api_feature] Loading "data.json"
[00:22:17]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1582309790168237004] [endpoint-agent] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:22:17]               │ info [endpoint/endpoints/api_feature] Created index "endpoint-agent"
[00:22:17]               │ debg [endpoint/endpoints/api_feature] "endpoint-agent" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:22:17]               │ info [endpoint/endpoints/api_feature] Indexed 9 docs into "endpoint-agent"
[00:22:17]               │ debg navigateToActualUrl http://localhost:6171/app/endpoint/management
[00:22:17]               │ debg browser[INFO] http://localhost:6171/app/endpoint/management?_t=1582313429885 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:22:17]               │
[00:22:17]               │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:22:17]               │ debg currentUrl = http://localhost:6171/app/endpoint/management
[00:22:17]               │          appUrl = http://localhost:6171/app/endpoint/management
[00:22:17]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:22:20]             └-> finds title
[00:22:20]               └-> "before each" hook: global before each
[00:22:20]                 │ debg browser[INFO] http://localhost:6171/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-02-21T19:30:32Z
[00:22:20]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:22:20]                 │
[00:22:20]                 │      "
[00:22:20]               │ debg TestSubjects.getVisibleText(managementViewTitle)
[00:22:20]               │ debg TestSubjects.find(managementViewTitle)
[00:22:20]               │ debg Find.findByCssSelector('[data-test-subj="managementViewTitle"]') with timeout=10000
[00:22:21]               └- ✓ pass  (254ms) "endpoint Endpoint Management List finds title"
[00:22:21]             └-> displays table data
[00:22:21]               └-> "before each" hook: global before each
[00:22:21]               │ debg TestSubjects.exists(managementListTable)
[00:22:21]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="managementListTable"]') with timeout=2500
[00:22:21]               │ debg TestSubjects.find(managementListTable)
[00:22:21]               │ debg Find.findByCssSelector('[data-test-subj="managementListTable"]') with timeout=10000
[00:22:21]               └- ✓ pass  (105ms) "endpoint Endpoint Management List displays table data"
[00:22:21]             └-> displays no items found
[00:22:21]               └-> "before each" hook: global before each
[00:22:21]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/endpoint Endpoint Management List displays no items found.png"
[00:22:21]               │ info Current URL is: http://localhost:6171/app/endpoint/management
[00:22:21]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/endpoint Endpoint Management List displays no items found.html
[00:22:21]               └- ✖ fail: "endpoint Endpoint Management List displays no items found"
[00:22:21]               │

Stack Trace

{ [Error: ENOENT: no such file or directory, scandir '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature']
  cause:
   { Error: ENOENT: no such file or directory, scandir '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature'
     errno: -2,
     code: 'ENOENT',
     syscall: 'scandir',
     path:
      '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature' },
  isOperational: true,
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path:
   '/dev/shm/workspace/kibana/x-pack/test/functional/es_archives/endpoint/metadata/api_feature' }

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

@charlie-pichette charlie-pichette deleted the backport/7.x/pr-58148 branch February 24, 2020 13:32
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.

2 participants