From 5ef6371b8d452e8d0a88981f4d1ecdf6c9f74848 Mon Sep 17 00:00:00 2001
From: Endi Sukma Dewata <edewata@redhat.com>
Date: Wed, 10 Nov 2010 14:13:00 -0500
Subject: [PATCH] HBAC Service & Service Group test data

---
 install/static/test/data/hbacsvc_add.json       |   24 ++++++++++++
 install/static/test/data/hbacsvc_del.json       |    9 ++++
 install/static/test/data/hbacsvc_mod.json       |   31 +++++++++++++++
 install/static/test/data/hbacsvc_show.json      |   35 +++++++++++++++++
 install/static/test/data/hbacsvcgroup_add.json  |   26 +++++++++++++
 install/static/test/data/hbacsvcgroup_del.json  |    9 ++++
 install/static/test/data/hbacsvcgroup_mod.json  |   39 +++++++++++++++++++
 install/static/test/data/hbacsvcgroup_show.json |   46 +++++++++++++++++++++++
 8 files changed, 219 insertions(+), 0 deletions(-)
 create mode 100644 install/static/test/data/hbacsvc_add.json
 create mode 100644 install/static/test/data/hbacsvc_del.json
 create mode 100644 install/static/test/data/hbacsvc_mod.json
 create mode 100644 install/static/test/data/hbacsvc_show.json
 create mode 100644 install/static/test/data/hbacsvcgroup_add.json
 create mode 100644 install/static/test/data/hbacsvcgroup_del.json
 create mode 100644 install/static/test/data/hbacsvcgroup_mod.json
 create mode 100644 install/static/test/data/hbacsvcgroup_show.json

