|
10 | 10 |
|
11 | 11 | import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;
|
12 | 12 | import com.gargoylesoftware.htmlunit.WebClient;
|
13 |
| -import com.gargoylesoftware.htmlunit.html.HtmlPage; |
14 |
| -import com.gargoylesoftware.htmlunit.html.HtmlForm; |
15 |
| -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; |
16 | 13 | import com.gargoylesoftware.htmlunit.html.HtmlFileInput;
|
| 14 | +import com.gargoylesoftware.htmlunit.html.HtmlForm; |
| 15 | +import com.gargoylesoftware.htmlunit.html.HtmlPage; |
17 | 16 | import com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput;
|
| 17 | +import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; |
18 | 18 | import java.io.BufferedReader;
|
19 | 19 | import java.io.InputStream;
|
20 | 20 | import java.io.InputStreamReader;
|
|
27 | 27 | import oracle.kubernetes.operator.utils.Domain;
|
28 | 28 | import oracle.kubernetes.operator.utils.Operator;
|
29 | 29 | import oracle.kubernetes.operator.utils.TestUtils;
|
| 30 | +import org.junit.AfterClass; |
30 | 31 | import org.junit.Assert;
|
31 | 32 | import org.junit.Assume;
|
| 33 | +import org.junit.BeforeClass; |
32 | 34 | import org.junit.FixMethodOrder;
|
33 | 35 | import org.junit.Test;
|
34 |
| -import org.junit.AfterClass; |
35 |
| -import org.junit.BeforeClass; |
36 | 36 | import org.junit.runners.MethodSorters;
|
37 | 37 |
|
38 | 38 | /** This test is used for testing Monitoring Exporter with Operator(s) */
|
@@ -235,16 +235,16 @@ public void test01_ReplaceConfiguration() throws Exception {
|
235 | 235 | String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
|
236 | 236 | logTestBegin(testMethodName);
|
237 | 237 | boolean testCompletedSuccessfully = false;
|
238 |
| -/* |
239 |
| - exporterUrl = "http://slc13kef.us.oracle.com:" + "30305" + "/wls-exporter/"; |
240 |
| - metricsUrl = exporterUrl + "metrics"; |
241 |
| - configPath = |
242 |
| - "/scratch/mkogan/weblogic-kubernetes-operator/integration-tests/src/test/resources/exporter"; |
243 |
| - String testWSAppTotalServletInvokesSearchKey1 = |
244 |
| - "weblogic_servlet_invocation_total_count{app=\"testwsapp\",name=\"managed-server1_/TestWSApp\",servletName=\"TestWSAppServlethttp\"}"; |
245 |
| - String testWSAppTotalServletInvokesSearchKey2 = |
246 |
| - "weblogic_servlet_invocation_total_count{app=\"testwsapp\",name=\"managed-server2_/TestWSApp\",servletName=\"TestWSAppServlethttp\"}"; |
247 |
| -*/ |
| 238 | + /* |
| 239 | + exporterUrl = "http://slc13kef.us.oracle.com:" + "30305" + "/wls-exporter/"; |
| 240 | + metricsUrl = exporterUrl + "metrics"; |
| 241 | + configPath = |
| 242 | + "/scratch/mkogan/weblogic-kubernetes-operator/integration-tests/src/test/resources/exporter"; |
| 243 | + String testWSAppTotalServletInvokesSearchKey1 = |
| 244 | + "weblogic_servlet_invocation_total_count{app=\"testwsapp\",name=\"managed-server1_/TestWSApp\",servletName=\"TestWSAppServlethttp\"}"; |
| 245 | + String testWSAppTotalServletInvokesSearchKey2 = |
| 246 | + "weblogic_servlet_invocation_total_count{app=\"testwsapp\",name=\"managed-server2_/TestWSApp\",servletName=\"TestWSAppServlethttp\"}"; |
| 247 | + */ |
248 | 248 | HtmlPage page = submitConfigureForm(exporterUrl, "replace", configPath + "/rest_jvm.yml");
|
249 | 249 |
|
250 | 250 | // check for updated metrics
|
|
0 commit comments