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

docs: samples and tests for admin database APIs #1099

Merged
merged 13 commits into from
Feb 26, 2024
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
rahul2393 committed Feb 23, 2024
commit 48e13e871cf2225e3b69e3ecd96b2d1e3b991184
4 changes: 2 additions & 2 deletions samples/samples/admin/samples.py
Expand Up @@ -235,11 +235,11 @@ def update_database_with_default_leader(instance_id, database_id, default_leader
)
operation = spanner_client.database_admin_api.update_database_ddl(request)

database = operation.result(OPERATION_TIMEOUT_SECONDS)
db = operation.result(OPERATION_TIMEOUT_SECONDS)

print(
"Database {} updated with default leader {}".format(
database.name, database.default_leader
db.name, db.default_leader
)
)

Expand Down
1 change: 1 addition & 0 deletions samples/samples/requirements.txt
@@ -1,2 +1,3 @@
google-cloud-spanner==3.42.0
futures==3.4.0; python_version < "3"
pytest-xdist==3.3.1 # Pinned to unbreak unit tests