Skip to content

Commit 7456543

Browse files
hzhao-githubhuizhao
andauthored
Made changes to ItMiiSampleHelper.java to avoid failing test next to it (#2504)
Co-authored-by: huizhao <huizhao@huizhao-1.subnet2ad1phx.devweblogicphx.oraclevcn.com>
1 parent 88912e2 commit 7456543

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/ItMiiSampleHelper.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,20 @@ public static void callUpdateUseCase(String args,
301301
*/
302302
public static void callCheckMiiSampleSource(String args,
303303
String errString) {
304+
/*
304305
final String baseImageNameKey = "BASE_IMAGE_NAME";
305306
envMap.remove(baseImageNameKey);
306307
execTestScriptAndAssertSuccess(domainType, args, errString);
307-
envMap.put(baseImageNameKey, WEBLOGIC_IMAGE_NAME);
308+
envMap.put(baseImageNameKey, WEBLOGIC_IMAGE_NAME);*/
309+
310+
final String baseImageNameKey = "BASE_IMAGE_NAME";
311+
final String origImageName = envMap.get(baseImageNameKey);
312+
try {
313+
envMap.remove(baseImageNameKey);
314+
execTestScriptAndAssertSuccess(domainType, args, errString);
315+
} finally {
316+
envMap.put(baseImageNameKey,origImageName);
317+
}
308318
}
309319

310320
/**

0 commit comments

Comments
 (0)