From c4682611ac56362fce42ffcf2bbbcb2b24e07cf5 Mon Sep 17 00:00:00 2001 From: Simon Zhou Date: Thu, 9 Mar 2017 13:38:26 -0800 Subject: [PATCH] Use lower case for name in DiscoveryInfo --- .../dcos/cassandra/common/tasks/CassandraDaemonTask.java | 2 +- .../dcos/cassandra/common/tasks/CassandraDaemonTaskTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cassandra-commons/src/main/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTask.java b/cassandra-commons/src/main/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTask.java index 1f5a69ac..dd5445b7 100644 --- a/cassandra-commons/src/main/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTask.java +++ b/cassandra-commons/src/main/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTask.java @@ -311,7 +311,7 @@ private static DiscoveryInfo getDiscoveryInfo(boolean publishDiscoveryInfo, .setVisibility(DiscoveryInfo.Visibility.EXTERNAL) .setName(clusterName + "." + nodeName); discoveryBuilder.getPortsBuilder().addPortsBuilder() - .setName("NativeTransport") + .setName("nativetransport") .setNumber(nativePort); return discoveryBuilder.build(); } diff --git a/cassandra-commons/src/test/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTaskTest.java b/cassandra-commons/src/test/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTaskTest.java index cf424c14..d5a62715 100644 --- a/cassandra-commons/src/test/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTaskTest.java +++ b/cassandra-commons/src/test/java/com/mesosphere/dcos/cassandra/common/tasks/CassandraDaemonTaskTest.java @@ -240,7 +240,7 @@ public void testPublishDiscoveryInfo() { Assert.assertEquals(Protos.DiscoveryInfo.Visibility.EXTERNAL, discovery.getVisibility()); Assert.assertEquals(1, discovery.getPorts().getPortsCount()); Assert.assertEquals(9042, discovery.getPorts().getPorts(0).getNumber()); - Assert.assertEquals("NativeTransport", discovery.getPorts().getPorts(0).getName()); + Assert.assertEquals("nativetransport", discovery.getPorts().getPorts(0).getName()); } @Test