aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2022-11-30 04:51:24 -0800
committerCopybara-Service <copybara-worker@google.com>2022-11-30 04:52:37 -0800
commitb7461fd3ef5a3564f8da0ab468a7db5a245899c8 (patch)
tree8f06065813ab2d9a6c3bd969da446aad92dd23c4 /tools
parentf7ca69ea0fc5c616e862abd494b8a88dbeca20a4 (diff)
downloadtink-b7461fd3ef5a3564f8da0ab468a7db5a245899c8.tar.gz
Remove calls to "isRemoteBuildExcecution" and always return false.
We don't test Tink on RBE anymore. PiperOrigin-RevId: 491883358
Diffstat (limited to 'tools')
-rw-r--r--tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/AddKeyCommandTest.java3
-rw-r--r--tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreateKeysetCommandTest.java3
-rw-r--r--tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreatePublicKeysetCommandTest.java3
-rw-r--r--tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/RotateKeysetCommandTest.java3
4 files changed, 0 insertions, 12 deletions
diff --git a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/AddKeyCommandTest.java b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/AddKeyCommandTest.java
index 8766c26ea..9688fd700 100644
--- a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/AddKeyCommandTest.java
+++ b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/AddKeyCommandTest.java
@@ -18,7 +18,6 @@ package com.google.crypto.tink.tinkey;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeFalse;
import com.google.crypto.tink.KeyTemplate;
import com.google.crypto.tink.KeyTemplates;
@@ -110,8 +109,6 @@ public class AddKeyCommandTest {
@Test
public void testAddEncrypted_shouldAddNewKey() throws Exception {
- // This test requires KMS/internet access and thus cannot run on RBE.
- assumeFalse(TestUtil.isRemoteBuildExecution());
// Create an input stream containing an encrypted keyset.
String masterKeyUri = TestUtil.GCP_KMS_TEST_KEY_URI;
String credentialPath = TestUtil.SERVICE_ACCOUNT_FILE;
diff --git a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreateKeysetCommandTest.java b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreateKeysetCommandTest.java
index b67b108ce..15ef662df 100644
--- a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreateKeysetCommandTest.java
+++ b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreateKeysetCommandTest.java
@@ -17,7 +17,6 @@
package com.google.crypto.tink.tinkey;
import static com.google.common.truth.Truth.assertThat;
-import static org.junit.Assume.assumeFalse;
import com.google.crypto.tink.KeyTemplate;
import com.google.crypto.tink.KeyTemplates;
@@ -74,8 +73,6 @@ public class CreateKeysetCommandTest {
private void testCreateEncrypted_shouldCreateNewKeyset(
String outFormat) throws Exception {
- // This test requires KMS/internet access and thus cannot run on RBE.
- assumeFalse(TestUtil.isRemoteBuildExecution());
// Create an encrypted keyset.
String masterKeyUri = TestUtil.GCP_KMS_TEST_KEY_URI;
String credentialPath = TestUtil.SERVICE_ACCOUNT_FILE;
diff --git a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreatePublicKeysetCommandTest.java b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreatePublicKeysetCommandTest.java
index ccfed4de9..a95d64d8d 100644
--- a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreatePublicKeysetCommandTest.java
+++ b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/CreatePublicKeysetCommandTest.java
@@ -17,7 +17,6 @@
package com.google.crypto.tink.tinkey;
import static com.google.common.truth.Truth.assertThat;
-import static org.junit.Assume.assumeFalse;
import com.google.crypto.tink.CleartextKeysetHandle;
import com.google.crypto.tink.HybridDecrypt;
@@ -118,8 +117,6 @@ public class CreatePublicKeysetCommandTest {
private void testCreate_encryptedPrivate_shouldCreateCleartextPublic(
KeyTemplate template, KeyType type) throws Exception {
- // This test requires KMS/internet access and thus cannot run on RBE.
- assumeFalse(TestUtil.isRemoteBuildExecution());
// Create an input stream containing a cleartext private keyset.
String masterKeyUri = TestUtil.GCP_KMS_TEST_KEY_URI;
String credentialPath = TestUtil.SERVICE_ACCOUNT_FILE;
diff --git a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/RotateKeysetCommandTest.java b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/RotateKeysetCommandTest.java
index 69cf315b4..4f03c0c17 100644
--- a/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/RotateKeysetCommandTest.java
+++ b/tools/tinkey/src/test/java/com/google/crypto/tink/tinkey/RotateKeysetCommandTest.java
@@ -18,7 +18,6 @@ package com.google.crypto.tink.tinkey;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeFalse;
import com.google.crypto.tink.KeyTemplate;
import com.google.crypto.tink.KeyTemplates;
@@ -110,8 +109,6 @@ public class RotateKeysetCommandTest {
@Test
public void testRotateEncrypted_shouldAddNewKey() throws Exception {
- // This test requires KMS/internet access and thus cannot run on RBE.
- assumeFalse(TestUtil.isRemoteBuildExecution());
// Create an input stream containing an encrypted keyset.
String masterKeyUri = TestUtil.GCP_KMS_TEST_KEY_URI;
String credentialPath = TestUtil.SERVICE_ACCOUNT_FILE;