summaryrefslogtreecommitdiffstats
path: root/install/ui/test/data
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-06-18 19:03:37 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-27 14:18:35 +0200
commite6a373e930ae483bc2eb384da0bba5f2b4b8f6c2 (patch)
tree28c64bedb638e5ec67cfaf8e61677f7c281e0f22 /install/ui/test/data
parentdb2666d276ae60f2c3f1f5f1eaec87e55e32bf81 (diff)
downloadfreeipa-e6a373e930ae483bc2eb384da0bba5f2b4b8f6c2.tar.gz
freeipa-e6a373e930ae483bc2eb384da0bba5f2b4b8f6c2.tar.xz
freeipa-e6a373e930ae483bc2eb384da0bba5f2b4b8f6c2.zip
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 <edewata@redhat.com>
Diffstat (limited to 'install/ui/test/data')
-rw-r--r--install/ui/test/data/dnsforwardzone_add.json32
-rw-r--r--install/ui/test/data/dnsforwardzone_batch_del.json21
-rw-r--r--install/ui/test/data/dnsforwardzone_details_refresh.json52
-rw-r--r--install/ui/test/data/dnsforwardzone_find_pkeys.json19
-rw-r--r--install/ui/test/data/dnsforwardzone_get_records.json34
5 files changed, 158 insertions, 0 deletions
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