From aa2af5a24b41d72f21fedb336c55cc5955edcd62 Mon Sep 17 00:00:00 2001 From: binoue Date: Wed, 19 Aug 2020 11:48:34 +0900 Subject: [PATCH] ci: clean up after SmokeTest Currently, SmokeTest is not cleaned up after the test. As this can affect other following tests, set rookCephCleanup as true. Signed-off-by: binoue Signed-off-by: Satoru Takeuchi --- tests/integration/ceph_smoke_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/ceph_smoke_test.go b/tests/integration/ceph_smoke_test.go index 85ddfbfbf..22d548c33 100644 --- a/tests/integration/ceph_smoke_test.go +++ b/tests/integration/ceph_smoke_test.go @@ -88,7 +88,7 @@ func (suite *SmokeSuite) SetupSuite() { usePVC: false, mons: 3, rbdMirrorWorkers: 1, - rookCephCleanup: false, + rookCephCleanup: true, skipOSDCreation: false, minimalMatrixK8sVersion: smokeSuiteMinimalTestVersion, rookVersion: installer.VersionMaster, @@ -302,6 +302,9 @@ func (suite *SmokeSuite) TestCreateRBDMirrorClient() { err := suite.helper.RBDMirrorClient.Create(suite.namespace, rbdMirrorName, 1) require.Nil(suite.T(), err) + + err = suite.helper.RBDMirrorClient.Delete(suite.namespace, rbdMirrorName) + require.Nil(suite.T(), err) } func (suite *SmokeSuite) getNonCanaryMonDeployments() ([]appsv1.Deployment, error) {