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

Harden spanner system tests against stray databases #4374

Merged
merged 1 commit into from
Nov 9, 2017

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Nov 9, 2017

Because of quota, we are sharing the instance we use to test CRUD of databases: we therefore cannot rely on having only the expected databases present, as other tests may be running simultaneously, or may have failed
in ways which left 'stray' databases in the instance.

@tseaver tseaver added api: spanner Issues related to the Spanner API. testing labels Nov 9, 2017
@tseaver tseaver requested a review from dhermes November 9, 2017 20:42
Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

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

LGTM

self.assertEqual(found, expected)
database_ids = [
database.database_id
for database in Config.INSTANCE.list_databases()]

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Because of quota, we are sharing the instance we use to test CRUD of
databases: we therefore cannot rely on having only the expected databases
present, as other tests may be running simultaneously, or may have failed
in ways which left 'stray' databases in the instance.
@tseaver tseaver force-pushed the spanner-system-tests-stray-dbs branch from 066d8a5 to 8f20130 Compare November 9, 2017 20:53
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2017
@tseaver
Copy link
Contributor Author

tseaver commented Nov 9, 2017

#4377 is blocking the run. The system tests pass locally.

@tseaver tseaver merged commit 16b3638 into master Nov 9, 2017
@tseaver tseaver deleted the spanner-system-tests-stray-dbs branch November 9, 2017 21:50
This was referenced Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants