diff options
author | tholenst <tholenst@google.com> | 2022-11-30 04:51:24 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-11-30 04:52:37 -0800 |
commit | b7461fd3ef5a3564f8da0ab468a7db5a245899c8 (patch) | |
tree | 8f06065813ab2d9a6c3bd969da446aad92dd23c4 /tools | |
parent | f7ca69ea0fc5c616e862abd494b8a88dbeca20a4 (diff) | |
download | tink-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')
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; |