@@ -37,10 +37,10 @@ public class ItElasticLogging extends BaseTest {
37
37
private static final String elasticStackYamlLoc =
38
38
"kubernetes/samples/scripts/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml" ;
39
39
private final String loggingJarRepos =
40
- "https://github.com/oracle/weblogic-logging-exporter/releases/download/v0.1.1" ;
40
+ "https://github.com/oracle/weblogic-logging-exporter/releases/download/v0.1.1" ;
41
41
private final String wlsLoggingExpJar = "weblogic-logging-exporter-0.1.1.jar" ;
42
42
private final String snakeyamlJarRepos =
43
- "https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.23" ;
43
+ "https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.23" ;
44
44
private final String snakeyamlJar = "snakeyaml-1.23.jar" ;
45
45
private static Operator operator ;
46
46
private static Domain domain ;
@@ -224,13 +224,13 @@ public void testWeblogicLogSearch() throws Exception {
224
224
* @throws Exception exception
225
225
*/
226
226
@ Test
227
- public void testWLSLoggingExporter () throws Exception {
227
+ public void testWlsLoggingExporter () throws Exception {
228
228
Assume .assumeFalse (QUICKTEST );
229
229
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
230
230
logTestBegin (testMethodName );
231
231
232
232
// Download Weblogic logging exporter
233
- downloadWLSLoggingExporterJars ();
233
+ downloadWlsLoggingExporterJars ();
234
234
// Copy required resources to all wls server pods
235
235
copyResourceFilesToAllPods ();
236
236
@@ -265,7 +265,7 @@ private static void verifyLoggingExpReady(String index) throws Exception {
265
265
Assume .assumeNotNull (indexStatus );
266
266
Assume .assumeNotNull (indexName );
267
267
268
- if (!index .equalsIgnoreCase (kibanaIndexKey )) {
268
+ if (!index .equalsIgnoreCase (kibanaIndexKey )) {
269
269
// Add the logstash and wls index name to a Map
270
270
testVarMap .put (index , indexName );
271
271
}
@@ -278,16 +278,14 @@ private static void verifyLoggingExpReady(String index) throws Exception {
278
278
String [] indexNameArr =
279
279
indexName .split (System .getProperty ("line.separator" ));
280
280
281
- for (int i = 0 ; i < indexStatusArr .length ; i ++) {
282
- logger .info ("Health status of " + indexNameArr [i ] +
283
- " is: " + healthStatusArr [i ]);
284
- logger .info ("Index status of " + indexNameArr [i ] +
285
- " is: " + indexStatusArr [i ]);
281
+ for (int i = 0 ; i < indexStatusArr .length ; i ++) {
282
+ logger .info ("Health status of " + indexNameArr [i ] + " is: " + healthStatusArr [i ]);
283
+ logger .info ("Index status of " + indexNameArr [i ] + " is: " + indexStatusArr [i ]);
286
284
// Verify that the health status of index
287
285
Assume .assumeTrue (
288
286
index + " is not ready!" ,
289
- healthStatusArr [i ].trim ().equalsIgnoreCase ("yellow" ) ||
290
- healthStatusArr [i ].trim ().equalsIgnoreCase ("green" ));
287
+ healthStatusArr [i ].trim ().equalsIgnoreCase ("yellow" )
288
+ || healthStatusArr [i ].trim ().equalsIgnoreCase ("green" ));
291
289
// Verify that the index is open for use
292
290
Assume .assumeTrue (index + " index is not open!" ,
293
291
indexStatusArr [i ].trim ().equalsIgnoreCase ("open" ));
@@ -395,7 +393,7 @@ private String execSearchQuery(String queryCriteria, String index) throws Except
395
393
return result .stdout ();
396
394
}
397
395
398
- private void downloadWLSLoggingExporterJars () throws Exception {
396
+ private void downloadWlsLoggingExporterJars () throws Exception {
399
397
File loggingJatReposDir = new File (loggingExpArchiveLoc );
400
398
401
399
if (loggingJatReposDir .list ().length == 0 ) {
@@ -455,8 +453,7 @@ private void copyResourceFilesToAllPods() throws Exception {
455
453
456
454
private void copyResourceFilesToOnePod (String serverName , String domainNS )
457
455
throws Exception {
458
- String resourceDir =
459
- BaseTest .getProjectRoot () + "/integration-tests/src/test/resources" ;
456
+ String resourceDir = BaseTest .getProjectRoot () + "/integration-tests/src/test/resources" ;
460
457
String testResourceDir = resourceDir + "/loggingexporter" ;
461
458
final String loggingYamlFile = "WebLogicLoggingExporter.yaml" ;
462
459
0 commit comments