|
3 | 3 |
|
4 | 4 | package oracle.weblogic.kubernetes;
|
5 | 5 |
|
| 6 | +import java.io.IOException; |
6 | 7 | import java.util.ArrayList;
|
7 | 8 | import java.util.Collections;
|
8 | 9 | import java.util.List;
|
9 | 10 |
|
10 | 11 | import oracle.weblogic.domain.AuxiliaryImage;
|
11 | 12 | import oracle.weblogic.domain.DomainResource;
|
| 13 | +import oracle.weblogic.kubernetes.actions.impl.WDTArchiveHelper; |
12 | 14 | import oracle.weblogic.kubernetes.actions.impl.primitive.Command;
|
13 | 15 | import oracle.weblogic.kubernetes.actions.impl.primitive.CommandParams;
|
14 | 16 | import oracle.weblogic.kubernetes.actions.impl.primitive.WitParams;
|
|
43 | 45 | import static oracle.weblogic.kubernetes.TestConstants.WLSIMG_BUILDER;
|
44 | 46 | import static oracle.weblogic.kubernetes.actions.ActionConstants.ARCHIVE_DIR;
|
45 | 47 | import static oracle.weblogic.kubernetes.actions.ActionConstants.MODEL_DIR;
|
46 |
| -import static oracle.weblogic.kubernetes.actions.TestActions.buildAppArchive; |
47 | 48 | import static oracle.weblogic.kubernetes.actions.TestActions.defaultAppParams;
|
48 | 49 | import static oracle.weblogic.kubernetes.actions.TestActions.deleteImage;
|
49 | 50 | import static oracle.weblogic.kubernetes.assertions.TestAssertions.appAccessibleInPod;
|
@@ -126,10 +127,18 @@ static void initAll(@Namespaces(2) List<String> namespaces) {
|
126 | 127 | ENCRYPION_USERNAME_DEFAULT, ENCRYPION_PASSWORD_DEFAULT);
|
127 | 128 |
|
128 | 129 | // build app
|
129 |
| - assertTrue(buildAppArchive(defaultAppParams() |
130 |
| - .srcDirList(Collections.singletonList(MII_BASIC_APP_NAME)) |
131 |
| - .appName(MII_BASIC_APP_NAME)), |
132 |
| - String.format("Failed to create app archive for %s", MII_BASIC_APP_NAME)); |
| 130 | + try { |
| 131 | + // createArchive app |
| 132 | + assertTrue(WDTArchiveHelper |
| 133 | + .withParams(defaultAppParams() |
| 134 | + .srcDirList(Collections.singletonList(MII_BASIC_APP_NAME)) |
| 135 | + .appName(MII_BASIC_APP_NAME)) |
| 136 | + .createArchive(), |
| 137 | + String.format("Failed to create app archive for %s", MII_BASIC_APP_NAME)); |
| 138 | + } catch (IOException ex) { |
| 139 | + getLogger().severe(ex.getLocalizedMessage()); |
| 140 | + } |
| 141 | + |
133 | 142 | }
|
134 | 143 |
|
135 | 144 | /**
|
|
0 commit comments