Skip to content

Commit 47701ed

Browse files
Frank NatividadFrank Natividad
authored andcommitted
Fix kms key reosurce name
1 parent 56b34df commit 47701ed

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

google-cloud-storage/src/test/java/com/google/cloud/storage/BlobInfoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class BlobInfoTest {
6666
private static final String KEY_SHA256 = "keySha";
6767
private static final CustomerEncryption CUSTOMER_ENCRYPTION =
6868
new CustomerEncryption(ENCRYPTION_ALGORITHM, KEY_SHA256);
69-
private static final String KMS_KEY_NAME = "projects/p/keyRings/kr/location/kr-loc/cryptoKey/key";
69+
private static final String KMS_KEY_NAME = "projects/p/locations/kr-loc/keyRings/kr/cryptoKeys/key";
7070
private static final StorageClass STORAGE_CLASS = StorageClass.COLDLINE;
7171

7272
// Unit tests include Customer Supplied encryption which may be confusing with the KMS KEY NAME

google-cloud-storage/src/test/java/com/google/cloud/storage/BucketInfoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class BucketInfoTest {
6060
private static final String NOT_FOUND_PAGE = "error.html";
6161
private static final String LOCATION = "ASIA";
6262
private static final StorageClass STORAGE_CLASS = StorageClass.STANDARD;
63-
private static final String DEFAULT_KMS_KEY_NAME = "projects/p/keyRings/kr/location/kr-loc/cryptoKey/key";
63+
private static final String DEFAULT_KMS_KEY_NAME = "projects/p/locations/kr-loc/keyRings/kr/cryptoKeys/key";
6464
private static final Boolean VERSIONING_ENABLED = true;
6565
private static final Map<String, String> BUCKET_LABELS = ImmutableMap.of("label1", "value1");
6666
private static final Boolean REQUESTER_PAYS = true;

google-cloud-storage/src/test/java/com/google/cloud/storage/BucketTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class BucketTest {
7777
private static final String NOT_FOUND_PAGE = "error.html";
7878
private static final String LOCATION = "ASIA";
7979
private static final StorageClass STORAGE_CLASS = StorageClass.STANDARD;
80-
private static final String DEFAULT_KMS_KEY_NAME = "projects/p/keyRings/kr/location/kr-loc/cryptoKey/key";
80+
private static final String DEFAULT_KMS_KEY_NAME = "projects/p/locations/kr-loc/keyRings/kr/cryptoKeys/key";
8181
private static final Boolean VERSIONING_ENABLED = true;
8282
private static final Map<String, String> BUCKET_LABELS = ImmutableMap.of("label1", "value1");
8383
private static final Boolean REQUESTER_PAYS = true;

0 commit comments

Comments
 (0)