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

Adding testing framework for rendering upstream to base #2009

Merged
merged 5 commits into from
Jul 28, 2021
Merged

Conversation

emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Jul 28, 2021

This pull request attempts to fill a gap in KOTS test coverage. We have very little coverage of combinations of application yaml and upstream configuration.

Currently kots has unit tests and e2e tests. Unit tests for renderReplicated can cover the same but are cumbersome to write because they are in code. E2e tests also can cover this but are slow.

This adds a testing framework for testing kots rendering of upstream yaml to base yaml. To add tests, the developer must include yaml files in the directories upstream and base, which include input yaml and expected output yaml respectively.

pkg/base/render/render_test.go Outdated Show resolved Hide resolved
pkg/template/kurl_context.go Show resolved Hide resolved
@emosbaugh
Copy link
Member Author

[ch36201]

@emosbaugh emosbaugh merged commit 9d1af3c into master Jul 28, 2021
@emosbaugh emosbaugh deleted the render-tests branch July 28, 2021 18:27
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.

None yet

4 participants