summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-10-15 15:46:44 -0400
committerAdam Young <ayoung@redhat.com>2010-10-25 11:47:19 -0400
commit88c88d95048f608b9b97b1591a76b126f6dd9872 (patch)
tree5db1360f57904e2d040fafa45686902f89847595 /install
parent476d1947a9625943ccc9241cfeceb84ff9590a39 (diff)
downloadfreeipa-88c88d95048f608b9b97b1591a76b126f6dd9872.tar.gz
freeipa-88c88d95048f608b9b97b1591a76b126f6dd9872.tar.xz
freeipa-88c88d95048f608b9b97b1591a76b126f6dd9872.zip
sample data for DNS
Diffstat (limited to 'install')
-rw-r--r--install/static/test/data/dns_find_rr.json110
-rw-r--r--install/static/test/data/json_metadata.json539
2 files changed, 448 insertions, 201 deletions
diff --git a/install/static/test/data/dns_find_rr.json b/install/static/test/data/dns_find_rr.json
new file mode 100644
index 000000000..4183f703f
--- /dev/null
+++ b/install/static/test/data/dns_find_rr.json
@@ -0,0 +1,110 @@
+{
+ "error": null,
+ "id": 6,
+ "result": {
+ "count": 11,
+ "result": [
+ {
+ "dn": "idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "ayoung.boston.devel.redhat.com"
+ ],
+ "nsrecord": [
+ "ipa.ayoung.boston.devel.redhat.com."
+ ]
+ },
+ {
+ "arecord": [
+ "192.168.122.81"
+ ],
+ "dn": "idnsname=ipa,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_ldap._tcp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_ldap._tcp"
+ ],
+ "srvrecord": [
+ "0 100 389 ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_kerberos,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_kerberos"
+ ],
+ "txtrecord": [
+ "AYOUNG.BOSTON.DEVEL.REDHAT.COM"
+ ]
+ },
+ {
+ "dn": "idnsname=_kerberos._tcp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_kerberos._tcp"
+ ],
+ "srvrecord": [
+ "0 100 88 ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_kerberos._udp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_kerberos._udp"
+ ],
+ "srvrecord": [
+ "0 100 88 ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_kerberos-master._tcp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_kerberos-master._tcp"
+ ],
+ "srvrecord": [
+ "0 100 88 ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_kerberos-master._udp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_kerberos-master._udp"
+ ],
+ "srvrecord": [
+ "0 100 88 ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_kpasswd._tcp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_kpasswd._tcp"
+ ],
+ "srvrecord": [
+ "0 100 464 ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_kpasswd._udp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_kpasswd._udp"
+ ],
+ "srvrecord": [
+ "0 100 464 ipa"
+ ]
+ },
+ {
+ "dn": "idnsname=_ntp._udp,idnsname=ayoung.boston.devel.redhat.com,cn=dns,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com",
+ "idnsname": [
+ "_ntp._udp"
+ ],
+ "srvrecord": [
+ "0 100 123 ipa"
+ ]
+ }
+ ],
+ "summary": null,
+ "truncated": false
+ }
+} \ No newline at end of file
diff --git a/install/static/test/data/json_metadata.json b/install/static/test/data/json_metadata.json
index e1cbffb52..8571ddf68 100644
--- a/install/static/test/data/json_metadata.json
+++ b/install/static/test/data/json_metadata.json
@@ -157,6 +157,7 @@
"add",
"del",
"find",
+ "import",
"show",
"tofiles"
],
@@ -696,7 +697,317 @@
"uuid_attribute": ""
},
"dns": {
- "__base64__": ""
+ "default_attributes": [
+ "idnsname",
+ "idnszoneactive",
+ "idnssoamname",
+ "idnssoarname",
+ "idnssoaserial",
+ "idnssoarefresh",
+ "idnssoaretry",
+ "idnssoaexpire",
+ "idnssoaminimum"
+ ],
+ "label": "DNS",
+ "methods": [
+ "add",
+ "del",
+ "find",
+ "mod",
+ "show"
+ ],
+ "name": "dns",
+ "primary_key": "idnsname",
+ "takes_params": [
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Str",
+ "cli_name": "name",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "Zone name (FQDN)",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "Zone",
+ "length": null,
+ "maxlength": null,
+ "minlength": null,
+ "multivalue": false,
+ "name": "idnsname",
+ "pattern": null,
+ "pattern_errmsg": null,
+ "primary_key": true,
+ "query": false,
+ "required": true,
+ "type": "unicode"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Str",
+ "cli_name": "name_server",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "Authoritative name server",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "Authoritative name server",
+ "length": null,
+ "maxlength": null,
+ "minlength": null,
+ "multivalue": false,
+ "name": "idnssoamname",
+ "pattern": null,
+ "pattern_errmsg": null,
+ "primary_key": false,
+ "query": false,
+ "required": true,
+ "type": "unicode"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Str",
+ "cli_name": "admin_email",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "administrator e-mail address",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "administrator e-mail address",
+ "length": null,
+ "maxlength": null,
+ "minlength": null,
+ "multivalue": false,
+ "name": "idnssoarname",
+ "pattern": null,
+ "pattern_errmsg": null,
+ "primary_key": false,
+ "query": false,
+ "required": true,
+ "type": "unicode"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Int",
+ "cli_name": "serial",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "SOA serial",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "SOA serial",
+ "maxvalue": null,
+ "minvalue": null,
+ "multivalue": false,
+ "name": "idnssoaserial",
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "int"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Int",
+ "cli_name": "refresh",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "SOA refresh",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "SOA refresh",
+ "maxvalue": null,
+ "minvalue": null,
+ "multivalue": false,
+ "name": "idnssoarefresh",
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "int"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Int",
+ "cli_name": "retry",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "SOA retry",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "SOA retry",
+ "maxvalue": null,
+ "minvalue": null,
+ "multivalue": false,
+ "name": "idnssoaretry",
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "int"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Int",
+ "cli_name": "expire",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "SOA expire",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "SOA expire",
+ "maxvalue": null,
+ "minvalue": null,
+ "multivalue": false,
+ "name": "idnssoaexpire",
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "int"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Int",
+ "cli_name": "minimum",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "SOA minimum",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "SOA minimum",
+ "maxvalue": null,
+ "minvalue": null,
+ "multivalue": false,
+ "name": "idnssoaminimum",
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "int"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Int",
+ "cli_name": "ttl",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "SOA time to live",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "SOA time to live",
+ "maxvalue": null,
+ "minvalue": null,
+ "multivalue": false,
+ "name": "dnsttl",
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "int"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "StrEnum",
+ "cli_name": "class",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "SOA class",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "SOA class",
+ "multivalue": false,
+ "name": "dnsclass",
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "unicode",
+ "values": [
+ "IN",
+ "CS",
+ "CH",
+ "HS"
+ ]
+ },
+ {
+ "attribute": false,
+ "autofill": true,
+ "class": "Flag",
+ "cli_name": "allow_dynupdate",
+ "cli_short_name": null,
+ "default": false,
+ "doc": "allow dynamic update?",
+ "exclude": null,
+ "falsehoods": [
+ 0,
+ "0",
+ "false"
+ ],
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "allow dynamic update?",
+ "multivalue": false,
+ "name": "idnsallowdynupdate",
+ "primary_key": false,
+ "query": false,
+ "required": true,
+ "truths": [
+ "1",
+ 1,
+ "true"
+ ],
+ "type": "bool"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Str",
+ "cli_name": "update_policy",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "BIND update policy",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "BIND update policy",
+ "length": null,
+ "maxlength": null,
+ "minlength": null,
+ "multivalue": false,
+ "name": "idnsupdatepolicy",
+ "pattern": null,
+ "pattern_errmsg": null,
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "unicode"
+ }
+ ]
},
"group": {
"attribute_members": {
@@ -2868,6 +3179,31 @@
"query": false,
"required": true,
"type": "unicode"
+ },
+ {
+ "attribute": false,
+ "autofill": false,
+ "class": "Bytes",
+ "cli_name": "certificate",
+ "cli_short_name": null,
+ "default": null,
+ "doc": "Base-64 encoded server certificate",
+ "exclude": null,
+ "flags": [],
+ "hint": null,
+ "include": null,
+ "label": "Certificate",
+ "length": null,
+ "maxlength": null,
+ "minlength": null,
+ "multivalue": false,
+ "name": "usercertificate",
+ "pattern": null,
+ "pattern_errmsg": null,
+ "primary_key": false,
+ "query": false,
+ "required": false,
+ "type": "str"
}
],
"uuid_attribute": "ipauniqueid"
@@ -2951,205 +3287,6 @@
"query": false,
"required": false,
"type": "unicode"
- },
- {
- "attribute": false,
- "autofill": false,
- "class": "Bytes",
- "cli_name": "certificate",
- "cli_short_name": null,
- "default": null,
- "doc": "Base-64 encoded server certificate",
- "exclude": null,
- "flags": [],
- "hint": null,
- "include": null,
- "label": "Certificate",
- "length": null,
- "maxlength": null,
- "minlength": null,
- "multivalue": false,
- "name": "usercertificate",
- "pattern": null,
- "pattern_errmsg": null,
- "primary_key": false,
- "query": false,
- "required": false,
- "type": "str"
- },
- {
- "attribute": false,
- "autofill": false,
- "class": "Str",
- "cli_name": "issuer",
- "cli_short_name": null,
- "default": null,
- "doc": "Issuer",
- "exclude": null,
- "flags": [
- "no_update",
- "no_create",
- "no_search"
- ],
- "hint": null,
- "include": null,
- "label": "Issuer",
- "length": null,
- "maxlength": null,
- "minlength": null,
- "multivalue": false,
- "name": "issuer",
- "pattern": null,
- "pattern_errmsg": null,
- "primary_key": false,
- "query": false,
- "required": false,
- "type": "unicode"
- },
- {
- "attribute": false,
- "autofill": false,
- "class": "Str",
- "cli_name": "valid_not_before",
- "cli_short_name": null,
- "default": null,
- "doc": "Not Before",
- "exclude": null,
- "flags": [
- "no_update",
- "no_create",
- "no_search"
- ],
- "hint": null,
- "include": null,
- "label": "Not Before",
- "length": null,
- "maxlength": null,
- "minlength": null,
- "multivalue": false,
- "name": "valid_not_before",
- "pattern": null,
- "pattern_errmsg": null,
- "primary_key": false,
- "query": false,
- "required": false,
- "type": "unicode"
- },
- {
- "attribute": false,
- "autofill": false,
- "class": "Str",
- "cli_name": "valid_not_after",
- "cli_short_name": null,
- "default": null,
- "doc": "Not After",
- "exclude": null,
- "flags": [
- "no_update",
- "no_create",
- "no_search"
- ],
- "hint": null,
- "include": null,
- "label": "Not After",
- "length": null,
- "maxlength": null,
- "minlength": null,
- "multivalue": false,
- "name": "valid_not_after",
- "pattern": null,
- "pattern_errmsg": null,
- "primary_key": false,
- "query": false,
- "required": false,
- "type": "unicode"
- },
- {
- "attribute": false,
- "autofill": false,
- "class": "Str",
- "cli_name": "md5_fingerprint",
- "cli_short_name": null,
- "default": null,
- "doc": "Fingerprint (MD5)",
- "exclude": null,
- "flags": [
- "no_update",
- "no_create",
- "no_search"
- ],
- "hint": null,
- "include": null,
- "label": "Fingerprint (MD5)",
- "length": null,
- "maxlength": null,
- "minlength": null,
- "multivalue": false,
- "name": "md5_fingerprint",
- "pattern": null,
- "pattern_errmsg": null,
- "primary_key": false,
- "query": false,
- "required": false,
- "type": "unicode"
- },
- {
- "attribute": false,
- "autofill": false,
- "class": "Str",
- "cli_name": "sha1_fingerprint",
- "cli_short_name": null,
- "default": null,
- "doc": "Fingerprint (SHA1)",
- "exclude": null,
- "flags": [
- "no_update",
- "no_create",
- "no_search"
- ],
- "hint": null,
- "include": null,
- "label": "Fingerprint (SHA1)",
- "length": null,
- "maxlength": null,
- "minlength": null,
- "multivalue": false,
- "name": "sha1_fingerprint",
- "pattern": null,
- "pattern_errmsg": null,
- "primary_key": false,
- "query": false,
- "required": false,
- "type": "unicode"
- },
- {
- "attribute": false,
- "autofill": false,
- "class": "Str",
- "cli_name": "serial_number",
- "cli_short_name": null,
- "default": null,
- "doc": "Serial number",
- "exclude": null,
- "flags": [
- "no_update",
- "no_create",
- "no_search"
- ],
- "hint": null,
- "include": null,
- "label": "Serial number",
- "length": null,
- "maxlength": null,
- "minlength": null,
- "multivalue": false,
- "name": "serial_number",
- "pattern": null,
- "pattern_errmsg": null,
- "primary_key": false,
- "query": false,
- "required": false,
- "type": "unicode"
}
],
"uuid_attribute": "ipauniqueid"
@@ -4337,4 +4474,4 @@
}
}
}
-}
+} \ No newline at end of file