diff --git a/install/static/test/data/hbacsvc_add.json b/install/static/test/data/hbacsvc_add.json
new file mode 100644
index 0000000000000000000000000000000000000000..35da07a6eaaa2548eb6fc20468b190be3b3372e1
--- /dev/null
+++ b/install/static/test/data/hbacsvc_add.json
@@ -0,0 +1,24 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "cn": [
+                "test"
+            ],
+            "description": [
+                "Test Service"
+            ],
+            "dn": "cn=test,cn=hbacservices,cn=accounts,dc=dev,dc=example,dc=com",
+            "ipauniqueid": [
+                "c3302e82-ecfd11df-b3f78f4b-11cc007b"
+            ],
+            "objectclass": [
+                "ipaobject",
+                "ipahbacservice"
+            ]
+        },
+        "summary": "Added service \"test\"",
+        "value": "test"
+    }
+}
diff --git a/install/static/test/data/hbacsvc_del.json b/install/static/test/data/hbacsvc_del.json
new file mode 100644
index 0000000000000000000000000000000000000000..fcfce6259b60541fc316c76265acd057b4399646
--- /dev/null
+++ b/install/static/test/data/hbacsvc_del.json
@@ -0,0 +1,9 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": true,
+        "summary": "Deleted service \"test\"",
+        "value": "test"
+    }
+}
diff --git a/install/static/test/data/hbacsvc_mod.json b/install/static/test/data/hbacsvc_mod.json
new file mode 100644
index 0000000000000000000000000000000000000000..335009a989988a79534784a1709487326dc3f0ac
--- /dev/null
+++ b/install/static/test/data/hbacsvc_mod.json
@@ -0,0 +1,31 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "attributelevelrights": {
+                "aci": "rscwo",
+                "cn": "rscwo",
+                "description": "rscwo",
+                "ipauniqueid": "rsc",
+                "memberof": "rsc",
+                "nsaccountlock": "rscwo"
+            },
+            "cn": [
+                "test"
+            ],
+            "description": [
+                "Test"
+            ],
+            "ipauniqueid": [
+                "9e5aba82-edd411df-b3f78f4b-11cc007b"
+            ],
+            "objectclass": [
+                "ipaobject",
+                "ipahbacservice"
+            ]
+        },
+        "summary": null,
+        "value": "test"
+    }
+}
diff --git a/install/static/test/data/hbacsvc_show.json b/install/static/test/data/hbacsvc_show.json
new file mode 100644
index 0000000000000000000000000000000000000000..8047964e0432462284b0292ba00593c3b68fc4f9
--- /dev/null
+++ b/install/static/test/data/hbacsvc_show.json
@@ -0,0 +1,35 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "attributelevelrights": {
+                "aci": "rscwo",
+                "cn": "rscwo",
+                "description": "rscwo",
+                "ipauniqueid": "rsc",
+                "memberof": "rsc",
+                "nsaccountlock": "rscwo"
+            },
+            "cn": [
+                "sudo"
+            ],
+            "description": [
+                "sudo"
+            ],
+            "dn": "cn=sudo,cn=hbacservices,cn=accounts,dc=dev,dc=example,dc=com",
+            "ipauniqueid": [
+                "676e92a1-ec7611df-b3f78f4b-11cc007b"
+            ],
+            "memberof": [
+                "cn=SUDO,cn=hbacservicegroups,cn=accounts,dc=dev,dc=example,dc=com"
+            ],
+            "objectclass": [
+                "ipahbacservice",
+                "ipaobject"
+            ]
+        },
+        "summary": null,
+        "value": "sudo"
+    }
+}
diff --git a/install/static/test/data/hbacsvcgroup_add.json b/install/static/test/data/hbacsvcgroup_add.json
new file mode 100644
index 0000000000000000000000000000000000000000..b0827f59bc2b353e17f478a0dc033eb9b4e29b5e
--- /dev/null
+++ b/install/static/test/data/hbacsvcgroup_add.json
@@ -0,0 +1,26 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "cn": [
+                "test"
+            ],
+            "description": [
+                "Test Service Group"
+            ],
+            "dn": "cn=test,cn=hbacservicegroups,cn=accounts,dc=dev,dc=example,dc=com",
+            "ipauniqueid": [
+                "0ab6ba82-ecfe11df-b3f78f4b-11cc007b"
+            ],
+            "objectclass": [
+                "ipaobject",
+                "ipahbacservicegroup",
+                "groupOfNames",
+                "top"
+            ]
+        },
+        "summary": "Added HBAC Service group \"test\"",
+        "value": "test"
+    }
+}
diff --git a/install/static/test/data/hbacsvcgroup_del.json b/install/static/test/data/hbacsvcgroup_del.json
new file mode 100644
index 0000000000000000000000000000000000000000..134f7417e88dcbe446cf8f801a1f85b51c0fc270
--- /dev/null
+++ b/install/static/test/data/hbacsvcgroup_del.json
@@ -0,0 +1,9 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": true,
+        "summary": "Deleted HBAC Service group \"test\"",
+        "value": "test"
+    }
+}
diff --git a/install/static/test/data/hbacsvcgroup_mod.json b/install/static/test/data/hbacsvcgroup_mod.json
new file mode 100644
index 0000000000000000000000000000000000000000..e0ec916d3adca99d5953de0eea6fdc3ba90234cc
--- /dev/null
+++ b/install/static/test/data/hbacsvcgroup_mod.json
@@ -0,0 +1,39 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "attributelevelrights": {
+                "aci": "rscwo",
+                "businesscategory": "rscwo",
+                "cn": "rscwo",
+                "description": "rscwo",
+                "ipauniqueid": "rsc",
+                "member": "rscwo",
+                "nsaccountlock": "rscwo",
+                "o": "rscwo",
+                "objectclass": "rscwo",
+                "ou": "rscwo",
+                "owner": "rscwo",
+                "seealso": "rscwo"
+            },
+            "cn": [
+                "test"
+            ],
+            "description": [
+                "Test"
+            ],
+            "ipauniqueid": [
+                "2d67d284-edd511df-b3f78f4b-11cc007b"
+            ],
+            "objectclass": [
+                "ipaobject",
+                "ipahbacservicegroup",
+                "groupOfNames",
+                "top"
+            ]
+        },
+        "summary": "Modified HBAC Service group \"test\"",
+        "value": "test"
+    }
+}
diff --git a/install/static/test/data/hbacsvcgroup_show.json b/install/static/test/data/hbacsvcgroup_show.json
new file mode 100644
index 0000000000000000000000000000000000000000..7074457450a0c182bc2c339f9c275e5024e75a64
--- /dev/null
+++ b/install/static/test/data/hbacsvcgroup_show.json
@@ -0,0 +1,46 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "attributelevelrights": {
+                "aci": "rscwo",
+                "businesscategory": "rscwo",
+                "cn": "rscwo",
+                "description": "rscwo",
+                "ipauniqueid": "rsc",
+                "member": "rscwo",
+                "memberof": "rsc",
+                "nsaccountlock": "rscwo",
+                "o": "rscwo",
+                "objectclass": "rscwo",
+                "ou": "rscwo",
+                "owner": "rscwo",
+                "seealso": "rscwo"
+            },
+            "cn": [
+                "SUDO"
+            ],
+            "description": [
+                "Default group of SUDO related services"
+            ],
+            "dn": "cn=sudo,cn=hbacservicegroups,cn=accounts,dc=dev,dc=example,dc=com",
+            "ipauniqueid": [
+                "676e92ab-ec7611df-b3f78f4b-11cc007b"
+            ],
+            "member_hbacsvc": [
+                "sudo",
+                "sudo-i"
+            ],
+            "objectclass": [
+                "ipaobject",
+                "ipahbacservicegroup",
+                "nestedGroup",
+                "groupOfNames",
+                "top"
+            ]
+        },
+        "summary": null,
+        "value": "sudo"
+    }
+}
-- 
1.7.2.3

