-
Notifications
You must be signed in to change notification settings - Fork 60
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
🌱 Update installed package unit tests #524
🌱 Update installed package unit tests #524
Conversation
bbf0693
to
800d435
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #524 +/- ##
==========================================
- Coverage 84.72% 84.50% -0.22%
==========================================
Files 23 23
Lines 910 910
==========================================
- Hits 771 769 -2
- Misses 95 96 +1
- Partials 44 45 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
800d435
to
dcfc7ad
Compare
This commit does two things. First: It splits the `TestMakeInstalledPackageVariables` test into two tests: * One for when `ForceSemverUpgradeConstraints` feature gate enabled (semver) * One for when `ForceSemverUpgradeConstraints` feature gate disabled (legacy semantics) Both tests are now table-style tests. This is done mainly so that we can maintain test data for different semantics separately (e.g. no need to maintain channel entires for semver tests). Second: Adds extra coverage for disabled state of the `ForceSemverUpgradeConstraints` feature gate. Previously we were not covering some cases for this state of the gate. Example of such case is when `UpgradeConstraintPolicy` field on `Operator` is set to `Ignore`. Signed-off-by: Mikalai Radchuk <[email protected]>
dcfc7ad
to
75a6f8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks @m1kola
Description
This commit does two things.
First: It splits the
TestMakeInstalledPackageVariables
test into two tests:ForceSemverUpgradeConstraints
feature gate enabled (semver)ForceSemverUpgradeConstraints
feature gate disabled (legacy semantics)Both tests are now table-style tests.
This is done mainly so that we can maintain test data for different semantics separately (e.g. no need to maintain channel entires for semver tests).
Second: Adds extra coverage for disabled state of the
ForceSemverUpgradeConstraints
feature gate. Previously we were not covering some cases for this state of the gate. Example of such case is whenUpgradeConstraintPolicy
field onOperator
is set toIgnore
.Reviewer Checklist