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

WIP: Refactor conformance tests for firestore. #6291

Merged
merged 54 commits into from
Nov 15, 2018

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Oct 23, 2018

See #6290.

Use 'pytest.mark.parametrize' to create a testcase per textproto file.

Note that a bunch of them fail. :(

@tseaver tseaver added testing do not merge Indicates a pull request not ready for merge, due to either quality or timing. api: firestore Issues related to the Firestore API. labels Oct 23, 2018
@tseaver tseaver requested a review from crwilcox as a code owner October 23, 2018 19:23
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 23, 2018
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Oct 23, 2018
tseaver added a commit that referenced this pull request Oct 26, 2018
Note that this will conflict with #6291, but the master is red.
@tseaver tseaver force-pushed the 6290-firestore-refactor_conformance_tests branch 2 times, most recently from f975741 to ab29550 Compare November 12, 2018 18:40
@tseaver tseaver force-pushed the 6290-firestore-refactor_conformance_tests branch from f1dee59 to 1fe9959 Compare November 13, 2018 23:02
Some happen to work, but only inadvertently.  They will all need review
when we add support for transforms-other-than-SERVER_TIMESTAMP later.
Normalize method order and match it in the testcase class.
Simplify / clarify implementation.
Also for '_helpers._parse_field_name'.

Fix bug uncovered thereby in '_parse_field_name'.
Put it next to the only function which raises it.
Move tests to match location in file of the FUT.
Rename 'pbs_for_set' -> 'pbs_for_set_no_merge'.
Simplify:  because no merge, the write message w/ update is *always*
sent, even if empty before or after pulling out transforms.
Pass it as a keyword argument everywhere.

Add explicit tests for the 'split_on_dots=False' cases.
@tseaver tseaver force-pushed the 6290-firestore-refactor_conformance_tests branch from 1fe9959 to 581e006 Compare November 15, 2018 00:59
@tseaver
Copy link
Contributor Author

tseaver commented Nov 15, 2018

@crwilcox Please flip the CLA flag to allow me to merge this PR.

@crwilcox crwilcox added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Nov 15, 2018
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

@tseaver tseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 15, 2018
@tseaver tseaver merged commit f22abbe into master Nov 15, 2018
@tseaver tseaver deleted the 6290-firestore-refactor_conformance_tests branch November 15, 2018 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore 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.

4 participants