You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2016/01/16 02:06:04 UTC

bigtop git commit: BIGTOP-2249. Add YARN smoke tests

Repository: bigtop
Updated Branches:
  refs/heads/master fc6aaaef7 -> 75bb61427


BIGTOP-2249. Add YARN smoke tests


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/75bb6142
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/75bb6142
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/75bb6142

Branch: refs/heads/master
Commit: 75bb6142752c26800aa7ab0bbfc1ca66fad8424d
Parents: fc6aaae
Author: Konstantin Boudnik <co...@apache.org>
Authored: Fri Jan 15 14:51:53 2016 -0800
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Fri Jan 15 17:05:17 2016 -0800

----------------------------------------------------------------------
 bigtop-tests/smoke-tests/yarn/build.gradle      | 51 ++++++++++++++++++++
 .../bigtop/itest/hadoop/yarn/TestNode.groovy    | 14 ------
 .../bigtop/itest/hadoop/yarn/TestRmAdmin.groovy | 14 ------
 3 files changed, 51 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/75bb6142/bigtop-tests/smoke-tests/yarn/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-tests/smoke-tests/yarn/build.gradle b/bigtop-tests/smoke-tests/yarn/build.gradle
new file mode 100644
index 0000000..dd0046b
--- /dev/null
+++ b/bigtop-tests/smoke-tests/yarn/build.gradle
@@ -0,0 +1,51 @@
+/**
+ * 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.
+ */
+def junitVersion = '4.11'
+dependencies {
+  compile group: 'junit', name: 'junit', version: junitVersion, transitive: 'true'
+  compile group: 'org.apache.hadoop', name: 'hadoop-common',
+      version: hadoopVersion, classifier: 'tests', transitive: 'true'
+  compile group: 'org.apache.hadoop', name: 'hadoop-hdfs',
+      version: hadoopVersion, classifier: 'tests', transitive: 'true'
+  compile group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoopVersion, transitive: 'true'
+  compile group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: hadoopVersion, transitive: 'true'
+  if (System.env.HADOOP_CONF_DIR) testRuntime files(System.env.HADOOP_CONF_DIR)
+}
+
+sourceSets {
+  test {
+    groovy {
+      resources {
+        srcDirs = [
+            "${BIGTOP_HOME}/bigtop-tests/test-artifacts/hadoop/src/main/resources",
+        ]
+      }
+      srcDirs = [
+        "${BIGTOP_HOME}/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn"
+      ]
+    }
+  }
+}
+
+test.doFirst {
+  checkEnv(["HADOOP_CONF_DIR"])
+}
+
+test {
+  include '**/Test*'
+}

http://git-wip-us.apache.org/repos/asf/bigtop/blob/75bb6142/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestNode.groovy
----------------------------------------------------------------------
diff --git a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestNode.groovy b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestNode.groovy
index 1dd2c1a..69cd7a2 100644
--- a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestNode.groovy
+++ b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestNode.groovy
@@ -20,10 +20,7 @@ package org.apache.bigtop.itest.hadoop.yarn;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
 import org.junit.Test;
-import org.apache.bigtop.itest.JarContent;
 import org.apache.bigtop.itest.shell.Shell;
 
 public class TestNode {
@@ -31,17 +28,6 @@ public class TestNode {
   // set debugging variable to true if you want error messages sent to stdout
   private static Shell sh = new Shell("/bin/bash");
 
-  @BeforeClass
-  public static void setUp() {
-    // unpack resource
-    JarContent.unpackJarContainer(TestNode.class, ".", null);
-    System.out.println("Running Node commands:");
-  }
-
-  @AfterClass
-  public static void tearDown() {
-  }
-
   @Test (timeout = 0x15000l)
   public void testNodeBasic() {
     // list

http://git-wip-us.apache.org/repos/asf/bigtop/blob/75bb6142/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestRmAdmin.groovy
----------------------------------------------------------------------
diff --git a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestRmAdmin.groovy b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestRmAdmin.groovy
index 5e98a5a..908aec8 100644
--- a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestRmAdmin.groovy
+++ b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/yarn/TestRmAdmin.groovy
@@ -20,10 +20,7 @@ package org.apache.bigtop.itest.hadoop.yarn;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
 import org.junit.Test;
-import org.apache.bigtop.itest.JarContent;
 import org.apache.bigtop.itest.shell.Shell;
 
 public class TestRmAdmin {
@@ -31,17 +28,6 @@ public class TestRmAdmin {
   // set debugging variable to true if you want error messages sent to stdout
   private static Shell sh = new Shell("/bin/bash");
 
-  @BeforeClass
-  public static void setUp() {
-    // unpack resource
-    JarContent.unpackJarContainer(TestRmAdmin.class, ".", null);
-    System.out.println("Running RmAdmin commands:");
-  }
-
-  @AfterClass
-  public static void tearDown() {
-  }
-
   @Test (timeout = 0x45000l)
   public void testRmAdminBasic() {
     // help