Skip to content

Commit c3c115b

Browse files
Moritz Clasmeierclaude
andcommitted
Rename dumpClusterOnFailure to dumpClusterStateOnFailure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0185b5e commit c3c115b

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/e2e/basic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
// TestDeployBothSimple tests deploying both components together (simplest scenario)
1313
func TestDeployBothSimple(t *testing.T) {
14-
dumpClusterOnFailure(t)
14+
dumpClusterStateOnFailure(t)
1515

1616
// Create temporary envrc file
1717
envrcFile, err := os.CreateTemp(t.TempDir(), ".envrc.roxie-test-*")

tests/e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestMain(m *testing.M) {
3939
}
4040

4141
func TestDeployBothComponentsTogetherInSingleNamespace(t *testing.T) {
42-
dumpClusterOnFailure(t)
42+
dumpClusterStateOnFailure(t)
4343

4444
// Create temporary envrc file.
4545
envrcFile, err := os.CreateTemp(t.TempDir(), ".envrc.roxie-test-*")

tests/e2e/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ var clusterDumpNamespaces = []string{
246246
"stackrox",
247247
}
248248

249-
func dumpClusterOnFailure(t *testing.T) {
249+
func dumpClusterStateOnFailure(t *testing.T) {
250250
t.Helper()
251251
t.Cleanup(func() {
252252
if !t.Failed() {

tests/e2e/olm_switch_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func verifyOperatorDeploymentExists(t *testing.T) {
6565

6666
// TestOLMToNonOLMSwitch tests switching from OLM operator to non-OLM operator
6767
func TestOLMToNonOLMSwitch(t *testing.T) {
68-
dumpClusterOnFailure(t)
68+
dumpClusterStateOnFailure(t)
6969

7070
if os.Getenv("SKIP_OLM_TESTS") != "" {
7171
t.Skip("SKIP_OLM_TESTS is set")
@@ -115,7 +115,7 @@ func TestOLMToNonOLMSwitch(t *testing.T) {
115115

116116
// TestNonOLMToOLMSwitch tests switching from non-OLM operator to OLM operator
117117
func TestNonOLMToOLMSwitch(t *testing.T) {
118-
dumpClusterOnFailure(t)
118+
dumpClusterStateOnFailure(t)
119119

120120
if os.Getenv("SKIP_OLM_TESTS") != "" {
121121
t.Skip("SKIP_OLM_TESTS is set")
@@ -165,7 +165,7 @@ func TestNonOLMToOLMSwitch(t *testing.T) {
165165

166166
// TestOLMOperatorVersionUpgrade tests that OLM operator version mismatches trigger teardown and redeploy
167167
func TestOLMOperatorVersionUpgrade(t *testing.T) {
168-
dumpClusterOnFailure(t)
168+
dumpClusterStateOnFailure(t)
169169

170170
if os.Getenv("SKIP_OLM_TESTS") != "" {
171171
t.Skip("SKIP_OLM_TESTS is set")
@@ -229,7 +229,7 @@ func TestOLMOperatorVersionUpgrade(t *testing.T) {
229229

230230
// TestSecuredClusterWithOLMSwitch tests that secured-cluster deployment also respects OLM mode switches
231231
func TestSecuredClusterWithOLMSwitch(t *testing.T) {
232-
dumpClusterOnFailure(t)
232+
dumpClusterStateOnFailure(t)
233233

234234
if os.Getenv("SKIP_OLM_TESTS") != "" {
235235
t.Skip("SKIP_OLM_TESTS is set")

0 commit comments

Comments
 (0)