Skip to content

Conversation

@renekalff
Copy link

Currently the system testrunner is calling TearDown itself bypassing the defer-cleanup functionality. This MR resolves this by leaving calling TearDown to the testrunner main function.

@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 29, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: mtojek commented: /test

  • Start Time: 2021-06-30T12:53:14.476+0000

  • Duration: 23 min 5 sec

  • Commit: 68e3390

Test stats 🧪

Test Results
Failed 0
Passed 315
Skipped 2
Total 317

Trends 🧪

Image of Build Times

Image of Tests

@mtojek
Copy link
Contributor

mtojek commented Jun 30, 2021

Hi @renekalff , thank you for the PR. Could you please describe manual testing steps to verify the fix?

@renekalff
Copy link
Author

renekalff commented Jun 30, 2021

Hi @renekalff , thank you for the PR. Could you please describe manual testing steps to verify the fix?

After applying this fix run elastic-package test system —defer-cleanup 1m -v in a package with system testing defined like the nginx package.

After loading the resources a debug message will be displayed that cleanup is deferred for one minute. Now manual inspection is possible, for example using kibana.

After one minute cleanup is performed and the documents are removed from the datastream indexes.

Setting a longer delay will allow you to develop the kibana dashboards based on the test events. Changes made in the dashboards or visualizations won’t be lost in the cleanup process nor will they be overwritten on subsequent system test executions.

@mtojek
Copy link
Contributor

mtojek commented Jun 30, 2021

/test

1 similar comment
@mtojek
Copy link
Contributor

mtojek commented Jun 30, 2021

/test

@mtojek mtojek self-requested a review June 30, 2021 14:11
Copy link
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the fix!

@mtojek mtojek merged commit 7ca3684 into elastic:master Jun 30, 2021
mtojek pushed a commit to mtojek/elastic-package that referenced this pull request Jul 1, 2021
mtojek added a commit that referenced this pull request Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants