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>
This commit is contained in:
Petr Vobornik 2014-06-18 19:03:37 +02:00
parent db2666d276
commit e6a373e930
5 changed files with 158 additions and 0 deletions

View File

@ -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."
}
}
}

View File

@ -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."
}
]
}
]
}
}

View File

@ -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"
}
]
}
}

View File

@ -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
}
}

View File

@ -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."
}
}
]
}
}