@@ -128,7 +128,7 @@ public void testCustomSitConfigOverridesForDomain() throws Exception {
128
128
ExecResult result =
129
129
TestUtils .exec (
130
130
KUBE_EXEC_CMD
131
- + " 'sh runSitConfigTests.sh"
131
+ + " 'sh runSitConfigTests.sh "
132
132
+ fqdn
133
133
+ " "
134
134
+ T3CHANNELPORT
@@ -163,7 +163,7 @@ public void testCustomSitConfigOverridesForJdbc() throws Exception {
163
163
ExecResult result =
164
164
TestUtils .exec (
165
165
KUBE_EXEC_CMD
166
- + " 'sh runSitConfigTests.sh"
166
+ + " 'sh runSitConfigTests.sh "
167
167
+ fqdn
168
168
+ " "
169
169
+ T3CHANNELPORT
@@ -196,7 +196,7 @@ public void testCustomSitConfigOverridesForJms() throws Exception {
196
196
ExecResult result =
197
197
TestUtils .exec (
198
198
KUBE_EXEC_CMD
199
- + " 'sh runSitConfigTests.sh"
199
+ + " 'sh runSitConfigTests.sh "
200
200
+ fqdn
201
201
+ " "
202
202
+ T3CHANNELPORT
@@ -226,11 +226,10 @@ public void testCustomSitConfigOverridesForWldf() throws Exception {
226
226
boolean testCompletedSuccessfully = false ;
227
227
String testMethod = new Object () {}.getClass ().getEnclosingMethod ().getName ();
228
228
logTestBegin (testMethod );
229
- TestUtils .exec (fqdn );
230
229
ExecResult result =
231
230
TestUtils .exec (
232
231
KUBE_EXEC_CMD
233
- + " 'sh runSitConfigTests.sh"
232
+ + " 'sh runSitConfigTests.sh "
234
233
+ fqdn
235
234
+ " "
236
235
+ T3CHANNELPORT
@@ -278,17 +277,20 @@ private static void copySitConfigFiles() throws IOException {
278
277
"jms-ClusterJmsSystemResource.xml" ,
279
278
"version.txt"
280
279
};
281
- for (String file : files ) {
280
+ for (String file : files ) {
282
281
Path path = Paths .get (src_dir , file );
282
+ logger .log (Level .INFO , "Copying {0}" , path .toString ());
283
283
Charset charset = StandardCharsets .UTF_8 ;
284
284
String content = new String (Files .readAllBytes (path ), charset );
285
285
content = content .replaceAll ("JDBC_URL" , JDBC_URL );
286
286
path = Paths .get (dst_dir , file );
287
- Files .write (path , content .getBytes (charset ), StandardOpenOption .TRUNCATE_EXISTING );
287
+ logger .log (Level .INFO , "to {0}" , path .toString ());
288
+ Files .write (path , content .getBytes (charset ));
288
289
}
289
290
}
290
291
291
292
private void assertResult (ExecResult result ) {
293
+ logger .log (Level .INFO , result .stdout ().trim ());
292
294
Assert .assertFalse (result .stdout ().toLowerCase ().contains ("error" ));
293
295
Assert .assertFalse (result .stderr ().toLowerCase ().contains ("error" ));
294
296
Assert .assertEquals (0 , result .exitValue ());
0 commit comments