Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1233#discussion_r42351565
  
    --- Diff: 
flink-tests/src/test/java/org/apache/flink/test/web/WebFrontendITCase.java ---
    @@ -110,21 +112,18 @@ public void getTaskmanagers() {
                }
        }
     
    -// TODO activate this test after logging retrieval has been added to the 
new web frontend
    -// @Test
    -// public void getLogfiles() {
    -//         try {
    -//                 String logPath = 
cluster.configuration().getString(ConfigConstants.JOB_MANAGER_WEB_LOG_PATH_KEY, 
null);
    -//                 Assert.assertNotNull(logPath);
    -//                 FileUtils.writeStringToFile(new File(logPath, 
"jobmanager-main.log"), "test content");
    -//
    -//                 String logs = 
getFromHTTP("http://localhost:8081/logInfo";);
    -//                 Assert.assertTrue(logs.contains("test content"));
    -//         }catch(Throwable e) {
    -//                 e.printStackTrace();
    -//                 Assert.fail(e.getMessage());
    -//         }
    -// }
    +   @Test
    +   public void getLogAndStdoutFiles() {
    +           try {
    +                   String logs = getFromHTTP("http://localhost:"; + port + 
"/jobmanager/log");
    +                   Assert.assertTrue(logs.contains("job manager log"));
    +                   logs = getFromHTTP("http://localhost:"; + port + 
"/jobmanager/stdout");
    +                   Assert.assertTrue(logs.contains("job manager out"));
    --- End diff --
    
    How about writing something to the log or stdout and checking for the 
result here?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to