Increase Kokoro testing reliability by kurtisvg · Pull Request #902 · GoogleCloudPlatform/java-docs-samples · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 1 addition & 73 deletions .kokoro/tests/run_tests.sh
17 changes: 0 additions & 17 deletions circle.yml

This file was deleted.

Binary file removed gae-firebase-secrets.json.enc
Binary file not shown.
81 changes: 0 additions & 81 deletions jenkins.sh

This file was deleted.

21 changes: 13 additions & 8 deletions kms/src/main/java/com/example/Snippets.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,18 @@ public static void listCryptoKeys(String projectId, String locationId, String ke
"projects/%s/locations/%s/keyRings/%s",
projectId, locationId, keyRingId);

ListCryptoKeysResponse cryptoKeys = kms.projects().locations().keyRings()
.cryptoKeys()
.list(keyRingPath)
.execute();

for (CryptoKey key : cryptoKeys.getCryptoKeys()) {
System.out.println(key);
}
ListCryptoKeysResponse cryptoKeys = null;
do { // Print every page of keys
cryptoKeys = kms.projects().locations().keyRings()
.cryptoKeys()
.list(keyRingPath)
.setPageToken(cryptoKeys != null ? cryptoKeys.getNextPageToken() : null)
.execute();

for (CryptoKey key : cryptoKeys.getCryptoKeys()) {
System.out.println(key);
}
} while(cryptoKeys.getNextPageToken() != null);
}

/**
Expand All @@ -546,6 +550,7 @@ public static void listCryptoKeyVersions(
"projects/%s/locations/%s/keyRings/%s/cryptoKeys/%s",
projectId, locationId, keyRingId, cryptoKeyId);


ListCryptoKeyVersionsResponse versions = kms.projects().locations().keyRings().cryptoKeys()
.cryptoKeyVersions()
.list(cryptoKeys)
Expand Down
3 changes: 0 additions & 3 deletions secrets.env.EXAMPLE

This file was deleted.

1 change: 0 additions & 1 deletion secrets.env.enc

This file was deleted.

Binary file removed service-account.json.enc
Binary file not shown.
118 changes: 0 additions & 118 deletions travis.sh

This file was deleted.