Remove BLACKLISTED_BROKEN_FEATURES 99/80799/4
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 12 Mar 2019 15:11:45 +0000 (16:11 +0100)
committerStephen Kitt <skitt@redhat.com>
Fri, 15 Mar 2019 08:23:20 +0000 (08:23 +0000)
Since we are generating features and testing only individual ones,
there is no point in keeping the blacklist around, as features which
need to be disabled can just define sft.diag.skip or disable testing
completely.

JIRA: ODLPARENT-58
JIRA: ODLPARENT-80
Change-Id: I4ce7fbca7a190571ee650cdedd3fc9a955ffddcf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features-test/src/main/java/org/opendaylight/odlparent/featuretest/SingleFeatureTest.java

index 4f72b851081f23d4afd157f14093369a14dea3e4..6a092bb2e65266053e7c92dc4f0d2331a94f9aff 100644 (file)
@@ -26,10 +26,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.net.URI;
 import java.net.URISyntaxException;
-import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.EnumSet;
-import java.util.List;
 import java.util.Properties;
 import javax.inject.Inject;
 import org.apache.karaf.bundle.core.BundleService;
@@ -67,7 +64,6 @@ public class SingleFeatureTest {
     private static final String KEEP_UNPACK_DIRECTORY_PROP = "karaf.keep.unpack";
     private static final String PROFILE_PROP = "karaf.featureTest.profile";
     private static final String BUNDLES_DIAG_SKIP_PROP = "sft.diag.skip";
-    private static final String BUNDLES_DIAG_FORCE_PROP = "sft.diag.force";
     private static final String BUNDLES_DIAG_TIMEOUT_PROP = "sft.diag.timeout";
 
     // Maximum heap size
@@ -227,7 +223,6 @@ public class SingleFeatureTest {
             propagateSystemProperty(ORG_OPENDAYLIGHT_FEATURETEST_FEATURENAME_PROP),
             propagateSystemProperty(ORG_OPENDAYLIGHT_FEATURETEST_FEATUREVERSION_PROP),
             propagateSystemProperty(BUNDLES_DIAG_SKIP_PROP),
-            propagateSystemProperty(BUNDLES_DIAG_FORCE_PROP),
             propagateSystemProperty(BUNDLES_DIAG_TIMEOUT_PROP),
             // Needed for Agrona/aeron.io
             systemPackages("com.sun.media.sound", "sun.net", "sun.nio.ch"),
@@ -436,29 +431,14 @@ public class SingleFeatureTest {
                 "Failed to install Feature: " + getFeatureName() + " " + getFeatureVersion(), isInstalled);
         LOG.info("Successfully installed feature {} {}", getFeatureName(), getFeatureVersion());
 
-        if (!Boolean.getBoolean(BUNDLES_DIAG_SKIP_PROP)
-                && (Boolean.getBoolean(BUNDLES_DIAG_FORCE_PROP)
-                    || !BLACKLISTED_BROKEN_FEATURES.contains(getFeatureName()))) {
+        if (!Boolean.getBoolean(BUNDLES_DIAG_SKIP_PROP)) {
             LOG.info("new TestBundleDiag().checkBundleDiagInfos() STARTING");
             Integer timeOutInSeconds = Integer.getInteger(BUNDLES_DIAG_TIMEOUT_PROP, 5 * 60);
             new TestBundleDiag(bundleContext, bundleService).checkBundleDiagInfos(timeOutInSeconds, SECONDS);
             LOG.info("new TestBundleDiag().checkBundleDiagInfos() ENDED");
         } else {
-            LOG.warn("SKIPPING TestBundleDiag because system property {} is true or feature is blacklisted: {}",
-                    BUNDLES_DIAG_SKIP_PROP, getFeatureName());
+            LOG.warn("SKIPPING TestBundleDiag because system property {} is true: {}", BUNDLES_DIAG_SKIP_PROP,
+                getFeatureName());
         }
     }
-
-    // TODO remove this when all issues linked to parent https://bugs.opendaylight.org/show_bug.cgi?id=7582 are resolved
-    private static final List<String> BLACKLISTED_BROKEN_FEATURES = new ArrayList<>(Arrays.asList(
-            // integration/distribution/features-test due to DOMRpcService
-            // see https://bugs.opendaylight.org/show_bug.cgi?id=7595
-            "odl-integration-all",
-            // controller/features/mdsal/ due to IllegalStateException: ./configuration/initial/akka.conf is missing
-            // see https://bugs.opendaylight.org/show_bug.cgi?id=7583
-            "odl-mdsal-broker-local",
-            "odl-mdsal-clustering-commons",
-            "odl-mdsal-distributed-datastore",
-            "odl-mdsal-remoterpc-connector"
-    ));
 }