-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add Spanner samples for MR CMEK #2772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Here is the summary of changes. You are about to add 4 region tags.
This comment is generated by snippet-bot.
|
Change KmsKeyName to KmsKeyNames
Change KmsKeyNamesAsCryptoKeyName to KmsKeyNamesAsCryptoKeyNames
Change KmsKeyNamesAsCryptoKeyName to be KmsKeyNamesAsCryptoKeyNames
Change KmsKeyNamesAsCryptoKeyName to be KmsKeyNamesAsCryptoKeyNames
Change KmsKeyNamesAsCryptoKeyName to be KmsKeyNamesAsCryptoKeyNames and use database encryption config to print
Use database encryption config to print
amanda-tarafa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issues I've commented on appear on several places even though I flag them on a single place, please fix all ocurrences.
This code doesn't build, see the build log for errors.
When you have run the tests locally and they pass, let me know and I can run them on the PR with the backup tests enabled to make certain they run on CI before merging. At the moment these new tests will conflict with the existing backup samples and tests.
spanner/api/Spanner.Samples.Tests/CreateBackupWithMRCMEKAsyncTest.cs
Outdated
Show resolved
Hide resolved
spanner/api/Spanner.Samples.Tests/CreateBackupWithMRCMEKAsyncTest.cs
Outdated
Show resolved
Hide resolved
spanner/api/Spanner.Samples.Tests/CreateDatabaseWithMRCMEKAsyncTest.cs
Outdated
Show resolved
Hide resolved
…Test.cs Change naming from MRCMEK to MrCmek
…ithMrCmekAsyncTest.cs Change naming from MRCMEK to MrCmek
…aseWithMrCmekAsyncTest.cs Change from MRCMEK to MrCmek
…abaseWithMrCmekAsyncTest.cs Change from MRCMEK to MrCmek
Change from MRCMEK to MrCmek
Remove old assert
Change assert
Fix naming
Change kmsKeyNames to { kmsKeyNames }
Change kmsKeyNames to { kmsKeyNames }
Change kmsKeyNames to { kmsKeyNames }
Change kmsKeyNames to { kmsKeyNames }
Make join explicit, fix format
Make join explicit, fix formatting
Make join explicit, fix formatting
Make join explicit, fix formatting
…c.cs Change copy to async
Shorten names and use MR instance
Fix Assert
…AsyncTest.cs Fix Assert
Missing e in create
Initialize KmsKeyNames
| Environment.GetEnvironmentVariable("spanner.test.key.location3") ?? "us-east4", | ||
| Environment.GetEnvironmentVariable("spanner.test.key.ring3") ?? "spanner-test-keyring3", | ||
| Environment.GetEnvironmentVariable("spanner.test.key.name3") ?? "spanner-test-key3"); | ||
| public CryptoKeyName[] KmsKeyNames { get; private set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public CryptoKeyName[] KmsKeyNames { get; private set; } | |
| public CryptoKeyName[] KmsKeyNames { get; } = new CryptoKeyName[] { KmsKeyName, KmsKeyName1, KmsKeyName2 }; | |
Use only 1 key
|
Closing in favour of #2832 . These are very similar, changea are mostly renaming, and also in how we use some fixture elements. Sample code is identical. |
Add samples and tests for create database, create backup, copy backup, and restore backup.