Class NodeNameInLogsIntegTestCase


  • public abstract class NodeNameInLogsIntegTestCase
    extends ESRestTestCase
    Tests that extend this class verify that the node name appears in the first few log lines on startup. Note that this won't pass for clusters that don't the node name defined in elasticsearch.yml and start with DEBUG or TRACE level logging. Those nodes log a few lines before they resolve the node name.
    • Constructor Detail

      • NodeNameInLogsIntegTestCase

        public NodeNameInLogsIntegTestCase()
    • Method Detail

      • openReader

        protected abstract java.io.BufferedReader openReader​(java.nio.file.Path logFile)
                                                      throws java.io.IOException
        Open the log file. This is delegated to subclasses because the test framework doesn't have permission to read from the log file but subclasses can grant themselves that permission.
        Throws:
        java.io.IOException
      • testNodeNameIsOnAllLinesOfLog

        public void testNodeNameIsOnAllLinesOfLog()
                                           throws java.io.IOException
        Throws:
        java.io.IOException