You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gobblin.apache.org by hu...@apache.org on 2018/04/09 20:23:48 UTC

incubator-gobblin git commit: [GOBBLIN-461] disabling PasswordManagerTests as they fail often on travis

Repository: incubator-gobblin
Updated Branches:
  refs/heads/master ccd7ba769 -> 12bb1dcf9


[GOBBLIN-461] disabling PasswordManagerTests as they fail often on travis

Closes #2332 from
arjun4084346/disableDecryptionTests


Project: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/commit/12bb1dcf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/tree/12bb1dcf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/diff/12bb1dcf

Branch: refs/heads/master
Commit: 12bb1dcf997f6f33faf1bce028cd83d30d6ffb77
Parents: ccd7ba7
Author: Arjun <ab...@linkedin.com>
Authored: Mon Apr 9 13:23:42 2018 -0700
Committer: Hung Tran <hu...@linkedin.com>
Committed: Mon Apr 9 13:23:42 2018 -0700

----------------------------------------------------------------------
 .../apache/gobblin/password/PasswordManagerTest.java   | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/12bb1dcf/gobblin-api/src/test/java/org/apache/gobblin/password/PasswordManagerTest.java
----------------------------------------------------------------------
diff --git a/gobblin-api/src/test/java/org/apache/gobblin/password/PasswordManagerTest.java b/gobblin-api/src/test/java/org/apache/gobblin/password/PasswordManagerTest.java
index 2bf2c19..f462673 100644
--- a/gobblin-api/src/test/java/org/apache/gobblin/password/PasswordManagerTest.java
+++ b/gobblin-api/src/test/java/org/apache/gobblin/password/PasswordManagerTest.java
@@ -33,9 +33,10 @@ import org.testng.annotations.Test;
 
 import com.google.common.io.Files;
 
+@Test(enabled=false, groups = {"disabledOnTravis"} )
 public class PasswordManagerTest {
 
-  @Test
+  @Test (enabled=false)
   public void testReadNormalPassword() throws IOException {
     String password = UUID.randomUUID().toString();
     String masterPassword = UUID.randomUUID().toString();
@@ -46,7 +47,7 @@ public class PasswordManagerTest {
     masterPwdFile.delete();
   }
 
-  @Test
+  @Test (enabled=false)
   public void testMasterPasswordNotExist() {
     String password = "ENC(" + UUID.randomUUID().toString() + ")";
     State state = new State();
@@ -54,7 +55,7 @@ public class PasswordManagerTest {
     Assert.assertEquals(PasswordManager.getInstance(state).readPassword(password), password);
   }
 
-  @Test
+  @Test (enabled=false)
   public void testBasicEncryptionAndDecryption() throws IOException {
     String password = UUID.randomUUID().toString();
     String masterPassword = UUID.randomUUID().toString();
@@ -69,7 +70,7 @@ public class PasswordManagerTest {
     Assert.assertEquals(decrypted, password);
   }
 
-  @Test
+  @Test (enabled=false)
   public void testStrongEncryptionAndDecryption() throws IOException {
     String password = UUID.randomUUID().toString();
     String masterPassword = UUID.randomUUID().toString();
@@ -90,7 +91,7 @@ public class PasswordManagerTest {
     }
   }
 
-  @Test
+  @Test (enabled=false)
   public void testMultipleMasterPasswords() throws IOException {
     String password = UUID.randomUUID().toString();
 
@@ -146,7 +147,7 @@ public class PasswordManagerTest {
     Assert.fail("Password Manager decrypted too old password.");
   }
 
-  @Test
+  @Test (enabled=false)
   public void testMultipleMasterPasswordsWithoutPasswordFiles() throws IOException {
     String password = UUID.randomUUID().toString();