Ver código fonte

AMBARI-7063. Cannot query serviceConfigVersion with a config group name NULL. Additional fix.(mpapirkovskyy)

Myroslav Papirkovskyy 10 anos atrás
pai
commit
99319de442

+ 0 - 8
ambari-server/src/test/java/org/apache/ambari/server/state/host/HostTest.java

@@ -378,14 +378,6 @@ public class HostTest {
     Config config = configFactory.createNew(c1, "global",
         new HashMap<String,String>() {{ put("a", "b"); put("x", "y"); }}, new HashMap<String, Map<String,String>>());
     
-    try {
-      host.addDesiredConfig(c1.getClusterId(), true, "_test", config);
-      Assert.fail("Expect failure when version is not specified.");
-    }
-    catch (Exception e) {
-      // testing exception
-    }
-
     try {
       host.addDesiredConfig(c1.getClusterId(), true, null, config);
       Assert.fail("Expect failure when user is not specified.");