When a feature fails to install, we would really like
some context to the failure. This option will result
in an additional warning with exception being logged.
Change-Id: I44d44f1905e9b2f400dc31b33473b16d839b9874
Signed-off-by: Robert Varga <rovarga@cisco.com>
public void installFeature() throws Exception {
LOG.info("Attempting to install feature {} {}", getFeatureName(), getFeatureVersion());
featuresService.installFeature(getFeatureName(), getFeatureVersion(),
- EnumSet.of(FeaturesService.Option.NoCleanIfFailure));
+ EnumSet.of(FeaturesService.Option.NoCleanIfFailure, FeaturesService.Option.PrintExecptionPerFeature));
Feature feature = featuresService.getFeature(getFeatureName(), getFeatureVersion());
Assert.assertNotNull(
"Attempt to get feature " + getFeatureName() + " " + getFeatureVersion() + "resulted in null", feature);