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

Cartotest supplychains #1265

Merged
merged 50 commits into from
Jun 21, 2023
Merged

Cartotest supplychains #1265

merged 50 commits into from
Jun 21, 2023

Conversation

waciumawanjohi
Copy link
Contributor

@waciumawanjohi waciumawanjohi commented Jun 9, 2023

Changes proposed by this PR

Large rewrite of Cartotest

  • Allow cartotest to accept supplychains alongside templates and workloads.
  • Use abstraction to clarify the interface
  • Add comparison option functions (for example, coercing numbers in expected and actual to be the same type)

Release Note

Cartotest Improvement: Users may specify an actual supply chain or set of supply chain set when testing that the proper object is stamped.

!Breaking changes to CartoTest! CartoTest accepts interfaces rather than multiple concrete instances providing the same functionality. Field names have been shortened (e.g. TemplateTestCase --> Test). See changes to tests/templates/template_test.go for examples of rewriting existing tests to the new API.

Cherry-pick branches

All minor branches. Has not been tested on previous minor branches.

PR Checklist

Note: Please do not remove items. Mark items as done [x] or use strikethrough if you believe they are not relevant

  • Linked to a relevant issue. Eg: Fixes #123 or Updates #123
  • Removed non-atomic or wip commits
  • Filled in the Release Note section above
  • Added any relevant branches to cherry-pick
  • Modified the docs to match changes

@waciumawanjohi waciumawanjohi force-pushed the cartotest-supplychains branch from 893b440 to 1924034 Compare June 20, 2023 15:01
@waciumawanjohi waciumawanjohi marked this pull request as ready for review June 20, 2023 21:25
@waciumawanjohi waciumawanjohi force-pushed the cartotest-supplychains branch from fe99733 to ec306e0 Compare June 20, 2023 21:26
@waciumawanjohi waciumawanjohi merged commit c3aca9b into main Jun 21, 2023
@waciumawanjohi waciumawanjohi deleted the cartotest-supplychains branch June 21, 2023 16:04
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.

2 participants