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

Make panel action tests more generic #22174

Merged
merged 9 commits into from
Aug 20, 2018

Conversation

timroes
Copy link
Contributor

@timroes timroes commented Aug 20, 2018

This PR makes the panel action tests more generic and giving the option of having plugin tests in general.

It also fixes the issue, that these weren't executed at all on CI and thus already were broken since #19261 when env was removed.

@spalger this test suite might qualify later for pulling it into it's separate Jenkins job, right now it adds around 5 minutes to our build time ☹️

@timroes timroes added test WIP Work in progress labels Aug 20, 2018
@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@stacey-gammon stacey-gammon 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 passing tests (code review only). Thanks for following through on this, great to have it generalized.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@timroes timroes added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.0.0 v6.5.0 and removed WIP Work in progress labels Aug 20, 2018
Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

I'd love to add a plugin to this that is generated by the plugin generator, and then treat that as a "snapshot" test for the plugin generator, making sure that is matches the generated output that is committed to the repo, and requiring that we update the snapshot and possible any tests whenever we update the plugin generator.

Code LGTM, relying on CI to verify it works.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@timroes timroes merged commit 743edc6 into elastic:master Aug 20, 2018
@timroes timroes deleted the generic-plugin-tests branch August 20, 2018 19:49
timroes added a commit to timroes/kibana that referenced this pull request Aug 20, 2018
* Make panel action tests more generic

* Remove test file

* Add simple app tests

* Shorten/fix import

* Remove unneeded task

* Add debug output

* Allow duplicate --plugin-path params

* Remove debugging options

* Add README
timroes added a commit that referenced this pull request Aug 20, 2018
* Make panel action tests more generic

* Remove test file

* Add simple app tests

* Shorten/fix import

* Remove unneeded task

* Add debug output

* Allow duplicate --plugin-path params

* Remove debugging options

* Add README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc test v6.5.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants