From a340692cb86cf0f20e840c89f96dd40d28be8c74 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 16 Mar 2011 04:29:44 -0400 Subject: Added HBAC rule test cases. --- .../ui/test/functional/hbacrule-activation.html | 67 +++++++++++++++++ install/ui/test/functional/hbacrule-add.html | 51 +++++++++++++ install/ui/test/functional/hbacrule-del.html | 46 ++++++++++++ install/ui/test/functional/hbacrule-find.html | 72 ++++++++++++++++++ install/ui/test/functional/hbacrule-host.html | 87 ++++++++++++++++++++++ install/ui/test/functional/hbacrule-mod.html | 87 ++++++++++++++++++++++ install/ui/test/functional/hbacrule-user.html | 86 +++++++++++++++++++++ install/ui/test/functional/hbacrules.html | 24 ++++++ 8 files changed, 520 insertions(+) create mode 100644 install/ui/test/functional/hbacrule-activation.html create mode 100644 install/ui/test/functional/hbacrule-add.html create mode 100644 install/ui/test/functional/hbacrule-del.html create mode 100644 install/ui/test/functional/hbacrule-find.html create mode 100644 install/ui/test/functional/hbacrule-host.html create mode 100644 install/ui/test/functional/hbacrule-mod.html create mode 100644 install/ui/test/functional/hbacrule-user.html create mode 100644 install/ui/test/functional/hbacrules.html diff --git a/install/ui/test/functional/hbacrule-activation.html b/install/ui/test/functional/hbacrule-activation.html new file mode 100644 index 00000000..b5397eb0 --- /dev/null +++ b/install/ui/test/functional/hbacrule-activation.html @@ -0,0 +1,67 @@ + + + + + + +HBAC Rule Activation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HBAC Rule Activation
open/ipa/ui/#navigation=1&policy=1
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
clicklink=testhbacrule
waitForTextPresenttesthbacrule:
click//input[@name='ipaenabledflag' and @value='FALSE']
clicklink=Update
waitForTextNotPresentundo
clickipaenabledflag
clicklink=Update
waitForTextNotPresentundo
+ + diff --git a/install/ui/test/functional/hbacrule-add.html b/install/ui/test/functional/hbacrule-add.html new file mode 100644 index 00000000..2dd46b66 --- /dev/null +++ b/install/ui/test/functional/hbacrule-add.html @@ -0,0 +1,51 @@ + + + + + + +Add HBAC Rule + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add HBAC Rule
open/ipa/ui/#navigation=1&policy=1
waitForTextPresent1 HBAC rule matched
click//div[@id='hbacrule']//div[@class='action-panel']//a[@title='Add']
typecntesthbacrule
clickaccessruletype
click//button[@type='button']
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
+ + diff --git a/install/ui/test/functional/hbacrule-del.html b/install/ui/test/functional/hbacrule-del.html new file mode 100644 index 00000000..ca6d0b8e --- /dev/null +++ b/install/ui/test/functional/hbacrule-del.html @@ -0,0 +1,46 @@ + + + + + + +Delete HBAC Rule + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete HBAC Rule
open/ipa/ui/#navigation=1&policy=1
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
click//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
click//div[@id='hbacrule']//div[@class='action-panel']//a[@title='Delete']
click//button[@type='button']
waitForElementNotPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
+ + diff --git a/install/ui/test/functional/hbacrule-find.html b/install/ui/test/functional/hbacrule-find.html new file mode 100644 index 00000000..9fcec8a6 --- /dev/null +++ b/install/ui/test/functional/hbacrule-find.html @@ -0,0 +1,72 @@ + + + + + + +Search HBAC Rule + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search HBAC Rule
open/ipa/ui/#navigation=1&policy=1
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
typesearch-hbacrule-filtertest
clicklink=Find
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
typesearch-hbacrule-filterxxx
clicklink=Find
waitForElementNotPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
typesearch-hbacrule-filter
clicklink=Find
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
+ + diff --git a/install/ui/test/functional/hbacrule-host.html b/install/ui/test/functional/hbacrule-host.html new file mode 100644 index 00000000..bcaff872 --- /dev/null +++ b/install/ui/test/functional/hbacrule-host.html @@ -0,0 +1,87 @@ + + + + + + +HBAC Rule Host + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HBAC Rule Host
open/ipa/ui/#navigation=1&policy=1
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
clicklink=testhbacrule
waitForTextPresenttesthbacrule:
click//div[@id='hbacrule']//span[@name='hostcategory']//span[@name='memberhost_host']//a[@title='Add']
waitForElementPresent//div[@name='available']//input[@value='test.example.com']
click//div[@name='available']//input[@value='test.example.com']
clicklink=>>
click//button[@type='button']
waitForElementPresent//div[@id='hbacrule']//span[@name='hostcategory']//span[@name='memberhost_host']//input[@value='test.example.com']
click//div[@id='hbacrule']//span[@name='hostcategory']//span[@name='memberhost_host']//input[@value='test.example.com']
click//div[@id='hbacrule']//span[@name='hostcategory']//span[@name='memberhost_host']//a[@title='Delete']
click//button[@type='button']
waitForElementNotPresent//div[@id='hbacrule']//span[@name='hostcategory']//span[@name='memberhost_host']//input[@value='test.example.com']
+ + diff --git a/install/ui/test/functional/hbacrule-mod.html b/install/ui/test/functional/hbacrule-mod.html new file mode 100644 index 00000000..18c2be91 --- /dev/null +++ b/install/ui/test/functional/hbacrule-mod.html @@ -0,0 +1,87 @@ + + + + + + +Edit HBAC Rule + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit HBAC Rule
open/ipa/ui/#navigation=1&policy=1
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
clicklink=testhbacrule
waitForTextPresenttesthbacrule:
typedescription
typeKeysdescriptionTest HBAC Rule
click//input[@name='accessruletype' and @value='deny']
clicklink=Update
waitForTextNotPresentundo
typeKeysdescriptionxxx
typedescription
clickaccessruletype
clicklink=Update
waitForTextNotPresentundo
+ + diff --git a/install/ui/test/functional/hbacrule-user.html b/install/ui/test/functional/hbacrule-user.html new file mode 100644 index 00000000..35d0a52e --- /dev/null +++ b/install/ui/test/functional/hbacrule-user.html @@ -0,0 +1,86 @@ + + + + + + +HBAC Rule User + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HBAC Rule User
open/ipa/ui/#navigation=1&policy=1
waitForElementPresent//div[@id='hbacrule']//span[@name='search']//input[@value='testhbacrule']
clicklink=testhbacrule
waitForTextPresenttesthbacrule:
clicklink=Add
waitForElementPresent//div[@name='available']//input[@value='testuser']
click//div[@name='available']//input[@value='testuser']
clicklink=>>
click//button[@type='button']
waitForElementPresent//div[@id='hbacrule']//span[@name='usercategory']//span[@name='memberuser_user']//input[@value='testuser']
click//div[@id='hbacrule']//span[@name='usercategory']//span[@name='memberuser_user']//input[@value='testuser']
clicklink=Delete
click//button[@type='button']
waitForElementNotPresent//div[@id='hbacrule']//span[@name='usercategory']//span[@name='memberuser_user']//input[@value='testuser']
+ + diff --git a/install/ui/test/functional/hbacrules.html b/install/ui/test/functional/hbacrules.html new file mode 100644 index 00000000..657197d0 --- /dev/null +++ b/install/ui/test/functional/hbacrules.html @@ -0,0 +1,24 @@ + + + + + + Test Suite + + + + + + + + + + + + + + + +
Test Suite
Add HBAC Rule
Search HBAC Rule
Edit HBAC Rule
HBAC Rule Activation
Add User
HBAC Rule User
Delete User
Add Host
HBAC Rule Host
Delete Host
Delete HBAC Rule
+ + -- cgit