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

Add tests to verify current schema is backward compatible #45

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

rajulkumar
Copy link
Contributor

All schema changes ought to be backwards compatible, as any usage would be prone to break any upgrade to cdn-definitions. Hence, add the test to validate historical data against current schema.

The historical data in tests/historical-data are the data.yamls that were present preceding any schema updates i.e. data-1.0.0.yaml has that data that was present when the schema was updated in v2.0.0., so the test could validate the old data against this updated schema. The files were named as per the cdn-definitions version when there was an update in the schema.

All schema changes ought to be backwards compatible, as any
usage would be prone to break any upgrade to cdn-definitions.
Hence, add the test to validate historical data against current
schema.
The historical data in tests/historical-data are the data.yamls
that were present preceding any schema updates i.e. data-1.0.0.yaml
has that data that was present when the schema was updated in
v2.0.0., so the test could validate the old data against this
updated schema.
@rajulkumar rajulkumar merged commit 3a1dd86 into release-engineering:master Sep 10, 2024
5 of 6 checks passed
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.

3 participants