trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [incubator-trafficcontrol] 10/36: Fix failing unit tests due to DDC changes
Date Wed, 24 Jan 2018 17:23:19 GMT
This is an automated email from the ASF dual-hosted git repository.

elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 6e403ad205183f059754acce4661909395662885
Author: Rawlin Peters <rawlin_peters@comcast.com>
AuthorDate: Wed Oct 25 10:37:25 2017 -0600

    Fix failing unit tests due to DDC changes
---
 .../cdn/traffic_control/traffic_router/core/external/StatsTest.java   | 4 ++--
 .../cdn/traffic_control/traffic_router/core/loc/CoverageZoneTest.java | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/external/StatsTest.java
b/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/external/StatsTest.java
index 006419d..97674ab 100644
--- a/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/external/StatsTest.java
+++ b/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/external/StatsTest.java
@@ -85,12 +85,12 @@ public class StatsTest {
 			Map<String, Object> dnsStats = (Map<String, Object>) statsData.get("dnsMap");
 			Map<String, Object> cacheDnsStats = (Map<String, Object>) dnsStats.values().iterator().next();
 			assertThat(cacheDnsStats.keySet(), containsInAnyOrder("czCount", "geoCount", "missCount",
"dsrCount", "errCount",
-				"staticRouteCount", "fedCount", "regionalDeniedCount", "regionalAlternateCount"));
+					"deepCzCount", "deepCzMissCount", "staticRouteCount", "fedCount", "regionalDeniedCount",
"regionalAlternateCount"));
 
 			Map<String, Object> httpStats = (Map<String, Object>) statsData.get("httpMap");
 			Map<String, Object> cacheHttpStats = (Map<String, Object>) httpStats.values().iterator().next();
 			assertThat(cacheHttpStats.keySet(), containsInAnyOrder("czCount", "geoCount", "missCount",
"dsrCount", "errCount",
-				"staticRouteCount", "fedCount", "regionalDeniedCount", "regionalAlternateCount"));
+					"deepCzCount", "deepCzMissCount", "staticRouteCount", "fedCount", "regionalDeniedCount",
"regionalAlternateCount"));
 
 			Map<String, Object> updateTracker = (Map<String, Object>) statsData.get("updateTracker");
 			Set<String> keys = updateTracker.keySet();
diff --git a/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/loc/CoverageZoneTest.java
b/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/loc/CoverageZoneTest.java
index 1e7523a..0387c89 100644
--- a/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/loc/CoverageZoneTest.java
+++ b/traffic_router/core/src/test/java/com/comcast/cdn/traffic_control/traffic_router/core/loc/CoverageZoneTest.java
@@ -88,6 +88,7 @@ public class CoverageZoneTest {
 		trafficRouter = PowerMockito.mock(TrafficRouter.class);
 		Whitebox.setInternalState(trafficRouter, "cacheRegister", cacheRegister);
 		when(trafficRouter.getCoverageZoneCacheLocation("12.23.34.45", "delivery-service-1")).thenCallRealMethod();
+		when(trafficRouter.getCoverageZoneCacheLocation("12.23.34.45", "delivery-service-1", false)).thenCallRealMethod();
 		when(trafficRouter.getCacheRegister()).thenReturn(cacheRegister);
 		when(trafficRouter.orderCacheLocations(cacheGroups,testLocation)).thenCallRealMethod();
 		when(trafficRouter.getSupportingCaches(anyListOf(Cache.class), eq(deliveryService))).thenCallRealMethod();

-- 
To stop receiving notification emails like this one, please contact
elsloo@apache.org.

Mime
View raw message