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
remove parallel run
  • Loading branch information
rahul2393 committed Feb 23, 2024
commit ed20cd5520bd802cf931b520e0756539d5f8f553
6 changes: 2 additions & 4 deletions samples/samples/admin/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,10 @@ def update_database_with_default_leader(instance_id, database_id, default_leader
)
operation = spanner_client.database_admin_api.update_database_ddl(request)

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

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


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