guyuqi commented on a change in pull request #620:
URL: https://github.com/apache/bigtop/pull/620#discussion_r447548777



##########
File path: bigtop-tests/smoke-tests/logstash/TestLogstashSmoke.groovy
##########
@@ -0,0 +1,71 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.junit.BeforeClass
+import org.junit.AfterClass
+import org.apache.bigtop.itest.shell.Shell
+import static org.junit.Assert.assertTrue
+import static org.junit.Assert.assertFalse
+import org.junit.Test
+import org.apache.bigtop.itest.TestUtils
+import org.junit.runner.RunWith
+import static org.junit.Assert.assertEquals
+
+class TestLogstashSmoke {
+  static Shell sh = new Shell("/bin/bash -s");
+
+  static final String LOGSTASH_CMD = "/usr/lib/logstash/bin/logstash "
+  static final String TINYBENCH_CONFIG = "resources/generator.conf "
+  static final String FILEPIPELINE_CONFIG = "resources/filepipeline.conf "
+
+  @AfterClass
+  public static void LogstashCleanUp() {
+    sh.exec("rm -f resources/output.log");
+    assertTrue("Logstash cleanup failed. ", sh.getRet() == 0);
+  }
+
+  @Test
+  public void LogstashTinyBenchTest() {
+    /* Tiny benchmark with logstash Generator-plugin */
+    sh.exec("time "
+      + LOGSTASH_CMD
+      + "-f "
+      + TINYBENCH_CONFIG
+    );
+    def out = sh.out.join('\n');
+    assertFalse("Logstash tiny benchmark failed", (out =~ /ERROR/).find());
+  }
+
+  @Test
+  public void LogstashFilePipelineTest() {

Review comment:
       Sorry for the late response.
   The root cause is: 
   Childprocess-4.0.0 is newly released in **June 18, 2020**. 
   But it is not compatible with 5.4.1.
   Specify childprocess to 3.0.0.
   Thanks!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to