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

[Resolver] Enable resolver test plugin tests #81339

Merged
merged 8 commits into from
Oct 28, 2020

Conversation

oatkiller
Copy link
Contributor

@oatkiller oatkiller commented Oct 21, 2020

Summary

Resolver has a test plugin. It can be found in x-pack/tests/plugin_functional. You can try it out like this:

yarn start --plugin-path x-pack/test/plugin_functional/plugins/resolver_test/

This PR enables automated tests for the test plugin. This ensures that the test plugin will render.

Screenshots

The navigation item for the test plugin:
image

The Resolver test plugin. It uses in-memory mocks for the data.
image

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@oatkiller oatkiller requested review from a team as code owners October 21, 2020 15:23
@oatkiller oatkiller force-pushed the enable-resolver-test-plugin-tests branch from aab31ff to 38bc12a Compare October 21, 2020 15:24
@oatkiller oatkiller added Feature:Resolver Security Solution Resolver feature Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.11.0 labels Oct 21, 2020
@elasticmachine
Copy link
Contributor

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

@oatkiller oatkiller added the release_note:skip Skip the PR/issue when compiling release notes label Oct 21, 2020
@@ -28,7 +28,8 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
// list paths to the files that contain your plugins tests
testFiles: [
resolve(__dirname, './test_suites/resolver'),
resolve(__dirname, './test_suites/global_search'),
// Disabling this suite as it is broken.
// resolve(__dirname, './test_suites/global_search'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pgayvallet @myasonik @ryankeairns @cchaos This PR would disable the global_search suite (it is currently broken) and enable the entire x-pack/test/plugin_functional config. Is that OK with y'all? Thank you

Copy link
Contributor

Choose a reason for hiding this comment

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

GlobalSearch API
       GlobalSearchBar
         basically works:
Error: expected 0 to equal 15

Seems only this test is failing, could you add a skip on the root describe in x-pack/test/plugin_functional/test_suites/global_search/global_search_bar.ts instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

And add a comment referencing #81397. Thank you

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems you got other failures from the suite. Forget that, just skip the whole suite.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ty, will do.

Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

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

LGTM pending the global_search discussion

@oatkiller oatkiller force-pushed the enable-resolver-test-plugin-tests branch 3 times, most recently from a98528a to d3f1629 Compare October 27, 2020 17:09
@oatkiller oatkiller force-pushed the enable-resolver-test-plugin-tests branch from d3f1629 to 50d44e7 Compare October 27, 2020 21:12
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@oatkiller oatkiller merged commit 2ce9424 into elastic:master Oct 28, 2020
@oatkiller oatkiller deleted the enable-resolver-test-plugin-tests branch October 28, 2020 14:44
oatkiller pushed a commit to oatkiller/kibana that referenced this pull request Oct 28, 2020
Resolver has a test plugin. It can be found in `x-pack/tests/plugin_functional`. You can try it out like this:
```
yarn start --plugin-path x-pack/test/plugin_functional/plugins/resolver_test/
```
This PR enables automated tests for the test plugin. This ensures that the test plugin will render.
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 29, 2020
…kibana into alerts/convert-to-tm-intervals

* 'alerts/convert-to-tm-intervals' of github.com:gmmorris/kibana: (88 commits)
  fixed jest
  APM Experiments settings (elastic#81554)
  [Resolver] Enable resolver test plugin tests (elastic#81339)
  Add TS project references for inspector  (elastic#81792)
  Add uri decode to es_ui_shared and fix navigation issues with special characters (elastic#80835)
  [Fleet] Rename ingestManager translations fleet (elastic#81837)
  [Logs UI] Transmit and render array field values in log entries (elastic#81385)
  Audit Logging: use the original url (elastic#81282)
  [User experience] Fix JS error rate (elastic#81512)
  [UX] Add median/percentile info in titles (elastic#79824)
  Support export for SO with circular refs (elastic#81582)
  Get rid of  global types (elastic#81739)
  [APM] Fix precommit script (elastic#81594)
  skips overview tests (elastic#81877)
  [Security Solution][Case] Fix connector's labeling (elastic#81824)
  Added simple test, which only covers successful case when edit happened right after task was complete previous execution
  [Maps] Fix EMS test (elastic#81856)
  [Security Solutions][Detections] - Fix bug, last response not showing for disabled rules (elastic#81783)
  skip flaky suite (elastic#81853)
  Fixed type checks and unit tests
  ...
oatkiller pushed a commit that referenced this pull request Oct 29, 2020
Resolver has a test plugin. It can be found in `x-pack/tests/plugin_functional`. You can try it out like this:
```
yarn start --plugin-path x-pack/test/plugin_functional/plugins/resolver_test/
```
This PR enables automated tests for the test plugin. This ensures that the test plugin will render.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Resolver Security Solution Resolver feature release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants