Skip to content

Comments

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

Closed
charlie-pichette wants to merge 1 commit intoelastic:7.xfrom
charlie-pichette:backport/7.x/pr-58148
Closed

[7.x] [Endpoint] Refactor Management List Tests (#58148)#58592
charlie-pichette wants to merge 1 commit intoelastic:7.xfrom
charlie-pichette:backport/7.x/pr-58148

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
@charlie-pichette charlie-pichette added the backport This PR is a backport of another PR label Feb 26, 2020
@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:39]         └-: endpoint
[00:20:39]           └-> "before all" hook
[00:21:26]           └-: Endpoint Management List
[00:21:26]             └-> "before all" hook
[00:21:26]             └-> "before all" hook
[00:21:26]               │ info [endpoint/endpoints/api_feature] Loading "mappings.json"
[00:21:26]               │ info [endpoint/endpoints/api_feature] Loading "data.json"
[00:21:26]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1582722415568075346] [endpoint-agent] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:21:26]               │ info [endpoint/endpoints/api_feature] Created index "endpoint-agent"
[00:21:26]               │ debg [endpoint/endpoints/api_feature] "endpoint-agent" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:21:26]               │ info [endpoint/endpoints/api_feature] Indexed 9 docs into "endpoint-agent"
[00:21:26]               │ debg navigateToActualUrl http://localhost:6171/app/endpoint/management
[00:21:26]               │ debg browser[INFO] http://localhost:6171/app/endpoint/management?_t=1582727534592 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:21:26]               │
[00:21:26]               │ 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:21:26]               │ debg currentUrl = http://localhost:6171/app/endpoint/management
[00:21:26]               │          appUrl = http://localhost:6171/app/endpoint/management
[00:21:26]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:21:29]             └-> finds title
[00:21:29]               └-> "before each" hook: global before each
[00:21:29]                 │ debg browser[INFO] http://localhost:6171/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-02-26T14:32:17Z
[00:21:29]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:21:29]                 │
[00:21:29]                 │      "
[00:21:29]               │ debg TestSubjects.getVisibleText(managementViewTitle)
[00:21:29]               │ debg TestSubjects.find(managementViewTitle)
[00:21:29]               │ debg Find.findByCssSelector('[data-test-subj="managementViewTitle"]') with timeout=10000
[00:21:29]               └- ✓ pass  (156ms) "endpoint Endpoint Management List finds title"
[00:21:29]             └-> displays table data
[00:21:29]               └-> "before each" hook: global before each
[00:21:30]               │ debg TestSubjects.exists(managementListTable)
[00:21:30]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="managementListTable"]') with timeout=2500
[00:21:30]               │ debg TestSubjects.find(managementListTable)
[00:21:30]               │ debg Find.findByCssSelector('[data-test-subj="managementListTable"]') with timeout=10000
[00:21:30]               └- ✓ pass  (122ms) "endpoint Endpoint Management List displays table data"
[00:21:30]             └-> displays no items found
[00:21:30]               └-> "before each" hook: global before each
[00:21:30]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/endpoint Endpoint Management List displays no items found.png"
[00:21:30]               │ info Current URL is: http://localhost:6171/app/endpoint/management
[00:21:30]               │ 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:21:30]               └- ✖ fail: "endpoint Endpoint Management List displays no items found"
[00:21:30]               │

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:35]         └-: endpoint
[00:21:35]           └-> "before all" hook
[00:22:25]           └-: Endpoint Management List
[00:22:25]             └-> "before all" hook
[00:22:25]             └-> "before all" hook
[00:22:25]               │ info [endpoint/endpoints/api_feature] Loading "mappings.json"
[00:22:25]               │ info [endpoint/endpoints/api_feature] Loading "data.json"
[00:22:26]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1582722415568075346] [endpoint-agent] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:22:26]               │ info [endpoint/endpoints/api_feature] Created index "endpoint-agent"
[00:22:26]               │ debg [endpoint/endpoints/api_feature] "endpoint-agent" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:22:26]               │ info [endpoint/endpoints/api_feature] Indexed 9 docs into "endpoint-agent"
[00:22:26]               │ debg navigateToActualUrl http://localhost:6171/app/endpoint/management
[00:22:26]               │ debg browser[INFO] http://localhost:6171/app/endpoint/management?_t=1582726103371 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:26]               │
[00:22:26]               │ 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:26]               │ debg currentUrl = http://localhost:6171/app/endpoint/management
[00:22:26]               │          appUrl = http://localhost:6171/app/endpoint/management
[00:22:26]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:22:30]             └-> finds title
[00:22:30]               └-> "before each" hook: global before each
[00:22:30]                 │ debg browser[INFO] http://localhost:6171/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-02-26T14:08:27Z
[00:22:30]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:22:30]                 │
[00:22:30]                 │      "
[00:22:30]               │ debg TestSubjects.getVisibleText(managementViewTitle)
[00:22:30]               │ debg TestSubjects.find(managementViewTitle)
[00:22:30]               │ debg Find.findByCssSelector('[data-test-subj="managementViewTitle"]') with timeout=10000
[00:22:30]               └- ✓ pass  (298ms) "endpoint Endpoint Management List finds title"
[00:22:30]             └-> displays table data
[00:22:30]               └-> "before each" hook: global before each
[00:22:30]               │ debg TestSubjects.exists(managementListTable)
[00:22:30]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="managementListTable"]') with timeout=2500
[00:22:30]               │ debg TestSubjects.find(managementListTable)
[00:22:30]               │ debg Find.findByCssSelector('[data-test-subj="managementListTable"]') with timeout=10000
[00:22:30]               └- ✓ pass  (165ms) "endpoint Endpoint Management List displays table data"
[00:22:30]             └-> displays no items found
[00:22:30]               └-> "before each" hook: global before each
[00:22:30]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/endpoint Endpoint Management List displays no items found.png"
[00:22:30]               │ info Current URL is: http://localhost:6171/app/endpoint/management
[00:22:31]               │ 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:31]               └- ✖ fail: "endpoint Endpoint Management List displays no items found"
[00:22:31]               │

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
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@charlie-pichette
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@charlie-pichette charlie-pichette deleted the backport/7.x/pr-58148 branch February 28, 2020 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants