@@ -37,10 +37,10 @@ public class ItElasticLogging extends BaseTest {
3737 private static final String elasticStackYamlLoc =
3838 "kubernetes/samples/scripts/elasticsearch-and-kibana/elasticsearch_and_kibana.yaml" ;
3939 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" ;
4141 private final String wlsLoggingExpJar = "weblogic-logging-exporter-0.1.1.jar" ;
4242 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" ;
4444 private final String snakeyamlJar = "snakeyaml-1.23.jar" ;
4545 private static Operator operator ;
4646 private static Domain domain ;
@@ -224,13 +224,13 @@ public void testWeblogicLogSearch() throws Exception {
224224 * @throws Exception exception
225225 */
226226 @ Test
227- public void testWLSLoggingExporter () throws Exception {
227+ public void testWlsLoggingExporter () throws Exception {
228228 Assume .assumeFalse (QUICKTEST );
229229 String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
230230 logTestBegin (testMethodName );
231231
232232 // Download Weblogic logging exporter
233- downloadWLSLoggingExporterJars ();
233+ downloadWlsLoggingExporterJars ();
234234 // Copy required resources to all wls server pods
235235 copyResourceFilesToAllPods ();
236236
@@ -265,7 +265,7 @@ private static void verifyLoggingExpReady(String index) throws Exception {
265265 Assume .assumeNotNull (indexStatus );
266266 Assume .assumeNotNull (indexName );
267267
268- if (!index .equalsIgnoreCase (kibanaIndexKey )) {
268+ if (!index .equalsIgnoreCase (kibanaIndexKey )) {
269269 // Add the logstash and wls index name to a Map
270270 testVarMap .put (index , indexName );
271271 }
@@ -278,16 +278,14 @@ private static void verifyLoggingExpReady(String index) throws Exception {
278278 String [] indexNameArr =
279279 indexName .split (System .getProperty ("line.separator" ));
280280
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 ]);
286284 // Verify that the health status of index
287285 Assume .assumeTrue (
288286 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" ));
291289 // Verify that the index is open for use
292290 Assume .assumeTrue (index + " index is not open!" ,
293291 indexStatusArr [i ].trim ().equalsIgnoreCase ("open" ));
@@ -395,7 +393,7 @@ private String execSearchQuery(String queryCriteria, String index) throws Except
395393 return result .stdout ();
396394 }
397395
398- private void downloadWLSLoggingExporterJars () throws Exception {
396+ private void downloadWlsLoggingExporterJars () throws Exception {
399397 File loggingJatReposDir = new File (loggingExpArchiveLoc );
400398
401399 if (loggingJatReposDir .list ().length == 0 ) {
@@ -455,8 +453,7 @@ private void copyResourceFilesToAllPods() throws Exception {
455453
456454 private void copyResourceFilesToOnePod (String serverName , String domainNS )
457455 throws Exception {
458- String resourceDir =
459- BaseTest .getProjectRoot () + "/integration-tests/src/test/resources" ;
456+ String resourceDir = BaseTest .getProjectRoot () + "/integration-tests/src/test/resources" ;
460457 String testResourceDir = resourceDir + "/loggingexporter" ;
461458 final String loggingYamlFile = "WebLogicLoggingExporter.yaml" ;
462459
0 commit comments