aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject incubator-aurora git commit: Add admin port support in mname.
Date Wed, 25 Feb 2015 18:25:51 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master 7de346148 -> 81641a17b


Add admin port support in mname.

Reviewed at https://reviews.apache.org/r/31418/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/81641a17
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/81641a17
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/81641a17

Branch: refs/heads/master
Commit: 81641a17b3f2eed8fa9469d341a9581e07805338
Parents: 7de3461
Author: Tony Dong <tonydong91@gmail.com>
Authored: Wed Feb 25 10:24:49 2015 -0800
Committer: Bill Farner <wfarner@apache.org>
Committed: Wed Feb 25 10:24:49 2015 -0800

----------------------------------------------------------------------
 src/main/java/org/apache/aurora/scheduler/http/Mname.java     | 2 +-
 src/test/java/org/apache/aurora/scheduler/http/MnameTest.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/81641a17/src/main/java/org/apache/aurora/scheduler/http/Mname.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/http/Mname.java b/src/main/java/org/apache/aurora/scheduler/http/Mname.java
index 69ce2aa..d735cbc 100644
--- a/src/main/java/org/apache/aurora/scheduler/http/Mname.java
+++ b/src/main/java/org/apache/aurora/scheduler/http/Mname.java
@@ -59,7 +59,7 @@ import static org.apache.aurora.gen.ScheduleStatus.RUNNING;
 public class Mname {
 
   private static final Set<String> HTTP_PORT_NAMES = ImmutableSet.of(
-      "health", "http", "HTTP", "web");
+      "health", "http", "HTTP", "web", "admin");
 
   private final Storage storage;
 

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/81641a17/src/test/java/org/apache/aurora/scheduler/http/MnameTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/aurora/scheduler/http/MnameTest.java b/src/test/java/org/apache/aurora/scheduler/http/MnameTest.java
index afa83f2..cf61dd1 100644
--- a/src/test/java/org/apache/aurora/scheduler/http/MnameTest.java
+++ b/src/test/java/org/apache/aurora/scheduler/http/MnameTest.java
@@ -156,6 +156,7 @@ public class MnameTest extends JettyServerModuleTest {
     assertEquals(Optional.of(6), getRedirectPort(ImmutableMap.of("http", 6)));
     assertEquals(Optional.of(7), getRedirectPort(ImmutableMap.of("HTTP", 7)));
     assertEquals(Optional.of(8), getRedirectPort(ImmutableMap.of("web", 8)));
+    assertEquals(Optional.of(9), getRedirectPort(ImmutableMap.of("admin", 9)));
   }
 
   private Optional<Integer> getRedirectPort(Map<String, Integer> ports) {


Mime
View raw message