conduct load/deploy now reads the first bundle.conf file listed in the archive central directory#499
Merged
fsat merged 1 commit intotypesafehub:masterfrom Jun 21, 2017
Conversation
fsat
suggested changes
Jun 19, 2017
Contributor
fsat
left a comment
There was a problem hiding this comment.
The code change lgtm - but I'd like to suggest having unit test to cover the scenario, and some manual test for both happy path & scenario raised by https://github.com/typesafehub/conductr/issues/1811
…e archive central directory
25521fc to
dadeb3c
Compare
Contributor
Author
|
Thanks @fsat - I fixed the unit test to covert this scenario and verified that it fails without this PR, but with this PR now passes. Manual tests below: Manual TestsThis test takes visualizer and unzips it. An empty We verify this fails to load on Setup$ unzip /home/longshorej/.conductr/cache/bundle/visualizer-2.1.0-31fe9536b5f3252cc7b432ab06bd9ba31b7258d920f7147020392a7058074606.zipArchive: /home/longshorej/.conductr/cache/bundle/visualizer-2.1.0-31fe9536b5f3252cc7b432ab06bd9ba31b7258d920f7147020392a7058074606.zip
inflating: [snipped]
-> 0
$ mkdir visualizer-2.1.0/fake-conf
-> 0
$ touch visualizer-2.1.0/fake-conf/bundle.conf
-> 0
$ bndl visualizer-2.1.0 -o visualizer-double-confs.zip
-> 0Multiple
|
fsat
approved these changes
Jun 21, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adjust
conduct loadandconduct deployto read the firstbundle.conf. Previously, this errored out if a bundle had multiplebundle.conffiles. By reading the first one listed, we're also consistent with the logic in ConductR core.Fixes https://github.com/typesafehub/conductr/issues/1811