diff --git a/plugins/repository-gcs/build.gradle b/plugins/repository-gcs/build.gradle index d63592779d7d4..a44f6643c086a 100644 --- a/plugins/repository-gcs/build.gradle +++ b/plugins/repository-gcs/build.gradle @@ -299,6 +299,13 @@ testClusters { all testClustersConfiguration } +/** + * Used for testing getting credentials from GCE + */ +test { + environment 'NO_GCE_CHECK', 'true' +} + /* * We only use a small amount of data in these tests, which means that the resumable upload path is not tested. We add * an additional test that forces the large blob threshold to be small to exercise the resumable upload path. diff --git a/plugins/repository-gcs/src/main/plugin-metadata/plugin-security.policy b/plugins/repository-gcs/src/main/plugin-metadata/plugin-security.policy index b4d34ce8ba683..48af969b04dc3 100644 --- a/plugins/repository-gcs/src/main/plugin-metadata/plugin-security.policy +++ b/plugins/repository-gcs/src/main/plugin-metadata/plugin-security.policy @@ -43,5 +43,4 @@ grant { // gcs client set Authenticator for proxy username/password permission java.net.NetPermission "setDefaultAuthenticator"; - permission java.io.FilePermission "/sys/class/dmi/id/product_name", "read"; };