From 9d0dc89b03d4e3f50d54d1189a119016b2c805c3 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 11 Jan 2011 20:31:09 +0700 Subject: Renamed hbac to hbacrule. All references to hbac in the UI have been replaced with hbacrule. This is to match the hbacrule plugin. The test data and templates have been renamed as well. --- install/static/test/data/hbac_add.json | 27 -------- install/static/test/data/hbac_add_accesstime.json | 7 -- install/static/test/data/hbac_add_host.json | 56 ---------------- install/static/test/data/hbac_add_service.json | 56 ---------------- install/static/test/data/hbac_add_sourcehost.json | 56 ---------------- install/static/test/data/hbac_add_user.json | 56 ---------------- install/static/test/data/hbac_del.json | 9 --- install/static/test/data/hbac_find.json | 54 --------------- install/static/test/data/hbac_mod.json | 60 ----------------- .../static/test/data/hbac_remove_accesstime.json | 7 -- install/static/test/data/hbac_remove_host.json | 50 -------------- install/static/test/data/hbac_remove_service.json | 49 -------------- .../static/test/data/hbac_remove_sourcehost.json | 50 -------------- install/static/test/data/hbac_remove_user.json | 48 -------------- install/static/test/data/hbac_show.json | 76 ---------------------- install/static/test/data/hbacrule_add.json | 27 ++++++++ .../static/test/data/hbacrule_add_accesstime.json | 7 ++ install/static/test/data/hbacrule_add_host.json | 56 ++++++++++++++++ install/static/test/data/hbacrule_add_service.json | 56 ++++++++++++++++ .../static/test/data/hbacrule_add_sourcehost.json | 56 ++++++++++++++++ install/static/test/data/hbacrule_add_user.json | 56 ++++++++++++++++ install/static/test/data/hbacrule_del.json | 9 +++ install/static/test/data/hbacrule_find.json | 54 +++++++++++++++ install/static/test/data/hbacrule_mod.json | 60 +++++++++++++++++ .../test/data/hbacrule_remove_accesstime.json | 7 ++ install/static/test/data/hbacrule_remove_host.json | 50 ++++++++++++++ .../static/test/data/hbacrule_remove_service.json | 49 ++++++++++++++ .../test/data/hbacrule_remove_sourcehost.json | 50 ++++++++++++++ install/static/test/data/hbacrule_remove_user.json | 48 ++++++++++++++ install/static/test/data/hbacrule_show.json | 76 ++++++++++++++++++++++ install/static/test/data/ipa_init.json | 8 +-- 31 files changed, 665 insertions(+), 665 deletions(-) delete mode 100644 install/static/test/data/hbac_add.json delete mode 100644 install/static/test/data/hbac_add_accesstime.json delete mode 100644 install/static/test/data/hbac_add_host.json delete mode 100644 install/static/test/data/hbac_add_service.json delete mode 100644 install/static/test/data/hbac_add_sourcehost.json delete mode 100644 install/static/test/data/hbac_add_user.json delete mode 100644 install/static/test/data/hbac_del.json delete mode 100644 install/static/test/data/hbac_find.json delete mode 100644 install/static/test/data/hbac_mod.json delete mode 100644 install/static/test/data/hbac_remove_accesstime.json delete mode 100644 install/static/test/data/hbac_remove_host.json delete mode 100644 install/static/test/data/hbac_remove_service.json delete mode 100644 install/static/test/data/hbac_remove_sourcehost.json delete mode 100644 install/static/test/data/hbac_remove_user.json delete mode 100644 install/static/test/data/hbac_show.json create mode 100644 install/static/test/data/hbacrule_add.json create mode 100644 install/static/test/data/hbacrule_add_accesstime.json create mode 100644 install/static/test/data/hbacrule_add_host.json create mode 100644 install/static/test/data/hbacrule_add_service.json create mode 100644 install/static/test/data/hbacrule_add_sourcehost.json create mode 100644 install/static/test/data/hbacrule_add_user.json create mode 100644 install/static/test/data/hbacrule_del.json create mode 100644 install/static/test/data/hbacrule_find.json create mode 100644 install/static/test/data/hbacrule_mod.json create mode 100644 install/static/test/data/hbacrule_remove_accesstime.json create mode 100644 install/static/test/data/hbacrule_remove_host.json create mode 100644 install/static/test/data/hbacrule_remove_service.json create mode 100644 install/static/test/data/hbacrule_remove_sourcehost.json create mode 100644 install/static/test/data/hbacrule_remove_user.json create mode 100644 install/static/test/data/hbacrule_show.json (limited to 'install/static/test') diff --git a/install/static/test/data/hbac_add.json b/install/static/test/data/hbac_add.json deleted file mode 100644 index 2a5d251b..00000000 --- a/install/static/test/data/hbac_add.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "result": { - "accessruletype": [ - "allow" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=f3e69e82-e3b411df-bfde9b13-2b28c216,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "ipauniqueid": [ - "f3e69e82-e3b411df-bfde9b13-2b28c216" - ], - "objectclass": [ - "ipaassociation", - "ipahbacrule" - ] - }, - "summary": null, - "value": "test" - } -} \ No newline at end of file diff --git a/install/static/test/data/hbac_add_accesstime.json b/install/static/test/data/hbac_add_accesstime.json deleted file mode 100644 index 3c631155..00000000 --- a/install/static/test/data/hbac_add_accesstime.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "result": true - } -} diff --git a/install/static/test/data/hbac_add_host.json b/install/static/test/data/hbac_add_host.json deleted file mode 100644 index 038d6aea..00000000 --- a/install/static/test/data/hbac_add_host.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 2, - "failed": { - "memberhost": { - "host": [], - "hostgroup": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "memberuser_group": [ - "admins", - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - } - } -} diff --git a/install/static/test/data/hbac_add_service.json b/install/static/test/data/hbac_add_service.json deleted file mode 100644 index c658fe8b..00000000 --- a/install/static/test/data/hbac_add_service.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 3, - "failed": { - "memberservice": { - "hbacsvc": [], - "hbacsvcgroup": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "memberuser_group": [ - "admins", - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - } - } -} diff --git a/install/static/test/data/hbac_add_sourcehost.json b/install/static/test/data/hbac_add_sourcehost.json deleted file mode 100644 index a657207f..00000000 --- a/install/static/test/data/hbac_add_sourcehost.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 2, - "failed": { - "sourcehost": { - "host": [], - "hostgroup": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "memberuser_group": [ - "admins", - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - } - } -} diff --git a/install/static/test/data/hbac_add_user.json b/install/static/test/data/hbac_add_user.json deleted file mode 100644 index 0c4c976e..00000000 --- a/install/static/test/data/hbac_add_user.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 3, - "failed": { - "memberuser": { - "group": [], - "user": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "memberuser_group": [ - "admins", - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - } - } -} diff --git a/install/static/test/data/hbac_del.json b/install/static/test/data/hbac_del.json deleted file mode 100644 index 2197a12c..00000000 --- a/install/static/test/data/hbac_del.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "result": true, - "summary": null, - "value": "test" - } -} \ No newline at end of file diff --git a/install/static/test/data/hbac_find.json b/install/static/test/data/hbac_find.json deleted file mode 100644 index fd95d9f5..00000000 --- a/install/static/test/data/hbac_find.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "count": 2, - "result": [ - { - "accessruletype": [ - "allow" - ], - "cn": [ - "allow_all" - ], - "description": [ - "Allow all users to access any host from any host" - ], - "dn": "ipauniqueid=b7567b5a-e39311df-bfde9b13-2b28c216,cn=hbac,dc=dev,dc=example,dc=com", - "hostcategory": [ - "all" - ], - "ipaenabledflag": [ - "TRUE" - ], - "servicecategory": [ - "all" - ], - "sourcehostcategory": [ - "all" - ], - "usercategory": [ - "all" - ] - }, - { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=3b6d2a82-e3b511df-bfde9b13-2b28c216,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ] - } - ], - "summary": null, - "truncated": false - } -} diff --git a/install/static/test/data/hbac_mod.json b/install/static/test/data/hbac_mod.json deleted file mode 100644 index ea2b4d1e..00000000 --- a/install/static/test/data/hbac_mod.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "result": { - "accessruletype": [ - "allow" - ], - "attributelevelrights": { - "accessruletype": "rscwo", - "accesstime": "rscwo", - "aci": "rscwo", - "cn": "rscwo", - "description": "rscwo", - "externalhost": "rscwo", - "hostcategory": "rscwo", - "ipaenabledflag": "rscwo", - "ipauniqueid": "rsc", - "memberhost": "rscwo", - "memberservice": "rscwo", - "memberuser": "rscwo", - "nsaccountlock": "rscwo", - "servicecategory": "rscwo", - "sourcehost": "rscwo", - "sourcehostcategory": "rscwo", - "usercategory": "rscwo" - }, - "cn": [ - "test" - ], - "description": [ - "Test HBAC rule." - ], - "hostcategory": [ - "all" - ], - "ipaenabledflag": [ - "TRUE" - ], - "ipauniqueid": [ - "4ed8b682-edf511df-b3f78f4b-11cc007b" - ], - "objectclass": [ - "ipaassociation", - "ipahbacrule" - ], - "servicecategory": [ - "all" - ], - "sourcehostcategory": [ - "all" - ], - "usercategory": [ - "all" - ] - }, - "summary": null, - "value": "test" - } -} diff --git a/install/static/test/data/hbac_remove_accesstime.json b/install/static/test/data/hbac_remove_accesstime.json deleted file mode 100644 index 3c631155..00000000 --- a/install/static/test/data/hbac_remove_accesstime.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "result": true - } -} diff --git a/install/static/test/data/hbac_remove_host.json b/install/static/test/data/hbac_remove_host.json deleted file mode 100644 index 02f56ecd..00000000 --- a/install/static/test/data/hbac_remove_host.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 2, - "failed": { - "memberhost": { - "host": [], - "hostgroup": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "memberuser_group": [ - "admins", - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - } - } -} diff --git a/install/static/test/data/hbac_remove_service.json b/install/static/test/data/hbac_remove_service.json deleted file mode 100644 index f8b6b51a..00000000 --- a/install/static/test/data/hbac_remove_service.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 3, - "failed": { - "memberservice": { - "hbacsvc": [], - "hbacsvcgroup": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberuser_group": [ - "admins", - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - } - } -} diff --git a/install/static/test/data/hbac_remove_sourcehost.json b/install/static/test/data/hbac_remove_sourcehost.json deleted file mode 100644 index da32f76e..00000000 --- a/install/static/test/data/hbac_remove_sourcehost.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 2, - "failed": { - "sourcehost": { - "host": [], - "hostgroup": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "memberuser_group": [ - "admins", - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ] - } - } -} diff --git a/install/static/test/data/hbac_remove_user.json b/install/static/test/data/hbac_remove_user.json deleted file mode 100644 index f25317e8..00000000 --- a/install/static/test/data/hbac_remove_user.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "completed": 3, - "failed": { - "memberuser": { - "group": [], - "user": [] - } - }, - "result": { - "accessruletype": [ - "allow" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "cn": [ - "test" - ], - "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - } - } -} diff --git a/install/static/test/data/hbac_show.json b/install/static/test/data/hbac_show.json deleted file mode 100644 index 2c0b64b3..00000000 --- a/install/static/test/data/hbac_show.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "error": null, - "id": 0, - "result": { - "result": { - "accessruletype": [ - "deny" - ], - "accesstime": [ - "periodic daily 0800-1400", - "absolute 201012161032 ~ 201012161033" - ], - "attributelevelrights": { - "accessruletype": "rscwo", - "accesstime": "rscwo", - "aci": "rscwo", - "cn": "rscwo", - "description": "rscwo", - "externalhost": "rscwo", - "hostcategory": "rscwo", - "ipaenabledflag": "rscwo", - "ipauniqueid": "rsc", - "memberhost": "rscwo", - "memberservice": "rscwo", - "memberuser": "rscwo", - "nsaccountlock": "rscwo", - "servicecategory": "rscwo", - "sourcehost": "rscwo", - "sourcehostcategory": "rscwo", - "usercategory": "rscwo" - }, - "cn": [ - "test" - ], - "dn": "ipauniqueid=4ed8b682-edf511df-b3f78f4b-11cc007b,cn=hbac,dc=dev,dc=example,dc=com", - "ipaenabledflag": [ - "TRUE" - ], - "ipauniqueid": [ - "4ed8b682-edf511df-b3f78f4b-11cc007b" - ], - "memberhost_host": [ - "dev.example.com" - ], - "memberhost_hostgroup": [ - "production" - ], - "memberservice_hbacsvc": [ - "ftp", - "sshd" - ], - "memberservice_hbacsvcgroup": [ - "sudo" - ], - "memberuser_group": [ - "editors" - ], - "memberuser_user": [ - "admin", - "test" - ], - "objectclass": [ - "ipaassociation", - "ipahbacrule" - ], - "sourcehost_host": [ - "dev.example.com" - ], - "sourcehost_hostgroup": [ - "staging" - ] - }, - "summary": null, - "value": "test" - } -} diff --git a/install/static/test/data/hbacrule_add.json b/install/static/test/data/hbacrule_add.json new file mode 100644 index 00000000..2a5d251b --- /dev/null +++ b/install/static/test/data/hbacrule_add.json @@ -0,0 +1,27 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "accessruletype": [ + "allow" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=f3e69e82-e3b411df-bfde9b13-2b28c216,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "ipauniqueid": [ + "f3e69e82-e3b411df-bfde9b13-2b28c216" + ], + "objectclass": [ + "ipaassociation", + "ipahbacrule" + ] + }, + "summary": null, + "value": "test" + } +} \ No newline at end of file diff --git a/install/static/test/data/hbacrule_add_accesstime.json b/install/static/test/data/hbacrule_add_accesstime.json new file mode 100644 index 00000000..3c631155 --- /dev/null +++ b/install/static/test/data/hbacrule_add_accesstime.json @@ -0,0 +1,7 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true + } +} diff --git a/install/static/test/data/hbacrule_add_host.json b/install/static/test/data/hbacrule_add_host.json new file mode 100644 index 00000000..038d6aea --- /dev/null +++ b/install/static/test/data/hbacrule_add_host.json @@ -0,0 +1,56 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "memberhost": { + "host": [], + "hostgroup": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "memberuser_group": [ + "admins", + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_add_service.json b/install/static/test/data/hbacrule_add_service.json new file mode 100644 index 00000000..c658fe8b --- /dev/null +++ b/install/static/test/data/hbacrule_add_service.json @@ -0,0 +1,56 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 3, + "failed": { + "memberservice": { + "hbacsvc": [], + "hbacsvcgroup": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "memberuser_group": [ + "admins", + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_add_sourcehost.json b/install/static/test/data/hbacrule_add_sourcehost.json new file mode 100644 index 00000000..a657207f --- /dev/null +++ b/install/static/test/data/hbacrule_add_sourcehost.json @@ -0,0 +1,56 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "sourcehost": { + "host": [], + "hostgroup": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "memberuser_group": [ + "admins", + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_add_user.json b/install/static/test/data/hbacrule_add_user.json new file mode 100644 index 00000000..0c4c976e --- /dev/null +++ b/install/static/test/data/hbacrule_add_user.json @@ -0,0 +1,56 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 3, + "failed": { + "memberuser": { + "group": [], + "user": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "memberuser_group": [ + "admins", + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_del.json b/install/static/test/data/hbacrule_del.json new file mode 100644 index 00000000..2197a12c --- /dev/null +++ b/install/static/test/data/hbacrule_del.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true, + "summary": null, + "value": "test" + } +} \ No newline at end of file diff --git a/install/static/test/data/hbacrule_find.json b/install/static/test/data/hbacrule_find.json new file mode 100644 index 00000000..fd95d9f5 --- /dev/null +++ b/install/static/test/data/hbacrule_find.json @@ -0,0 +1,54 @@ +{ + "error": null, + "id": 0, + "result": { + "count": 2, + "result": [ + { + "accessruletype": [ + "allow" + ], + "cn": [ + "allow_all" + ], + "description": [ + "Allow all users to access any host from any host" + ], + "dn": "ipauniqueid=b7567b5a-e39311df-bfde9b13-2b28c216,cn=hbac,dc=dev,dc=example,dc=com", + "hostcategory": [ + "all" + ], + "ipaenabledflag": [ + "TRUE" + ], + "servicecategory": [ + "all" + ], + "sourcehostcategory": [ + "all" + ], + "usercategory": [ + "all" + ] + }, + { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=3b6d2a82-e3b511df-bfde9b13-2b28c216,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ] + } + ], + "summary": null, + "truncated": false + } +} diff --git a/install/static/test/data/hbacrule_mod.json b/install/static/test/data/hbacrule_mod.json new file mode 100644 index 00000000..ea2b4d1e --- /dev/null +++ b/install/static/test/data/hbacrule_mod.json @@ -0,0 +1,60 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "accessruletype": [ + "allow" + ], + "attributelevelrights": { + "accessruletype": "rscwo", + "accesstime": "rscwo", + "aci": "rscwo", + "cn": "rscwo", + "description": "rscwo", + "externalhost": "rscwo", + "hostcategory": "rscwo", + "ipaenabledflag": "rscwo", + "ipauniqueid": "rsc", + "memberhost": "rscwo", + "memberservice": "rscwo", + "memberuser": "rscwo", + "nsaccountlock": "rscwo", + "servicecategory": "rscwo", + "sourcehost": "rscwo", + "sourcehostcategory": "rscwo", + "usercategory": "rscwo" + }, + "cn": [ + "test" + ], + "description": [ + "Test HBAC rule." + ], + "hostcategory": [ + "all" + ], + "ipaenabledflag": [ + "TRUE" + ], + "ipauniqueid": [ + "4ed8b682-edf511df-b3f78f4b-11cc007b" + ], + "objectclass": [ + "ipaassociation", + "ipahbacrule" + ], + "servicecategory": [ + "all" + ], + "sourcehostcategory": [ + "all" + ], + "usercategory": [ + "all" + ] + }, + "summary": null, + "value": "test" + } +} diff --git a/install/static/test/data/hbacrule_remove_accesstime.json b/install/static/test/data/hbacrule_remove_accesstime.json new file mode 100644 index 00000000..3c631155 --- /dev/null +++ b/install/static/test/data/hbacrule_remove_accesstime.json @@ -0,0 +1,7 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true + } +} diff --git a/install/static/test/data/hbacrule_remove_host.json b/install/static/test/data/hbacrule_remove_host.json new file mode 100644 index 00000000..02f56ecd --- /dev/null +++ b/install/static/test/data/hbacrule_remove_host.json @@ -0,0 +1,50 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "memberhost": { + "host": [], + "hostgroup": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "memberuser_group": [ + "admins", + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_remove_service.json b/install/static/test/data/hbacrule_remove_service.json new file mode 100644 index 00000000..f8b6b51a --- /dev/null +++ b/install/static/test/data/hbacrule_remove_service.json @@ -0,0 +1,49 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 3, + "failed": { + "memberservice": { + "hbacsvc": [], + "hbacsvcgroup": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberuser_group": [ + "admins", + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_remove_sourcehost.json b/install/static/test/data/hbacrule_remove_sourcehost.json new file mode 100644 index 00000000..da32f76e --- /dev/null +++ b/install/static/test/data/hbacrule_remove_sourcehost.json @@ -0,0 +1,50 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "sourcehost": { + "host": [], + "hostgroup": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "memberuser_group": [ + "admins", + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_remove_user.json b/install/static/test/data/hbacrule_remove_user.json new file mode 100644 index 00000000..f25317e8 --- /dev/null +++ b/install/static/test/data/hbacrule_remove_user.json @@ -0,0 +1,48 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 3, + "failed": { + "memberuser": { + "group": [], + "user": [] + } + }, + "result": { + "accessruletype": [ + "allow" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "cn": [ + "test" + ], + "dn": "ipauniqueid=e8aca082-e64a11df-9864f2e0-e0578392,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + } + } +} diff --git a/install/static/test/data/hbacrule_show.json b/install/static/test/data/hbacrule_show.json new file mode 100644 index 00000000..2c0b64b3 --- /dev/null +++ b/install/static/test/data/hbacrule_show.json @@ -0,0 +1,76 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "accessruletype": [ + "deny" + ], + "accesstime": [ + "periodic daily 0800-1400", + "absolute 201012161032 ~ 201012161033" + ], + "attributelevelrights": { + "accessruletype": "rscwo", + "accesstime": "rscwo", + "aci": "rscwo", + "cn": "rscwo", + "description": "rscwo", + "externalhost": "rscwo", + "hostcategory": "rscwo", + "ipaenabledflag": "rscwo", + "ipauniqueid": "rsc", + "memberhost": "rscwo", + "memberservice": "rscwo", + "memberuser": "rscwo", + "nsaccountlock": "rscwo", + "servicecategory": "rscwo", + "sourcehost": "rscwo", + "sourcehostcategory": "rscwo", + "usercategory": "rscwo" + }, + "cn": [ + "test" + ], + "dn": "ipauniqueid=4ed8b682-edf511df-b3f78f4b-11cc007b,cn=hbac,dc=dev,dc=example,dc=com", + "ipaenabledflag": [ + "TRUE" + ], + "ipauniqueid": [ + "4ed8b682-edf511df-b3f78f4b-11cc007b" + ], + "memberhost_host": [ + "dev.example.com" + ], + "memberhost_hostgroup": [ + "production" + ], + "memberservice_hbacsvc": [ + "ftp", + "sshd" + ], + "memberservice_hbacsvcgroup": [ + "sudo" + ], + "memberuser_group": [ + "editors" + ], + "memberuser_user": [ + "admin", + "test" + ], + "objectclass": [ + "ipaassociation", + "ipahbacrule" + ], + "sourcehost_host": [ + "dev.example.com" + ], + "sourcehost_hostgroup": [ + "staging" + ] + }, + "summary": null, + "value": "test" + } +} diff --git a/install/static/test/data/ipa_init.json b/install/static/test/data/ipa_init.json index e399d808..3b3f2db7 100644 --- a/install/static/test/data/ipa_init.json +++ b/install/static/test/data/ipa_init.json @@ -3132,7 +3132,7 @@ ], "uuid_attribute": "ipauniqueid" }, - "hbac": { + "hbacrule": { "aciattrs": [ "accessruletype", "accesstime", @@ -3169,7 +3169,7 @@ ] }, "bindable": false, - "container_dn": "cn=hbac", + "container_dn": "cn=hbacrules", "default_attributes": [ "cn", "accessruletype", @@ -3208,7 +3208,7 @@ "remove_user", "show" ], - "name": "hbac", + "name": "hbacrule", "object_class": [ "ipaassociation", "ipahbacrule" @@ -7833,7 +7833,7 @@ "container_configs": "cn=configs,cn=policies", "container_dns": "cn=dns", "container_group": "cn=groups,cn=accounts", - "container_hbac": "cn=hbac", + "container_hbacrule": "cn=hbacrules", "container_hbacservice": "cn=hbacservices,cn=accounts", "container_hbacservicegroup": "cn=hbacservicegroups,cn=accounts", "container_host": "cn=computers,cn=accounts", -- cgit