Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Apply common validations to all import conversion unit tests #992

Merged
merged 2 commits into from
Aug 14, 2017

Conversation

carolynvs
Copy link
Collaborator

What does this do / why do we need it?

#897 took the first steps to standardize what all the importers test. This takes it a bit further so that each importer isn't re-implementing the validations. I also noticed a few properties weren't being validated consistently:

  • Remove matchVersionPair flag and validate the cast anytime a wantRevision was specified.
  • Always validate lock properties when a lock is generated.

Heads up: This will impact #978.

@carolynvs
Copy link
Collaborator Author

@sebdah let me know if I have borked up your table tests. Hoping this will be helpful as we add more!

@sebdah
Copy link
Contributor

sebdah commented Aug 12, 2017

@carolynvs This is a change for the better! Especially if we introduce more importers. Good job 🚀

* Remove matchVersionPair flag and validate the cast anytime a
* wantRevision was specified.
* Always validate lock properties when a lock is generated.
@carolynvs carolynvs merged commit 559b89f into golang:master Aug 14, 2017
@carolynvs carolynvs deleted the remove-matchpairedrevision branch August 14, 2017 17:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants