aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Shaposhnik <rvs@apache.org>2011-09-01 21:10:59 +0000
committerRoman Shaposhnik <rvs@apache.org>2011-09-01 21:10:59 +0000
commit29250d7aa04b8c65865f359a6250bf58acdbb062 (patch)
treeca39029bfab797860f7ac4542540165a48e0d4f0
parentcc6a4f9a38c77bc6faee0b3a006ed7306eb21df5 (diff)
BIGTOP-69. Certain tests in iTest common require extraneous dependencies and should be @Ignored for now
git-svn-id: https://svn.apache.org/repos/asf/incubator/bigtop/trunk@1164274 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/pmanager/PackageManagerTest.groovy4
-rw-r--r--bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/posix/ServiceTest.groovy2
-rw-r--r--bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/shell/ShellTest.groovy2
3 files changed, 8 insertions, 0 deletions
diff --git a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/pmanager/PackageManagerTest.groovy b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/pmanager/PackageManagerTest.groovy
index 58c3cca9..c0261d86 100644
--- a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/pmanager/PackageManagerTest.groovy
+++ b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/pmanager/PackageManagerTest.groovy
@@ -19,6 +19,7 @@
package org.apache.bigtop.itest.pmanager
import org.junit.Test
+import org.junit.Ignore
import static org.junit.Assert.assertTrue
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertFalse
@@ -44,6 +45,7 @@ class PackageManagerTest {
assertFalse("can not get description for the gcc package", pkgs.get(0).getMeta()["description"].length() == 0);
}
+ @Ignore("required sudo")
@Test
void installBash() {
PackageInstance bash_pkg = PackageInstance.getPackageInstance(pmgr, "bash");
@@ -104,6 +106,7 @@ class PackageManagerTest {
assertTrue("cron package is expected to contain at least a few config files", list.size() > 0);
}
+ @Ignore("required sudo")
@Test
void testRepoManagement() {
String repo_id = "test-repo";
@@ -113,6 +116,7 @@ class PackageManagerTest {
0, pmgr.removeBinRepo(repo_id));
}
+ @Ignore("required sudo")
@Test
void testRepoFileManagement() {
String repo_id = "test-repo";
diff --git a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/posix/ServiceTest.groovy b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/posix/ServiceTest.groovy
index 337ad1f1..d2c4fe42 100644
--- a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/posix/ServiceTest.groovy
+++ b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/posix/ServiceTest.groovy
@@ -18,6 +18,7 @@
package org.apache.bigtop.itest.posix
+import org.junit.Ignore
import org.junit.Test
import static org.junit.Assert.assertTrue
import static org.junit.Assert.assertEquals
@@ -33,6 +34,7 @@ class ServiceTest {
assertEquals("wrong service name", name, svc.getName());
}
+ @Ignore("requires chkconfig")
@Test
void testRunLevels() {
List<String> l = svc.getRunLevels();
diff --git a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/shell/ShellTest.groovy b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/shell/ShellTest.groovy
index cedd87b5..1571e100 100644
--- a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/shell/ShellTest.groovy
+++ b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/shell/ShellTest.groovy
@@ -18,6 +18,7 @@
package org.apache.bigtop.itest.shell
+import org.junit.Ignore
import org.junit.Test
import static org.junit.Assert.assertEquals
@@ -35,6 +36,7 @@ class ShellTest {
assertEquals("got extra stderr ${sh.err}", 0, sh.err.size())
}
+ @Ignore("requires sudo")
@Test
void superUserShell() {
Shell sh = new Shell("/bin/bash -s")