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

ensure test env normal and completed before cases run #386

Merged
merged 3 commits into from
Apr 15, 2019

Conversation

xiaojingchen
Copy link
Contributor

currently, stability test directly runs on k8s cluster without the test env check, this may cause invalid test and results. this pr add test env check and recover to ensure it is normal before the stability test cases start running; in the other hand if recover failed, the stability test will be failed, need to recover test environment manually.

@weekface weekface added the test/stability stability tests label Apr 11, 2019
@@ -39,6 +39,11 @@ func main() {
conf := tests.ParseConfigOrDie()
cli, kubeCli := client.NewCliOrDie()
oa := tests.NewOperatorActions(cli, kubeCli, conf)
fta := tests.NewFaultTriggerAction(cli, kubeCli, conf)
err := fta.CheckAndRecoverEnv()
Copy link
Contributor

Choose a reason for hiding this comment

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

CheckAndRecoverEnvOrDie()

@xiaojingchen xiaojingchen changed the title [WIP] ensure test env normal and completed before cases run ensure test env normal and completed before cases run Apr 15, 2019
@xiaojingchen
Copy link
Contributor Author

/run-e2e-tests

Copy link
Contributor

@weekface weekface left a comment

Choose a reason for hiding this comment

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

lgtm

@weekface weekface merged commit ecdf6df into pingcap:master Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test/stability stability tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants