Hi,

Please review the attached patch. This can be installed independently from my patch #28 (HBAC Services). Thanks!


https://fedorahosted.org/reviewboard/r/105/

--
Endi S. Dewata
From 2b082d4e801072f6c9866e77b4ec7b856cdbda71 Mon Sep 17 00:00:00 2001
From: Endi Sukma Dewata <edew...@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       |   16 ++++++++++++++
 install/static/test/data/hbacsvc_show.json      |   17 +++++++++++++++
 install/static/test/data/hbacsvcgroup_add.json  |   26 +++++++++++++++++++++++
 install/static/test/data/hbacsvcgroup_del.json  |    9 ++++++++
 install/static/test/data/hbacsvcgroup_mod.json  |   16 ++++++++++++++
 install/static/test/data/hbacsvcgroup_show.json |   21 ++++++++++++++++++
 8 files changed, 138 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..f2ada99308da6b1a1ae73dd8252747bd167dfaca
--- /dev/null
+++ b/install/static/test/data/hbacsvc_mod.json
@@ -0,0 +1,16 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "cn": [
+                "test"
+            ],
+            "description": [
+                "Test"
+            ]
+        },
+        "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..7301ab34f0438c6dd6457d6801c9e2326b463248
--- /dev/null
+++ b/install/static/test/data/hbacsvc_show.json
@@ -0,0 +1,17 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "cn": [
+                "sudo"
+            ],
+            "description": [
+                "sudo"
+            ],
+            "dn": "cn=sudo,cn=hbacservices,cn=accounts,dc=dev,dc=example,dc=com"
+        },
+        "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..3fdbff03a2543cd8e4aa675e4ac53e66c22767e6
--- /dev/null
+++ b/install/static/test/data/hbacsvcgroup_mod.json
@@ -0,0 +1,16 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "cn": [
+                "test"
+            ],
+            "description": [
+                "Test"
+            ]
+        },
+        "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..f6d05f6dd1cf2f574ee9b74680aa4d4c1dd32841
--- /dev/null
+++ b/install/static/test/data/hbacsvcgroup_show.json
@@ -0,0 +1,21 @@
+{
+    "error": null,
+    "id": 0,
+    "result": {
+        "result": {
+            "cn": [
+                "SUDO"
+            ],
+            "description": [
+                "Default group of SUDO related services"
+            ],
+            "dn": "cn=sudo,cn=hbacservicegroups,cn=accounts,dc=dev,dc=example,dc=com",
+            "member_hbacsvc": [
+                "sudo",
+                "sudo-i"
+            ]
+        },
+        "summary": null,
+        "value": "sudo"
+    }
+}
-- 
1.7.2.3

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to