diff options
Diffstat (limited to 'install/static/test')
-rw-r--r-- | install/static/test/data/service_disable.json | 9 | ||||
-rw-r--r-- | install/static/test/data/sudorule_add.json | 24 | ||||
-rw-r--r-- | install/static/test/data/sudorule_del.json | 9 | ||||
-rw-r--r-- | install/static/test/data/sudorule_mod.json | 51 | ||||
-rw-r--r-- | install/static/test/entity_tests.js | 2 |
5 files changed, 94 insertions, 1 deletions
diff --git a/install/static/test/data/service_disable.json b/install/static/test/data/service_disable.json new file mode 100644 index 00000000..d62c0547 --- /dev/null +++ b/install/static/test/data/service_disable.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true, + "summary": "Removed kerberos key from \"test/dev.example.com@DEV.EXAMPLE.COM\"", + "value": "test/dev.example.com@DEV.EXAMPLE.COM" + } +} diff --git a/install/static/test/data/sudorule_add.json b/install/static/test/data/sudorule_add.json new file mode 100644 index 00000000..2b2b6394 --- /dev/null +++ b/install/static/test/data/sudorule_add.json @@ -0,0 +1,24 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "cn": [ + "test" + ], + "description": [ + "test" + ], + "dn": "ipauniqueid=94ef3550-f443-11df-a2aa-00163e72f2d9,cn=sudorules,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "94ef3550-f443-11df-a2aa-00163e72f2d9" + ], + "objectclass": [ + "ipaassociation", + "ipasudorule" + ] + }, + "summary": "Added sudo rule \"test\"", + "value": "test" + } +} diff --git a/install/static/test/data/sudorule_del.json b/install/static/test/data/sudorule_del.json new file mode 100644 index 00000000..c3097989 --- /dev/null +++ b/install/static/test/data/sudorule_del.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true, + "summary": null, + "value": "test" + } +} diff --git a/install/static/test/data/sudorule_mod.json b/install/static/test/data/sudorule_mod.json new file mode 100644 index 00000000..7785f5f5 --- /dev/null +++ b/install/static/test/data/sudorule_mod.json @@ -0,0 +1,51 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "cmdcategory": "rscwo", + "cn": "rscwo", + "description": "rscwo", + "externalhost": "rscwo", + "externaluser": "rscwo", + "hostcategory": "rscwo", + "hostmask": "rscwo", + "ipaenabledflag": "rscwo", + "ipasudoopt": "rscwo", + "ipasudorunas": "rscwo", + "ipasudorunasextgroup": "rscwo", + "ipasudorunasextuser": "rscwo", + "ipasudorunasgroup": "rscwo", + "ipasudorunasgroupcategory": "rscwo", + "ipasudorunasusercategory": "rscwo", + "ipauniqueid": "rsc", + "memberallowcmd": "rscwo", + "memberdenycmd": "rscwo", + "memberhost": "rscwo", + "memberuser": "rscwo", + "nsaccountlock": "rscwo", + "usercategory": "rscwo" + }, + "cmdcategory": [ + "all" + ], + "cn": [ + "test" + ], + "description": [ + "Test Rule" + ], + "ipauniqueid": [ + "94ef3550-f443-11df-a2aa-00163e72f2d9" + ], + "objectclass": [ + "ipaassociation", + "ipasudorule" + ] + }, + "summary": null, + "value": "test" + } +} diff --git a/install/static/test/entity_tests.js b/install/static/test/entity_tests.js index c431031d..8f016efe 100644 --- a/install/static/test/entity_tests.js +++ b/install/static/test/entity_tests.js @@ -101,7 +101,7 @@ test('Testing ipa_facet_setup_views().', function() { counter++; }; - facet.setup_views(container); + facet.create_action_panel(container); //Container now has two divs, one for the action panel one for content var list = container.children().last().children(); |