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

Improve Saved object import functional test assertions #20409

Merged
merged 4 commits into from
Jul 3, 2018

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jul 3, 2018

Fixes #20398 by adding better assertions that verify that the imported saved objects where actually imported. The new assertions verify the imported saved object title exist. The saved object titles have been given names that better describe the test situations.

This PR also disables override warning functional tests in _import_objects that do not actually test anything. Having the tests enabled is misleading that the functionality is working and getting tested when that is not the case. I opened #20397 to report the issue.

@nreese nreese changed the title disable broken functional tests in saved object import Improve Saved object import functional test assertions Jul 3, 2018
@nreese nreese requested a review from chrisronline July 3, 2018 14:49
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

💯 These are solid improvements! Thanks @nreese.

Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for finding these issues and fixing them!

@nreese nreese merged commit c0f0aae into elastic:master Jul 3, 2018
nreese added a commit to nreese/kibana that referenced this pull request Jul 3, 2018
* disable broken functional tests in saved object import

* add better assertions to verify objects are imported as expected

* more discriptive variable name

* add test case for imported object linked to saved search when saved search does not exist
nreese added a commit that referenced this pull request Jul 3, 2018
* disable broken functional tests in saved object import

* add better assertions to verify objects are imported as expected

* more discriptive variable name

* add test case for imported object linked to saved search when saved search does not exist
@nreese nreese deleted the disable_broken_functional_tests branch July 13, 2018 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants