Skip to content
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

samples: allow multiple KMS keys to create CMEK database/backup #1474

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hwin16
Copy link

@hwin16 hwin16 commented Sep 4, 2024

Add kms_key_names field to create database/create backup code snippets.

@hwin16 hwin16 requested a review from a team as a code owner September 4, 2024 08:12
Copy link

snippet-bot bot commented Sep 4, 2024

Here is the summary of changes.

You are about to add 4 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Sep 4, 2024
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
@hwin16
Copy link
Author

hwin16 commented Sep 4, 2024

Thank you @dazuma, PTAL.

@dazuma dazuma changed the title feat: allow multiple KMS keys to create CMEK database/backup samples: allow multiple KMS keys to create CMEK database/backup Sep 9, 2024
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spec/spec_helper.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
spanner/spanner_samples.rb Outdated Show resolved Hide resolved
@hwin16
Copy link
Author

hwin16 commented Sep 12, 2024

I have addressed the feedback. PTAL.

@dazuma dazuma added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 13, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 13, 2024
@@ -33,8 +33,19 @@
@restored_database_id = "restored_db_#{seed}"
@spanner = Google::Cloud::Spanner.new project: @project_id
@instance = @spanner.instance @instance_id
@mr_instance_id = "rb-test-#{seed}"
# Create multi-region instance for CMEK
create_instance @project_id, @mr_instance_id, "nam3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is erroring now in the tests, because the arguments are supposed to be keyword arguments rather than positional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants