AMBARI-16897. Sorting works incorrectly for config groups in Config History tab. (mpapirkovskyy)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2f38893c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2f38893c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2f38893c Branch: refs/heads/branch-2.4 Commit: 2f38893c84b12d68a1fbb43b00083b6ca64bf7f6 Parents: 93c3c77 Author: Myroslav Papirkovskyi <[email protected]> Authored: Thu May 26 16:55:15 2016 +0300 Committer: Myroslav Papirkovskyi <[email protected]> Committed: Thu May 26 17:01:25 2016 +0300 ---------------------------------------------------------------------- .../ambari/server/controller/ServiceConfigVersionResponse.java | 4 ++-- .../java/org/apache/ambari/server/state/cluster/ClusterTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/2f38893c/ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceConfigVersionResponse.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceConfigVersionResponse.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceConfigVersionResponse.java index 638e747..69b35f8 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceConfigVersionResponse.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceConfigVersionResponse.java @@ -40,12 +40,12 @@ public class ServiceConfigVersionResponse { /** * Name used for default config group. */ - public static final String DEFAULT_CONFIG_GROUP_NAME = "default"; + public static final String DEFAULT_CONFIG_GROUP_NAME = "Default"; /** * Name used for config groups that were deleted in the service config version response. */ - public static final String DELETED_CONFIG_GROUP_NAME = "deleted"; + public static final String DELETED_CONFIG_GROUP_NAME = "Deleted"; @JsonProperty("cluster_name") http://git-wip-us.apache.org/repos/asf/ambari/blob/2f38893c/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java b/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java index 826ea65..9a12a1b 100644 --- a/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java +++ b/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java @@ -1370,7 +1370,7 @@ public class ClusterTest { Assert.assertEquals("HDFS", hdfsResponse.getServiceName()); Assert.assertEquals("c1", hdfsResponse.getClusterName()); Assert.assertEquals("admin", hdfsResponse.getUserName()); - Assert.assertEquals("default", hdfsResponse.getGroupName()); + Assert.assertEquals("Default", hdfsResponse.getGroupName()); Assert.assertEquals(Long.valueOf(-1), hdfsResponse.getGroupId()); Assert.assertEquals(Long.valueOf(1), hdfsResponse.getVersion());
