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

Run Firestore index tests in fresh databases. #2067

Conversation

modular-magician
Copy link
Collaborator

This removes the index dependency on creating a document, as creating indexes on a non-existent collection is a valid operation in Firestore.

This removes the dependency on a fixed (default) database, which should deflake tests.

Fixes hashicorp/terraform-provider-google#17393.

Verified with a local execution of make testacc TEST=./google/services/f irestore TESTARGS='-run=TestAccFirestoreIndex_'

Release Note Template for Downstream PRs (will be copied)

Derived from GoogleCloudPlatform/magic-modules#10168

* Run Firestore index tests in fresh databases.

This removes the index dependency on creating a document, as creating indexes on a non-existent collection is a valid operation in Firestore.

This removes the dependency on a fixed (default) database, which should deflake tests.

Fixes #17393.

* Move project_id to test_env_vars.

* Move project_id to test_env_vars for datastore_mode example.

[upstream:7c0a51c93476181d4bd8864fb132d511b2b18995]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician requested a review from a team as a code owner March 18, 2024 19:49
@modular-magician modular-magician requested review from melinath and removed request for a team March 18, 2024 19:49
@modular-magician modular-magician merged commit c67c8d8 into GoogleCloudPlatform:main Mar 18, 2024
5 checks passed
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@modular-magician modular-magician deleted the downstream-pr-7c0a51c93476181d4bd8864fb132d511b2b18995 branch November 18, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing test(s): TestAccFirestoreIndex_firestoreIndexDatastoreModeExample
1 participant