Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 96ca7bb

Browse files
ddsharperjeberhard
authored andcommitted
enable checkstyle on test sources (#1270)
1 parent 711f1e9 commit 96ca7bb

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

‎integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ private static void gitCloneBuildMonitoringExporter() throws Exception {
162162
resourceExporterDir,
163163
monitoringExporterScriptDir,
164164
"buildMonitoringExporter.sh",
165-
monitoringExporterDir + " " + resourceExporterDir + " " + monitoringExporterBranchVer + " " + MONITORING_EXPORTER_VERSION);
165+
monitoringExporterDir + " " + resourceExporterDir + " " + monitoringExporterBranchVer + " "
166+
+ MONITORING_EXPORTER_VERSION);
166167
}
167168

168169
/**
@@ -959,7 +960,8 @@ private static void installPrometheusGrafanaWebHookMySQLCoordinatorWLSImage() th
959960
resourceExporterDir,
960961
monitoringExporterScriptDir,
961962
"createPromGrafanaMySqlCoordWebhook.sh",
962-
monitoringExporterDir + " " + resourceExporterDir + " " + PROMETHEUS_CHART_VERSION + " " + GRAFANA_CHART_VERSION);
963+
monitoringExporterDir + " " + resourceExporterDir + " " + PROMETHEUS_CHART_VERSION + " "
964+
+ GRAFANA_CHART_VERSION);
963965

964966
String webhookPod = getPodName("app=webhook", "webhook");
965967
TestUtils.checkPodReady(webhookPod, "webhook");
@@ -1006,9 +1008,9 @@ static void checkPromGrafana() throws Exception {
10061008
+ " --data-binary @grafana/dashboard.json";
10071009
TestUtils.exec(crdCmd);
10081010
crdCmd = " cd "
1009-
+ monitoringExporterEndToEndDir
1010-
+ " && " +
1011-
"curl -v -H 'Content-Type: application/json' -X GET http://admin:12345678@$HOSTNAME:31000/api/dashboards/db/weblogic-server-dashboard";
1011+
+ monitoringExporterEndToEndDir
1012+
+ " && "
1013+
+ "curl -v -H 'Content-Type: application/json' -X GET http://admin:12345678@$HOSTNAME:31000/api/dashboards/db/weblogic-server-dashboard";
10121014
ExecResult result = ExecCommand.exec(crdCmd);
10131015
assertTrue(result.stdout().contains("wls_jvm_uptime"));
10141016
assertTrue(
@@ -1154,7 +1156,7 @@ private static boolean checkMetricsViaPrometheus(String searchKey, String expect
11541156
* @param yamlFile - Name of the yaml file to make changes.
11551157
* @throws IOException exception
11561158
*/
1157-
private static void addRestOptToYaml(String yamlFile, String prop, int restPort) throws IOException {
1159+
private static void addRestOptToYaml(String yamlFile, String prop, int restPort) throws IOException {
11581160
ObjectMapper objectMapper = new ObjectMapper();
11591161

11601162
ObjectMapper yamlReader = new ObjectMapper(new YAMLFactory());

‎pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<failOnViolation>true</failOnViolation>
8787
<violationSeverity>warning</violationSeverity>
8888
<includeTestResources>true</includeTestResources>
89+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
8990
</configuration>
9091
</execution>
9192
</executions>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /