samples: add default leader options samples#428
Conversation
|
Here is the summary of changes. You are about to add 7 region tags.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Currently, you are creating an instance within the spanner_create_database_with_default_leader and spanner_update_database_with_default_leader samples.
This is an issue as if there is a failure later on in the sample, the instance does not get cleaned up correctly. Additionally the second sample fails as it tried to create the same instance.
The instance creation should be removed from the samples and you should instead be using sample_instance, or a pytest fixture that uses sample_instance. This will ensure that the instance clean up is handled correctly.
There was a problem hiding this comment.
LGTM once the implementation is merged and released 👍
…mr-1-samples # Conflicts: # tests/system/test_system.py
There was a problem hiding this comment.
Having just written the samples for PHP I noticed some inconsistencies. Just a few changes for the list_* samples
|
@zoercai Why do we get an error |
Samples for #399. Implementation code will be gone once #399 is merged.