-
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
Validate plugins can be removed without local manifest #300
Validate plugins can be removed without local manifest #300
Conversation
This validates the scenario that we can remove/rename plugins in the index without breaking local user installations (since this is now possible with the install receipts). Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Codecov Report
@@ Coverage Diff @@
## master #300 +/- ##
=======================================
Coverage 55.66% 55.66%
=======================================
Files 19 19
Lines 918 918
=======================================
Hits 511 511
Misses 355 355
Partials 52 52 Continue to review full report at Codecov.
|
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.
Good idea to add this test-case.
defer cleanup() | ||
|
||
test = test.WithIndex() | ||
localManifest := filepath.Join(test.Root(), "index", "plugins", validPlugin+constants.ManifestExtension) |
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.
I'm a bit unhappy that we depend on the implementation detail of where the manifest is stored. It would be cleaner to use environment.Paths
here. Maybe it's time to refactor the environment
package, so that it can be used without setting up env variables.
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.
Honestly I agree, but we'd immediately know when we change the paths because the test would start breaking.
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.
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.
Ok, let's do that in another PR and close this one. I think there are more locations which can be made simpler.
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, corneliusweig 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 |
This validates the scenario that we can remove/rename plugins in the index
without breaking local user installations (since this is now possible with
the install receipts).
/assign @corneliusweig