-
Notifications
You must be signed in to change notification settings - Fork 372
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
Fix upgrade if a plugin installed from manifest #458
Fix upgrade if a plugin installed from manifest #458
Conversation
Codecov Report
@@ Coverage Diff @@
## master #458 +/- ##
==========================================
+ Coverage 56.47% 56.52% +0.04%
==========================================
Files 19 19
Lines 926 927 +1
==========================================
+ Hits 523 524 +1
Misses 350 350
Partials 53 53
Continue to review full report at Codecov.
|
integration_test/testutil_test.go
Outdated
validPlugin2 = "mtail" // a plugin in central index with small size | ||
validPlugin = "konfig" // a plugin in central index with small size | ||
validPlugin2 = "mtail" // a plugin in central index with small size | ||
validNonIndexPlugin = "konfig-non-index" // a plugin not in central index with small size |
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.
instead of doing this let's do this:
- test.WithIndex()
- find konfig.yaml in the index path, delete it
- use upgrade --no-update-index in both
install
andupgrade
calls in the integration test.
this way:
- you can fake the situation that konfig is not in the index.
- without having to duplicate a testdata file (I really dislike increasing testdata)
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.
Sounds much better, updated.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: corneliusweig, ferhatelmas The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If a plugin isn't in index, upgrade for all doesn't fail anymore.
Also, added an integration test by modifying valid plugin
konfig
tokonfig-non-index
.Related to #454 problem 1.