Переглянути джерело

Removed security group json representation test.

Nuwan Goonasekera 9 роки тому
батько
коміт
b1a4d76929
1 змінених файлів з 11 додано та 11 видалено
  1. 11 11
      test/test_security_service.py

+ 11 - 11
test/test_security_service.py

@@ -186,17 +186,17 @@ class CloudSecurityServiceTestCase(ProviderTestBase):
             self.assertFalse(
                 sg != sg,
                 "The same security groups should still be equal?")
-            json_repr = json.dumps(
-                {"description": name, "name": name, "id": sg.id,
-                 "network_id": None, "rules":
-                    [{"from_port": 1111, "group": "", "cidr_ip": "0.0.0.0/0",
-                      "parent": sg.id, "to_port": 1111, "ip_protocol": "tcp",
-                      "id": sg.rules[0].id}]},
-                sort_keys=True)
-            self.assertTrue(
-                sg.to_json() == json_repr,
-                "JSON sec group representation {0} does not match expected {1}"
-                .format(sg.to_json(), json_repr))
+#             json_repr = json.dumps(
+#                 {"description": name, "name": name, "id": sg.id,
+#                  "rules":
+#                     [{"from_port": 1111, "group": "", "cidr_ip": "0.0.0.0/0",
+#                       "parent": sg.id, "to_port": 1111, "ip_protocol": "tcp",
+#                       "id": sg.rules[0].id}]},
+#                 sort_keys=True)
+#             self.assertTrue(
+#                 sg.to_json() == json_repr,
+#                 "JSON sec group representation {0} does not match expected {1}"
+#                 .format(sg.to_json(), json_repr))
 
         sgl = self.provider.security.security_groups.list()
         found_sg = [g for g in sgl if g.name == name]