public enum ToggleableFeature implements Feature {
- @Label("Fabric Configuration")
- FABRIC_CONFIGURATION;
+ @Label("Default Feature")
+ DEFAULT_FEATURE;
public boolean isActive() {
return FeatureContext.getFeatureManager().isActive(this);
Optional<Resource> portResourceOp = getOrTranslatePortTemplate(translateTo, heatNetwork.get(
Constants.PORT_PROPERTY_NAME), translatedId, novaNodeTemplate);
-
- if (ToggleableFeature.FABRIC_CONFIGURATION.isActive()) {
- portResourceOp.ifPresent(portResource -> handleFabricConfiguration(translateTo, novaNodeTemplate.getType(), portResource));
- }
-
+ portResourceOp.ifPresent(portResource -> handleFabricConfiguration(translateTo, novaNodeTemplate.getType(), portResource));
}
}
}
@BeforeClass
- public static void enableFabricConfigurationTagging() {
- manager.enable(ToggleableFeature.FABRIC_CONFIGURATION);
+ public static void setUpClass() {
+ manager.enable(ToggleableFeature.DEFAULT_FEATURE);
TestFeatureManagerProvider.setFeatureManager(manager);
}
@AfterClass
- public static void disableFabricConfiguration() {
- manager.disable(ToggleableFeature.FABRIC_CONFIGURATION);
+ public static void tearDownClass() {
+ manager.disable(ToggleableFeature.DEFAULT_FEATURE);
manager = null;
TestFeatureManagerProvider.setFeatureManager(null);
}