From 3437fc9044b05d53d20c2d5ca0cb5b0705bff155 Mon Sep 17 00:00:00 2001 From: eleonorali Date: Sun, 18 Feb 2018 15:14:46 +0200 Subject: SRIOV - set Toggle feautures On on Flow Test SRIOV - set Toggle feautures On on Flow Test Change-Id: Id22c21d698c26ea506d338114d4c599d47e4a2b1 Issue-ID: SDC-1050 Signed-off-by: eleonorali --- .../impl/resourcetranslation/BaseFullTranslationTest.java | 14 ++------------ .../resourcetranslation/BaseResourceTranslationTest.java | 15 ++------------- 2 files changed, 4 insertions(+), 25 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src') diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseFullTranslationTest.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseFullTranslationTest.java index 8126d2967c..19f4d59514 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseFullTranslationTest.java +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseFullTranslationTest.java @@ -64,23 +64,13 @@ public class BaseFullTranslationTest { @BeforeClass public static void enableToggleableFeatures(){ manager = new TestFeatureManager(ToggleableFeature.class); - if (!ToggleableFeature.FORWARDER_CAPABILITY.isActive()) { - manager.enable(ToggleableFeature.FORWARDER_CAPABILITY); - } - if (!ToggleableFeature.ANNOTATIONS.isActive()) { - manager.enable(ToggleableFeature.ANNOTATIONS); - } - if(!ToggleableFeature.VLAN_TAGGING.isActive()) { - manager.enable(ToggleableFeature.VLAN_TAGGING); - } + manager.enableAll(); } @AfterClass public static void disableToggleableFeatures() { - manager.disable(ToggleableFeature.FORWARDER_CAPABILITY); - manager.disable(ToggleableFeature.ANNOTATIONS); - manager.disable(ToggleableFeature.VLAN_TAGGING); + manager.disableAll(); manager = null; TestFeatureManagerProvider.setFeatureManager(null); } diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseResourceTranslationTest.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseResourceTranslationTest.java index 4dc1612893..e784f94df9 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseResourceTranslationTest.java +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/resourcetranslation/BaseResourceTranslationTest.java @@ -98,23 +98,12 @@ public class BaseResourceTranslationTest { @BeforeClass public static void enableToggleableFeatures(){ manager = new TestFeatureManager(ToggleableFeature.class); - if (!ToggleableFeature.FORWARDER_CAPABILITY.isActive()) { - manager.enable(ToggleableFeature.FORWARDER_CAPABILITY); - } - if(!ToggleableFeature.ANNOTATIONS.isActive()) { - manager.enable(ToggleableFeature.ANNOTATIONS); - } - if(!ToggleableFeature.VLAN_TAGGING.isActive()){ - manager.enable(ToggleableFeature.VLAN_TAGGING); - } - + manager.enableAll(); } @AfterClass public static void disableToggleableFeatures() { - manager.disable(ToggleableFeature.FORWARDER_CAPABILITY); - manager.disable(ToggleableFeature.ANNOTATIONS); - manager.disable(ToggleableFeature.VLAN_TAGGING); + manager.disableAll(); manager = null; TestFeatureManagerProvider.setFeatureManager(null); } -- cgit 1.2.3-korg