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] [SIEM] [Cases] Unit tests for case UI components (#63005) #63256

Merged
merged 2 commits into from
Apr 14, 2020

Conversation

stephmilovic
Copy link
Contributor

Backports the following commits to 7.x:

@stephmilovic stephmilovic requested a review from a team as a code owner April 10, 2020 15:56
@cnasikas
Copy link
Member

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Example plugin functional tests.test/examples/embeddables/adding_children·ts.embeddable explorer creating and adding children Can create a new child

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 5 times on tracked branches: https://github.com/elastic/kibana/issues/58692

[00:00:00]       │
[00:00:33]         └-: embeddable explorer
[00:00:33]           └-> "before all" hook
[00:00:33]           └-> "before all" hook
[00:00:33]             │ debg navigating to settings url: http://localhost:6111/app/kibana#/management
[00:00:33]             │ debg navigate to: http://localhost:6111/app/kibana#/management
[00:00:33]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1586765619374202854] applying create index request using v1 templates []
[00:00:33]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1586765619374202854] [.kibana] creating index, cause [auto(bulk api)], templates [], shards [1]/[1], mappings []
[00:00:33]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1586765619374202854] [.kibana/xlIqPv0qQmGvFN51UyltZA] create_mapping [_doc]
[00:00:34]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1586765619374202854] [.kibana/xlIqPv0qQmGvFN51UyltZA] update_mapping [_doc]
[00:00:34]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1586765619374202854] [.kibana/xlIqPv0qQmGvFN51UyltZA] update_mapping [_doc]
[00:00:34]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:00:34]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:00:34]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:00:34]             │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586767376376#/management 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:00:34]             │
[00:00:34]             │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:34]             │ debg ... sleep(700) start
[00:00:35]             │ debg ... sleep(700) end
[00:00:35]             │ debg returned from get, calling refresh
[00:00:35]             │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586767376376#/management 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:00:35]             │
[00:00:35]             │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:35]             │ debg currentUrl = http://localhost:6111/app/kibana#/management
[00:00:35]             │          appUrl = http://localhost:6111/app/kibana#/management
[00:00:35]             │ debg TestSubjects.find(kibanaChrome)
[00:00:35]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:38]             │ debg TestSubjects.find(kibanaChrome)
[00:00:38]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:38]             │ debg browser[INFO] http://localhost:6111/bundles/plugin/testbed/testbed.plugin.js 171:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:00:38]             │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-13T08:43:00Z
[00:00:38]             │        Adding connection to http://localhost:6111/elasticsearch
[00:00:38]             │
[00:00:38]             │      "
[00:00:38]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:00:38]             │ debg browser[INFO] http://localhost:6111/bundles/plugin/testbed/testbed.plugin.js 179:12 "Testbed plugin started"
[00:00:38]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to management"
[00:00:38]             │ debg ... sleep(501) start
[00:00:38]             │ debg ... sleep(501) end
[00:00:38]             │ debg in navigateTo url = http://localhost:6111/app/kibana#/management?_g=()
[00:00:38]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:38]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:41]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:41]             │ debg click "Embeddable explorer" app link
[00:00:41]             │ debg TestSubjects.find(navDrawer)
[00:00:41]             │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:00:46]           └-: creating and adding children
[00:00:46]             └-> "before all" hook
[00:00:46]             └-> "before all" hook
[00:00:46]               │ debg TestSubjects.click(embeddablePanelExamplae)
[00:00:46]               │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelExamplae"]') with timeout=10000
[00:00:46]               │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelExamplae"]') with timeout=10000
[00:00:46]             └-> Can create a new child
[00:00:46]               └-> "before each" hook: global before each
[00:00:46]               │ debg TestSubjects.click(embeddablePanelToggleMenuIcon)
[00:00:46]               │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=10000
[00:00:46]               │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=10000
[00:00:46]               │ debg TestSubjects.click(embeddablePanelAction-ACTION_ADD_PANEL)
[00:00:46]               │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelAction-ACTION_ADD_PANEL"]') with timeout=10000
[00:00:46]               │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelAction-ACTION_ADD_PANEL"]') with timeout=10000
[00:00:47]               │ debg TestSubjects.click(createNew)
[00:00:47]               │ debg Find.clickByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:00:47]               │ debg TestSubjects.click(createNew-TODO_EMBEDDABLE)
[00:00:47]               │ debg Find.clickByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:00:47]               │ debg TestSubjects.setValue(taskInputField, new task)
[00:00:47]               │ debg TestSubjects.click(taskInputField)
[00:00:47]               │ debg Find.clickByCssSelector('[data-test-subj="taskInputField"]') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj="taskInputField"]') with timeout=10000
[00:00:47]               │ debg TestSubjects.click(createTodoEmbeddable)
[00:00:47]               │ debg Find.clickByCssSelector('[data-test-subj="createTodoEmbeddable"]') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj="createTodoEmbeddable"]') with timeout=10000
[00:00:47]               │ debg TestSubjects.getVisibleTextAll(todoEmbeddableTask)
[00:00:47]               │ debg TestSubjects.findAll(todoEmbeddableTask)
[00:00:47]               │ debg Find.allByCssSelector('[data-test-subj="todoEmbeddableTask"]') with timeout=10000
[00:00:47]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/embeddable explorer creating and adding children Can create a new child.png"
[00:00:48]               │ info Current URL is: http://localhost:6111/app/embeddableExplorer/embeddablePanelExamplae
[00:00:48]               │ info Saving page source to: /dev/shm/workspace/kibana/test/examples/failure_debug/html/embeddable explorer creating and adding children Can create a new child.html
[00:00:48]               └- ✖ fail: "embeddable explorer creating and adding children Can create a new child"
[00:00:48]               │

Stack Trace

{ Error: expected [ 'Goes out on Wednesdays!' ] to sort of equal [ 'Goes out on Wednesdays!', 'new task' ]
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (packages/kbn-expect/expect.js:244:8)
    at Context.it (test/examples/embeddables/adding_children.ts:40:24)
  actual: '[\n  "Goes out on Wednesdays!"\n]',
  expected: '[\n  "Goes out on Wednesdays!"\n  "new task"\n]',
  showDiff: true }

History

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

@stephmilovic stephmilovic merged commit 3205aca into elastic:7.x Apr 14, 2020
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.

4 participants