gokulakrishnansvm commented on code in PR #7424:
URL: https://github.com/apache/trafficcontrol/pull/7424#discussion_r1156228943


##########
traffic_ops/testing/api_contract/v4/response_template.json:
##########
@@ -0,0 +1,81 @@
+{
+    "type": "object",
+    "cdns": {
+        "type": "object",
+        "properties": {
+            "name": {
+                "type": "str"
+            },
+            "domainName": {
+                "type": "str"
+            },
+            "dnssecEnabled": {
+                "type": "bool"
+            },
+            "id": {
+                "type": "int"
+            },
+            "lastUpdated": {
+                "type": "str"
+            }
+        }
+    },
+    "cachegroup": {
+        "type": "object",
+        "properties": {
+            "id": {
+                "type": "int"
+            },
+            "name": {
+                "type": "str"
+            },
+            "shortName": {
+                "type": "str"
+            },
+            "latitude": {
+                "type": "float"
+            },
+            "longitude": {
+                "type": "float"
+            },
+            "parentCachegroupName": {
+                "optional": "True",
+                "typeA": "str",
+                "typeB": "NoneType"
+            },
+            "parentCachegroupId": {
+                "optional": "True",
+                "typeA": "int",
+                "typeB": "NoneType"
+            },
+            "secondaryParentCachegroupName": {
+                "optional": "True",
+                "typeA": "str",
+                "typeB": "NoneType"
+            },
+            "secondaryParentCachegroupId": {
+                "optional": "True",
+                "typeA": "int",
+                "typeB": "NoneType"
+            },
+            "fallbackToClosest": {
+                "type": "bool"
+            },
+            "localizationMethods": {
+                "type": "list"
+            },
+            "typeName": {
+                "type": "str"
+            },
+            "typeId": {
+                "type": "int"
+            },
+            "lastUpdated": {
+                "type": "str"
+            },
+            "fallbacks": {
+                "type": "list"
+            }
+        }
+    }
+}

Review Comment:
   Added



##########
traffic_ops/testing/api_contract/v4/request_template.json:
##########
@@ -0,0 +1,24 @@
+{
+       "cdns": [
+               {
+                       "name": "test",
+                       "domainName": "quest",
+                       "dnssecEnabled": false
+               }
+       ],
+       "cachegroup": [
+               {
+                       "name": "test",
+                       "shortName": "test",
+                       "latitude": 38.897663,
+                       "longitude": -77.036574,
+                       "fallbackToClosest": true,
+                       "localizationMethods": [
+                               "DEEP_CZ",
+                               "CZ",
+                               "GEO"
+                       ],
+                       "typeId": 23
+               }
+       ]
+}

Review Comment:
   Added



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to