Closed markusjura closed 9 years ago
The two bundle.conf
s are now merged with the Typesafe Config method withFallback
.
This looks really, really nice.
I realise that we don't have a great number of scripted tests for it, but some tests exercising this would be awesome.
Otherwise LGTM.
I'll add these tests as "acceptance tests" similar to the logs and events tests. Reason is we can't test the new behaviour based on how we currently do tests, by mocking the respective actor. Now we need a bundle and configuration zip file to test the unzip and merging logic. I think for this case an acceptance test is better here. Will add them as soon as we have the testkit in place.
Added the issue #110 accordingly to document the necessary tests.
This PR changes the
load bundle
logic. Instead of constructing theLoadBundle
infos from theBundleKeys
, the information are retrieved from thebundle.conf
inside the bundle zip file.If an additional configuration zip file (
configuration:dist
) is specified duringbundle load
then the infos of thebundle.conf
inside the configuration zip file are used. These infos are overriding the values of the bundle.This is the same logic as in the
conductr-cli
. It has been manually tested with and without additional configuration. Unit tests have not been provided, yet. First, @huntc should review the current approach. Afterwards I'll create tests for it.