From e6a373e930ae483bc2eb384da0bba5f2b4b8f6c2 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 18 Jun 2014 19:03:37 +0200 Subject: [PATCH] webui-test: dns forward zone json data Fake API results for testing and presentation purposes of DNS Forward Zones. https://fedorahosted.org/freeipa/ticket/4357 Reviewed-By: Endi Sukma Dewata --- install/ui/test/data/dnsforwardzone_add.json | 32 ++++++++++++ .../test/data/dnsforwardzone_batch_del.json | 21 ++++++++ .../data/dnsforwardzone_details_refresh.json | 52 +++++++++++++++++++ .../test/data/dnsforwardzone_find_pkeys.json | 19 +++++++ .../test/data/dnsforwardzone_get_records.json | 34 ++++++++++++ 5 files changed, 158 insertions(+) create mode 100644 install/ui/test/data/dnsforwardzone_add.json create mode 100644 install/ui/test/data/dnsforwardzone_batch_del.json create mode 100644 install/ui/test/data/dnsforwardzone_details_refresh.json create mode 100644 install/ui/test/data/dnsforwardzone_find_pkeys.json create mode 100644 install/ui/test/data/dnsforwardzone_get_records.json diff --git a/install/ui/test/data/dnsforwardzone_add.json b/install/ui/test/data/dnsforwardzone_add.json new file mode 100644 index 000000000..065cc4f75 --- /dev/null +++ b/install/ui/test/data/dnsforwardzone_add.json @@ -0,0 +1,32 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "dn": "idnsname=fwzone1.test.,cn=dns,dc=example,dc=com", + "idnsforwarders": [ + "172.16.15.2", + "172.16.15.1" + ], + "idnsforwardpolicy": [ + "first" + ], + "idnsname": [ + { + "__dns_name__": "fwzone1.test." + } + ], + "idnszoneactive": [ + "TRUE" + ], + "objectclass": [ + "top", + "idnsforwardzone" + ] + }, + "summary": null, + "value": { + "__dns_name__": "fwzone1.test." + } + } +} \ No newline at end of file diff --git a/install/ui/test/data/dnsforwardzone_batch_del.json b/install/ui/test/data/dnsforwardzone_batch_del.json new file mode 100644 index 000000000..8094c64ef --- /dev/null +++ b/install/ui/test/data/dnsforwardzone_batch_del.json @@ -0,0 +1,21 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "results": [ + { + "error": null, + "result": { + "failed": [] + }, + "summary": "Deleted DNS forward zone \"fwzone1.test.\"", + "value": [ + { + "__dns_name__": "fwzone1.test." + } + ] + } + ] + } +} \ No newline at end of file diff --git a/install/ui/test/data/dnsforwardzone_details_refresh.json b/install/ui/test/data/dnsforwardzone_details_refresh.json new file mode 100644 index 000000000..1643cd37b --- /dev/null +++ b/install/ui/test/data/dnsforwardzone_details_refresh.json @@ -0,0 +1,52 @@ +{ + "error": null, + "id": null, + "result": { + "count": 2, + "results": [ + { + "error": null, + "result": { + "attributelevelrights": { + "aci": "rscwo", + "idnsforwarders": "rscwo", + "idnsforwardpolicy": "rscwo", + "idnsname": "rscwo", + "idnszoneactive": "rscwo", + "nsaccountlock": "rscwo", + "objectclass": "rscwo" + }, + "dn": "idnsname=fwzone1.test.,cn=dns,dc=example,dc=com", + "idnsforwarders": [ + "172.16.15.2", + "172.16.15.1" + ], + "idnsforwardpolicy": [ + "first" + ], + "idnsname": [ + { + "__dns_name__": "fwzone1.test." + } + ], + "idnszoneactive": [ + "TRUE" + ], + "objectclass": [ + "top", + "idnsforwardzone" + ] + }, + "summary": null, + "value": { + "__dns_name__": "fwzone1.test." + } + }, + { + "error": "Manage DNS zone fwzone1.test.: permission not found", + "error_code": 4001, + "error_name": "NotFound" + } + ] + } +} \ No newline at end of file diff --git a/install/ui/test/data/dnsforwardzone_find_pkeys.json b/install/ui/test/data/dnsforwardzone_find_pkeys.json new file mode 100644 index 000000000..c0b478ff8 --- /dev/null +++ b/install/ui/test/data/dnsforwardzone_find_pkeys.json @@ -0,0 +1,19 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "result": [ + { + "dn": "idnsname=fwzone1.test.,cn=dns,dc=example,dc=com", + "idnsname": [ + { + "__dns_name__": "fwzone1.test." + } + ] + } + ], + "summary": null, + "truncated": false + } +} \ No newline at end of file diff --git a/install/ui/test/data/dnsforwardzone_get_records.json b/install/ui/test/data/dnsforwardzone_get_records.json new file mode 100644 index 000000000..ce7ddfdc3 --- /dev/null +++ b/install/ui/test/data/dnsforwardzone_get_records.json @@ -0,0 +1,34 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "results": [ + { + "error": null, + "result": { + "dn": "idnsname=fwzone1.test.,cn=dns,dc=example,dc=com", + "idnsforwarders": [ + "172.16.15.2", + "172.16.15.1" + ], + "idnsforwardpolicy": [ + "first" + ], + "idnsname": [ + { + "__dns_name__": "fwzone1.test." + } + ], + "idnszoneactive": [ + "TRUE" + ] + }, + "summary": null, + "value": { + "__dns_name__": "fwzone1.test." + } + } + ] + } +} \ No newline at end of file