You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2016/12/06 21:13:54 UTC
[05/12] incubator-trafficcontrol git commit: TR - add dns delivery
service to test CrConfig.json
TR - add dns delivery service to test CrConfig.json
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9577523f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9577523f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9577523f
Branch: refs/heads/master
Commit: 9577523fb07efb894699fc6ea465f28c2ac64f50
Parents: 40cd6a8
Author: Trevor Ackerman <tr...@gmail.com>
Authored: Mon Oct 24 10:55:57 2016 -0600
Committer: Dave Neuman <ne...@apache.org>
Committed: Tue Dec 6 14:13:05 2016 -0700
----------------------------------------------------------------------
.../src/test/resources/publish/CrConfig.json | 50 ++++++++++++++++++--
1 file changed, 47 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/9577523f/traffic_router/core/src/test/resources/publish/CrConfig.json
----------------------------------------------------------------------
diff --git a/traffic_router/core/src/test/resources/publish/CrConfig.json b/traffic_router/core/src/test/resources/publish/CrConfig.json
index 129f667..03af8da 100644
--- a/traffic_router/core/src/test/resources/publish/CrConfig.json
+++ b/traffic_router/core/src/test/resources/publish/CrConfig.json
@@ -15,7 +15,8 @@
"interfaceName": "bond0",
"deliveryServices": {
"https-only-test": ["edge-cache-001.https-only-test.thecdn.example.com"],
- "http-only-test": ["edge-cache-001.http-only-test.thecdn.example.com"]
+ "http-only-test": ["edge-cache-001.http-only-test.thecdn.example.com"],
+ "dns-test": ["edge-cache-001.dns-test.thecdn.example.com"]
}
},
"edge-cache-001": {
@@ -33,7 +34,8 @@
"interfaceName": "bond0",
"deliveryServices": {
"https-only-test": ["edge-cache-001.https-only-test.thecdn.example.com"],
- "http-only-test": ["edge-cache-001.http-only-test.thecdn.example.com"]
+ "http-only-test": ["edge-cache-001.http-only-test.thecdn.example.com"],
+ "dns-test": ["edge-cache-001.dns-test.thecdn.example.com"]
}
},
"edge-cache-002": {
@@ -51,7 +53,8 @@
"interfaceName": "bond0",
"deliveryServices": {
"https-only-test": ["edge-cache-002.https-only-test.thecdn.example.com"],
- "http-only-test": ["edge-cache-001.http-only-test.thecdn.example.com"]
+ "http-only-test": ["edge-cache-001.http-only-test.thecdn.example.com"],
+ "dns-test": ["edge-cache-001.dns-test.thecdn.example.com"]
}
},
"edge-cache-010": {
@@ -1008,6 +1011,47 @@
"refresh": "28800"
},
"geolocationProvider": "maxmindGeolocationService"
+ },
+ "dns-test": {
+ "sslEnabled": "false",
+ "bypassDestination": {
+ "DNS": {
+ "ttl": "30",
+ "cname": "www.example.com"
+ }
+ },
+ "domains": [
+ "dns-test.thecdn.example.com"
+ ],
+ "coverageZoneOnly": "false",
+ "matchsets": [{
+ "protocol": "DNS",
+ "matchlist": [{
+ "regex": ".*\\.dns-test\\..*",
+ "match-type": "HOST"
+ }]
+ }],
+ "ttls": {
+ "AAAA": "30",
+ "SOA": "7200",
+ "A": "30",
+ "NS": "3600"
+ },
+ "missLocation": {
+ "long": "-87.627778",
+ "lat": "41.881944"
+ },
+ "soa": {
+ "expire": "604800",
+ "minimum": "30",
+ "admin": "admin@thecdn.example.com",
+ "retry": "7200",
+ "refresh": "28800"
+ },
+ "geolocationProvider": "maxmindGeolocationService",
+ "ttl": "30",
+ "maxDnsIpsForLocation": "2",
+ "ip6RoutingEnabled": "false"
}
},
"stats": {