@@ -207,7 +207,6 @@ public void test03_AppendConfiguration() throws Exception {
207
207
assertTrue (page .asText ().contains ("WebAppComponentRuntime" ));
208
208
// check previous config is there
209
209
assertTrue (page .asText ().contains ("JVMRuntime" ));
210
- // due coordinator bug just checking one of servers
211
210
assertTrue (
212
211
checkMetricsViaPrometheus (
213
212
prometheusSearchKey1 , "\" weblogic_serverName\" :\" managed-server1\" " )
@@ -778,7 +777,7 @@ private static void deployMonitoringExporterPrometethusGrafana(
778
777
StringBuffer deployCoordinatorImage = new StringBuffer ();
779
778
deployCoordinatorImage
780
779
.append (" kubectl create -f " )
781
- .append (resourceExporterDir + "/coordinator_" + domainNS + ".yaml " );
780
+ .append (samplesDir + "/coordinator_" + domainNS + ".yaml " );
782
781
TestUtils .exec (deployCoordinatorImage .toString ());
783
782
784
783
crdCmd = " kubectl apply -f " + samplesDir + "grafana-deployment.yaml" ;
@@ -795,10 +794,9 @@ private static void deployMonitoringExporterPrometethusGrafana(
795
794
* @throws IOException when copying files from source location to staging area fails
796
795
*/
797
796
private static void createCoordinatorFile (String domainNS ) throws IOException {
798
- // String coordinatorDir = BaseTest.getProjectRoot() +
799
- // "/integration-tests/src/test/resources/exporter/";
797
+ String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/" ;
800
798
Path src = Paths .get (resourceExporterDir + "/coordinator.yml" );
801
- Path dst = Paths .get (resourceExporterDir + "/coordinator_" + domainNS + ".yaml" );
799
+ Path dst = Paths .get (samplesDir + "/coordinator_" + domainNS + ".yaml" );
802
800
if (!dst .toFile ().exists ()) {
803
801
logger .log (Level .INFO , "Copying {0}" , src .toString ());
804
802
Charset charset = StandardCharsets .UTF_8 ;
0 commit comments