From febf755dff3fc8f785d69fe33313058f6f1aa29e Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 22 Mar 2011 13:11:27 -0400 Subject: Added RBAC test cases. --- install/ui/test/functional/permission-add.html | 66 ++++++++++++++ install/ui/test/functional/permission-del.html | 46 ++++++++++ install/ui/test/functional/permission-find.html | 72 +++++++++++++++ install/ui/test/functional/permission-mod.html | 107 +++++++++++++++++++++++ install/ui/test/functional/permission-suite.html | 17 ++++ install/ui/test/functional/privilege-add.html | 51 +++++++++++ install/ui/test/functional/privilege-del.html | 46 ++++++++++ install/ui/test/functional/privilege-find.html | 71 +++++++++++++++ install/ui/test/functional/privilege-mod.html | 76 ++++++++++++++++ install/ui/test/functional/privilege-suite.html | 17 ++++ install/ui/test/functional/role-add.html | 51 +++++++++++ install/ui/test/functional/role-del.html | 46 ++++++++++ install/ui/test/functional/role-find.html | 71 +++++++++++++++ install/ui/test/functional/role-mod.html | 77 ++++++++++++++++ install/ui/test/functional/role-suite.html | 17 ++++ 15 files changed, 831 insertions(+) create mode 100644 install/ui/test/functional/permission-add.html create mode 100644 install/ui/test/functional/permission-del.html create mode 100644 install/ui/test/functional/permission-find.html create mode 100644 install/ui/test/functional/permission-mod.html create mode 100644 install/ui/test/functional/permission-suite.html create mode 100644 install/ui/test/functional/privilege-add.html create mode 100644 install/ui/test/functional/privilege-del.html create mode 100644 install/ui/test/functional/privilege-find.html create mode 100644 install/ui/test/functional/privilege-mod.html create mode 100644 install/ui/test/functional/privilege-suite.html create mode 100644 install/ui/test/functional/role-add.html create mode 100644 install/ui/test/functional/role-del.html create mode 100644 install/ui/test/functional/role-find.html create mode 100644 install/ui/test/functional/role-mod.html create mode 100644 install/ui/test/functional/role-suite.html diff --git a/install/ui/test/functional/permission-add.html b/install/ui/test/functional/permission-add.html new file mode 100644 index 00000000..d8b4afb1 --- /dev/null +++ b/install/ui/test/functional/permission-add.html @@ -0,0 +1,66 @@ + + + + + + +Add Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Permission
open/ipa/ui/#navigation=2&role-entity=permission
waitForNotVisible//span[@id='header-network-activity-indicator']
click//div[@id='role']/div[@class='action-panel']//a[@title='Add']
typecntestpermission
click//span[@name='permissions']//input[@value='write']
select//div[@name='target']//selectlabel=type
select//span[@name='type']//select[@name='type']label=user
click//dd[@name='attrs']//input[@value='description']
click//button[@type='button']
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testpermission']
+ + diff --git a/install/ui/test/functional/permission-del.html b/install/ui/test/functional/permission-del.html new file mode 100644 index 00000000..77f7b4df --- /dev/null +++ b/install/ui/test/functional/permission-del.html @@ -0,0 +1,46 @@ + + + + + + +Delete Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Permission
open/ipa/ui/#navigation=2&role-entity=permission
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testpermission']
click//div[@id='role']/span[@name='search']//input[@value='testpermission']
click//div[@id='role']/div[@class='action-panel']//a[@title='Delete']
click//button[@type='button']
waitForElementNotPresent//div[@id='role']/span[@name='search']//input[@value='testpermission']
+ + diff --git a/install/ui/test/functional/permission-find.html b/install/ui/test/functional/permission-find.html new file mode 100644 index 00000000..1b250838 --- /dev/null +++ b/install/ui/test/functional/permission-find.html @@ -0,0 +1,72 @@ + + + + + + +Search Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search Permission
open/ipa/ui/#navigation=2&role-entity=permission
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testpermission']
typesearch-permission-filtertest
clicklink=Find
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testpermission']
typesearch-permission-filterxxx
clicklink=Find
waitForElementNotPresent//div[@id='role']/span[@name='search']//input[@value='testpermission']
typesearch-permission-filter
clicklink=Find
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testpermission']
+ + diff --git a/install/ui/test/functional/permission-mod.html b/install/ui/test/functional/permission-mod.html new file mode 100644 index 00000000..ae8489b2 --- /dev/null +++ b/install/ui/test/functional/permission-mod.html @@ -0,0 +1,107 @@ + + + + + + +Edit Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Permission
open/ipa/ui/#navigation=2&role-entity=permission
waitForNotVisible//span[@id='header-network-activity-indicator']
clicklink=testpermission
waitForNotVisible//span[@id='header-network-activity-indicator']
click//div[@id='role']//span[@name='permissions']//input[@value='add']
click//div[@id='role']//span[@name='permissions']//input[@value='delete']
click//div[@id='role']//span[@name='permissions']//input[@value='write']
click//div[@id='role']//dd[@name='attrs']//input[@value='cn']
click//div[@id='role']//dd[@name='attrs']//input[@value='description']
clicklink=Update
waitForTextNotPresentundo
click//div[@id='role']//span[@name='permissions']//input[@value='write']
click//div[@id='role']//span[@name='permissions']//input[@value='add']
click//div[@id='role']//span[@name='permissions']//input[@value='delete']
click//div[@id='role']//dd[@name='attrs']//input[@value='cn']
click//div[@id='role']//dd[@name='attrs']//input[@value='description']
clicklink=Update
waitForTextNotPresentundo
+ + diff --git a/install/ui/test/functional/permission-suite.html b/install/ui/test/functional/permission-suite.html new file mode 100644 index 00000000..6f50bb7a --- /dev/null +++ b/install/ui/test/functional/permission-suite.html @@ -0,0 +1,17 @@ + + + + + + Test Suite + + + + + + + + +
Test Suite
Add Permission
Search Permission
Edit Permission
Delete Permission
+ + diff --git a/install/ui/test/functional/privilege-add.html b/install/ui/test/functional/privilege-add.html new file mode 100644 index 00000000..2cc27694 --- /dev/null +++ b/install/ui/test/functional/privilege-add.html @@ -0,0 +1,51 @@ + + + + + + +Add Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Permission
open/ipa/ui/#navigation=2&role-entity=privilege
waitForNotVisible//span[@id='header-network-activity-indicator']
click//div[@id='role']/div[@class='action-panel']//a[@title='Add']
typecntestprivilege
typedescriptionTest Privilege
click//button[@type='button']
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testprivilege']
+ + diff --git a/install/ui/test/functional/privilege-del.html b/install/ui/test/functional/privilege-del.html new file mode 100644 index 00000000..d206eb4b --- /dev/null +++ b/install/ui/test/functional/privilege-del.html @@ -0,0 +1,46 @@ + + + + + + +Delete Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Permission
open/ipa/ui/#navigation=2&role-entity=privilege
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testprivilege']
click//div[@id='role']/span[@name='search']//input[@value='testprivilege']
click//div[@id='role']/div[@class='action-panel']//a[@title='Delete']
click//button[@type='button']
waitForElementNotPresent//div[@id='role']/span[@name='search']//input[@value='testprivilege']
+ + diff --git a/install/ui/test/functional/privilege-find.html b/install/ui/test/functional/privilege-find.html new file mode 100644 index 00000000..f7bda6bd --- /dev/null +++ b/install/ui/test/functional/privilege-find.html @@ -0,0 +1,71 @@ + + + + + + +Search Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search Permission
open/ipa/ui/#navigation=2&role-entity=privilege
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testprivilege']
typesearch-privilege-filtertest
clicklink=Find
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testprivilege']
typesearch-privilege-filterxxx
clicklink=Find
waitForElementNotPresent//div[@id='role']/span[@name='search']//input[@value='testprivilege']
typesearch-privilege-filter
clicklink=Find
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testprivilege']
+ + diff --git a/install/ui/test/functional/privilege-mod.html b/install/ui/test/functional/privilege-mod.html new file mode 100644 index 00000000..92a33d82 --- /dev/null +++ b/install/ui/test/functional/privilege-mod.html @@ -0,0 +1,76 @@ + + + + + + +Edit Privilege + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Privilege
open/ipa/ui/#navigation=2&role-entity=privilege
waitForNotVisible//span[@id='header-network-activity-indicator']
clicklink=testprivilege
waitForNotVisible//span[@id='header-network-activity-indicator']
typedescription
typeKeysdescriptionxxx
clicklink=Update
waitForNotVisible//span[@id='header-network-activity-indicator']
typedescription
typeKeysdescriptionTest Privilege
clicklink=Update
waitForNotVisible//span[@id='header-network-activity-indicator']
+ + diff --git a/install/ui/test/functional/privilege-suite.html b/install/ui/test/functional/privilege-suite.html new file mode 100644 index 00000000..ff165696 --- /dev/null +++ b/install/ui/test/functional/privilege-suite.html @@ -0,0 +1,17 @@ + + + + + + Test Suite + + + + + + + + +
Test Suite
Add Privilege
Search Privilege
Edit Privilege
Delete Privilege
+ + diff --git a/install/ui/test/functional/role-add.html b/install/ui/test/functional/role-add.html new file mode 100644 index 00000000..9d6bc56a --- /dev/null +++ b/install/ui/test/functional/role-add.html @@ -0,0 +1,51 @@ + + + + + + +Add Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Permission
open/ipa/ui/#navigation=2&role-entity=role
waitForNotVisible//span[@id='header-network-activity-indicator']
click//div[@id='role']/div[@class='action-panel']//a[@title='Add']
typecntestrole
typedescriptionTest Role
click//button[@type='button']
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testrole']
+ + diff --git a/install/ui/test/functional/role-del.html b/install/ui/test/functional/role-del.html new file mode 100644 index 00000000..0f7dcedc --- /dev/null +++ b/install/ui/test/functional/role-del.html @@ -0,0 +1,46 @@ + + + + + + +Delete Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Permission
open/ipa/ui/#navigation=2&role-entity=role
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testrole']
click//div[@id='role']/span[@name='search']//input[@value='testrole']
click//div[@id='role']/div[@class='action-panel']//a[@title='Delete']
click//button[@type='button']
waitForElementNotPresent//div[@id='role']/span[@name='search']//input[@value='testrole']
+ + diff --git a/install/ui/test/functional/role-find.html b/install/ui/test/functional/role-find.html new file mode 100644 index 00000000..f8c21b4f --- /dev/null +++ b/install/ui/test/functional/role-find.html @@ -0,0 +1,71 @@ + + + + + + +Search Permission + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search Permission
open/ipa/ui/#navigation=2&role-entity=role
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testrole']
typesearch-role-filtertest
clicklink=Find
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testrole']
typesearch-role-filterxxx
clicklink=Find
waitForElementNotPresent//div[@id='role']/span[@name='search']//input[@value='testrole']
typesearch-role-filter
clicklink=Find
waitForElementPresent//div[@id='role']/span[@name='search']//input[@value='testrole']
+ + diff --git a/install/ui/test/functional/role-mod.html b/install/ui/test/functional/role-mod.html new file mode 100644 index 00000000..aa499fda --- /dev/null +++ b/install/ui/test/functional/role-mod.html @@ -0,0 +1,77 @@ + + + + + + +Edit Role + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Role
open/ipa/ui/#navigation=2&role-entity=role
waitForNotVisible//span[@id='header-network-activity-indicator']
clicklink=testrole
waitForNotVisible//span[@id='header-network-activity-indicator']
typedescription
typeKeysdescriptionxxx
clicklink=Update
waitForNotVisible//span[@id='header-network-activity-indicator']
typedescription
typeKeysdescriptionTest Role
clicklink=Update
waitForNotVisible//span[@id='header-network-activity-indicator']
+ + diff --git a/install/ui/test/functional/role-suite.html b/install/ui/test/functional/role-suite.html new file mode 100644 index 00000000..9b387bb9 --- /dev/null +++ b/install/ui/test/functional/role-suite.html @@ -0,0 +1,17 @@ + + + + + + Test Suite + + + + + + + + +
Test Suite
Add Role
Search Role
Edit Role
Delete Role
+ + -- cgit