@@ -106,7 +106,6 @@ public abstract class AbstractST implements TestSeparator {
106
106
107
107
// Test-Frame integration stuff, remove everything else when not needed
108
108
protected final KubeResourceManager kubeResourceManager = KubeResourceManager .get ();
109
- protected final SetupClusterOperator setupClusterOperator = new SetupClusterOperator ();
110
109
111
110
protected final ResourceManager resourceManager = ResourceManager .getInstance ();
112
111
protected final TestSuiteNamespaceManager testSuiteNamespaceManager = TestSuiteNamespaceManager .getInstance ();
@@ -119,7 +118,7 @@ public abstract class AbstractST implements TestSeparator {
119
118
120
119
protected void assertNoCoErrorsLogged (String namespaceName , long sinceSeconds ) {
121
120
LOGGER .info ("Search in strimzi-cluster-operator log for errors in last {} second(s)" , sinceSeconds );
122
- String clusterOperatorLog = cmdKubeClient (namespaceName ).searchInLog (TestConstants .DEPLOYMENT , ResourceManager . getCoDeploymentName (), sinceSeconds , "Exception" , "Error" , "Throwable" , "OOM" );
121
+ String clusterOperatorLog = cmdKubeClient (namespaceName ).searchInLog (TestConstants .DEPLOYMENT , SetupClusterOperator . get (). getOperatorDeploymentName (), sinceSeconds , "Exception" , "Error" , "Throwable" , "OOM" );
123
122
assertThat (clusterOperatorLog , logHasNoUnexpectedErrors ());
124
123
}
125
124
@@ -229,7 +228,7 @@ void tearDownTestCase(ExtensionContext extensionContext) throws Exception {
229
228
try {
230
229
// This method needs to be disabled for the moment, as it brings flakiness and is unstable due to regexes and current matcher checks.
231
230
// Needs to be reworked on what errors to ignore. Better error logging should be added.
232
- // assertNoCoErrorsLogged(setupClusterOperator .getOperatorNamespace(), (long) extensionContext.getStore(ExtensionContext.Namespace.GLOBAL).get(TestConstants.TEST_EXECUTION_START_TIME_KEY));
231
+ // assertNoCoErrorsLogged(SetupClusterOperator.get() .getOperatorNamespace(), (long) extensionContext.getStore(ExtensionContext.Namespace.GLOBAL).get(TestConstants.TEST_EXECUTION_START_TIME_KEY));
233
232
} finally {
234
233
afterEachMayOverride ();
235
234
afterEachMustExecute ();
0 commit comments