diff --git a/tests/integration/base_deploy_test.go b/tests/integration/base_deploy_test.go index c378d7253..89850dfce 100644 --- a/tests/integration/base_deploy_test.go +++ b/tests/integration/base_deploy_test.go @@ -141,8 +141,6 @@ func (op *TestCluster) SetInstallData(version string) {} // TearDownRook is a wrapper for tearDown after Suite func (op *TestCluster) Teardown() { - if op.installer.T().Failed() { - op.installer.GatherAllRookLogs(op.namespace, installer.SystemNamespace(op.namespace), op.installer.T().Name()) - } + op.installer.GatherAllRookLogs(op.namespace, installer.SystemNamespace(op.namespace), op.installer.T().Name()) op.installer.UninstallRook(op.helmInstalled, op.namespace) } diff --git a/tests/integration/cassandra_test.go b/tests/integration/cassandra_test.go index 589f7921e..a19d1d637 100644 --- a/tests/integration/cassandra_test.go +++ b/tests/integration/cassandra_test.go @@ -132,9 +132,9 @@ func (s *CassandraSuite) Teardown() { if s.T().Failed() { installer.GatherCRDObjectDebuggingInfo(s.k8sHelper, s.systemNamespace) installer.GatherCRDObjectDebuggingInfo(s.k8sHelper, s.namespace) - s.installer.GatherAllCassandraLogs(s.systemNamespace, s.namespace, s.T().Name()) } + s.installer.GatherAllCassandraLogs(s.systemNamespace, s.namespace, s.T().Name()) s.installer.UninstallCassandra(s.systemNamespace, s.namespace) } diff --git a/tests/integration/cockroachdb_test.go b/tests/integration/cockroachdb_test.go index 6097cfc06..c287a5229 100644 --- a/tests/integration/cockroachdb_test.go +++ b/tests/integration/cockroachdb_test.go @@ -91,8 +91,8 @@ func (suite *CockroachDBSuite) Teardown() { if suite.T().Failed() { installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.systemNamespace) installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.namespace) - suite.installer.GatherAllCockroachDBLogs(suite.systemNamespace, suite.namespace, suite.T().Name()) } + suite.installer.GatherAllCockroachDBLogs(suite.systemNamespace, suite.namespace, suite.T().Name()) suite.installer.UninstallCockroachDB(suite.systemNamespace, suite.namespace) } diff --git a/tests/integration/multi_cluster_test.go b/tests/integration/multi_cluster_test.go index 2785ee197..6a2ae0644 100644 --- a/tests/integration/multi_cluster_test.go +++ b/tests/integration/multi_cluster_test.go @@ -177,10 +177,9 @@ func (o MCTestOperations) Teardown() { o.T().FailNow() } }() - if o.T().Failed() { - o.installer.GatherAllRookLogs(o.namespace1, o.systemNamespace, o.T().Name()) - o.installer.GatherAllRookLogs(o.namespace2, o.systemNamespace, o.T().Name()) - } + + o.installer.GatherAllRookLogs(o.namespace1, o.systemNamespace, o.T().Name()) + o.installer.GatherAllRookLogs(o.namespace2, o.systemNamespace, o.T().Name()) o.installer.UninstallRookFromMultipleNS(false, installer.SystemNamespace(o.namespace1), o.namespace1, o.namespace2) } diff --git a/tests/integration/nfs_test.go b/tests/integration/nfs_test.go index 32c7be001..39cfe7acf 100644 --- a/tests/integration/nfs_test.go +++ b/tests/integration/nfs_test.go @@ -92,8 +92,8 @@ func (suite *NfsSuite) Teardown() { if suite.T().Failed() { installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.systemNamespace) installer.GatherCRDObjectDebuggingInfo(suite.k8shelper, suite.namespace) - suite.installer.GatherAllNFSServerLogs(suite.systemNamespace, suite.namespace, suite.T().Name()) } + suite.installer.GatherAllNFSServerLogs(suite.systemNamespace, suite.namespace, suite.T().Name()) suite.installer.UninstallNFSServer(suite.systemNamespace, suite.namespace) }