@@ -198,6 +198,90 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
198
198
199
199
try {
200
200
ExecAndPrintLog ("docker images" );
201
+ String images1 [] = {
202
+ "9de773965c6b" ,
203
+ "5c523ecea17f" ,
204
+ "634ab59891b8" ,
205
+ "c9ea22528100" ,
206
+ "77979f22eea8" ,
207
+ "5261b5bb1682" ,
208
+ "fa63a9fa105a" ,
209
+ "b52f5dd28662" ,
210
+ "52c5109f9ad9" ,
211
+ "e6205477ca28" ,
212
+ "9b54850cad70" ,
213
+ "a3c1f631d78b" ,
214
+ "321290079459" ,
215
+ "0abdfd581194" ,
216
+ "46641d6abd6a" ,
217
+ "4d0e7bd02c03" ,
218
+ "4d0e7bd02c03" ,
219
+ "aaea54bce1ea" ,
220
+ "1b2806e9b91b" ,
221
+ "26310d8c7e81" ,
222
+ "b8d808b2fc8c" ,
223
+ "a570b3a13826" ,
224
+ "e81b76899dd9" ,
225
+ "060dff5892a6" ,
226
+ "1f1b15e1640a" ,
227
+ "83d42e23d7b5" ,
228
+ "ca9b2c67199a" ,
229
+ "1997b422fe38" ,
230
+ "f8356b77b86a" ,
231
+ "6cbdf81e788b" ,
232
+ "d2659213623e" ,
233
+ "373153704253" ,
234
+ "584151651c94" ,
235
+ "d1b3d8091750" ,
236
+ "1af5e0f6d09f" ,
237
+ "1eb1067c8bc1" ,
238
+ "d4b8f09c756c" ,
239
+ "20853267c6cd" ,
240
+ "a9436d968bd6" ,
241
+ "40f75e58f1b8" ,
242
+ "18794492338f" ,
243
+ "9cec71b9f912" ,
244
+ "a75eca5a040a" ,
245
+ "f4cd13108db7" ,
246
+ "a25cb4eeaacd" ,
247
+ "1ccec66cf648" ,
248
+ "03aae768cc41" ,
249
+ "d1e87f62f9a1" ,
250
+ "180b1ae20d0b" ,
251
+ "e3098cafb0d6" ,
252
+ "74bc3f982470" ,
253
+ "d3efd9b5d292" ,
254
+ "ddf1f76315de" ,
255
+ "1b5a237afc1e" ,
256
+ "bef9fd7ffdb0" ,
257
+ "963a3f8a3b1d" ,
258
+ "a3b2f2fa2c91" ,
259
+ "c8f1bcbd4825" ,
260
+ "97c40ae16c56" ,
261
+ "44abca094a5b" ,
262
+ "fafe74bcdf98" ,
263
+ "944d31a10b23" ,
264
+ "f1febf596a81" ,
265
+ "efc87baca08f" ,
266
+ "48072f5521f8" ,
267
+ "ac47af0772dd" ,
268
+ "84321a1dbd53" ,
269
+ "1802f7158e13" ,
270
+ "307fe1f9cc96" ,
271
+ "7e23b521d1be" ,
272
+ "d815f1273f3a" ,
273
+ "e33cfeb1defc" ,
274
+ "4f45aa601eef" ,
275
+ "6053dbc2d144" ,
276
+ "7c4672911c1c" ,
277
+ "0224d6384efc" ,
278
+ "ec52e4bf2e5a" ,
279
+ "e927f202c152" ,
280
+ "4c40c13af322" ,
281
+ "e9a1a5eff9c4" ,
282
+ "d58f0d158db5" ,
283
+ "d58f0d158db5"
284
+ };
201
285
String images [] = {
202
286
System .getenv ("REPO_REGISTRY" ) + "/weblogick8s/weblogic-kubernetes-operator" ,
203
287
System .getenv ("REPO_REGISTRY" ) + "/weblogick8s/domain-home-in-image" ,
@@ -208,10 +292,9 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
208
292
"store/oracle/weblogic" ,
209
293
System .getenv ("REPO_REGISTRY" ) + "/weblogick8s/store/oracle/weblogic"
210
294
};
211
- for (String image : images ) {
212
- ExecAndPrintLog ("docker rmi `docker images -q " + image + " `" );
295
+ for (String image : images1 ) {
296
+ ExecAndPrintLog ("docker rmi " + image );
213
297
}
214
- ExecAndPrintLog ("docker rmi $(docker images -f \" dangling=true\" -q)" );
215
298
ExecAndPrintLog ("docker images" );
216
299
logger .info (
217
300
"About to verifyDomainServerPodRestart for Domain: "
@@ -234,8 +317,17 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
234
317
ExecAndPrintLog (tag );
235
318
ExecAndPrintLog ("docker images" );
236
319
320
+ ExecAndPrintLog (
321
+ "docker login "
322
+ + System .getenv ("REPO_REGISTRY" )
323
+ + " -u "
324
+ + System .getenv ("REPO_USERNAME" )
325
+ + " -p "
326
+ + System .getenv ("REPO_PASSWORD" ));
327
+ ExecAndPrintLog ("docker push " + newImage );
328
+
237
329
// login and push image to ocir
238
- TestUtils .loginAndPushImageToOCIR (newImage );
330
+ // TestUtils.loginAndPushImageToOCIR(newImage);
239
331
240
332
// create ocir registry secret in the same ns as domain which is used while pulling the
241
333
// image
0 commit comments