From 5ee3ab1623edfdb0226ccb28048d4b3a248a80b2 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 16 Mar 2011 01:18:03 -0400 Subject: Added netgroup test cases. --- .../functional/hostgroup-remove-member-host.html | 3 +- .../test/functional/netgroup-add-member-user.html | 72 +++++++++++ install/ui/test/functional/netgroup-add.html | 52 ++++++++ install/ui/test/functional/netgroup-del.html | 47 +++++++ install/ui/test/functional/netgroup-find.html | 72 +++++++++++ install/ui/test/functional/netgroup-mod.html | 137 +++++++++++++++++++++ .../functional/netgroup-remove-member-user.html | 67 ++++++++++ install/ui/test/functional/netgroups.html | 21 ++++ 8 files changed, 469 insertions(+), 2 deletions(-) create mode 100644 install/ui/test/functional/netgroup-add-member-user.html create mode 100644 install/ui/test/functional/netgroup-add.html create mode 100644 install/ui/test/functional/netgroup-del.html create mode 100644 install/ui/test/functional/netgroup-find.html create mode 100644 install/ui/test/functional/netgroup-mod.html create mode 100644 install/ui/test/functional/netgroup-remove-member-user.html create mode 100644 install/ui/test/functional/netgroups.html diff --git a/install/ui/test/functional/hostgroup-remove-member-host.html b/install/ui/test/functional/hostgroup-remove-member-host.html index c31302f7..7fd1ad58 100644 --- a/install/ui/test/functional/hostgroup-remove-member-host.html +++ b/install/ui/test/functional/hostgroup-remove-member-host.html @@ -13,7 +13,7 @@ open - /ipa/ui/#navigation=0&identity=3&hostgroup-facet=search&hostgroup-pkey=testhostgroup + /ipa/ui/#navigation=0&identity=3 @@ -71,7 +71,6 @@ 1 hostgroup matched - diff --git a/install/ui/test/functional/netgroup-add-member-user.html b/install/ui/test/functional/netgroup-add-member-user.html new file mode 100644 index 00000000..e985f2b1 --- /dev/null +++ b/install/ui/test/functional/netgroup-add-member-user.html @@ -0,0 +1,72 @@ + + + + + + +Add Member User + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Member User
open/ipa/ui/#navigation=0&identity=4
waitForTextPresent1 netgroup matched
clicklink=testnetgroup
waitForTextPresenttestnetgroup:
click//div[@id='netgroup']/div[1]/ul/li[9]
clicklink=Enroll
waitForElementPresent//input[@name='select' and @value='testuser']
click//input[@name='select' and @value='testuser']
clicklink=>>
click//button[@type='button']
waitForElementPresent//div[@id='netgroup']/span[@name='association']//input[@value='testuser']
+ + diff --git a/install/ui/test/functional/netgroup-add.html b/install/ui/test/functional/netgroup-add.html new file mode 100644 index 00000000..d4935ce5 --- /dev/null +++ b/install/ui/test/functional/netgroup-add.html @@ -0,0 +1,52 @@ + + + + + + +Add Netgroup + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add Netgroup
open/ipa/ui/#navigation=0&identity=4
waitForTextPresent0 netgroups matched
click//div[@id='netgroup']/div/ul/li[1]/span/span/a[2]
typecntestnetgroup
typedescriptionTest Netgroup
click//button[@type='button']
waitForTextPresent1 netgroup matched
+ + diff --git a/install/ui/test/functional/netgroup-del.html b/install/ui/test/functional/netgroup-del.html new file mode 100644 index 00000000..226c0c1f --- /dev/null +++ b/install/ui/test/functional/netgroup-del.html @@ -0,0 +1,47 @@ + + + + + + +Delete Netgroup + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Netgroup
open/ipa/ui/#navigation=0&identity=4
waitForTextPresent1 netgroup matched
click//input[@name='select' and @value='testnetgroup']
click//div[@id='netgroup']/div/ul/li[1]/span/span/a[1]
click//button[@type='button']
waitForTextPresent0 netgroups matched
+ + diff --git a/install/ui/test/functional/netgroup-find.html b/install/ui/test/functional/netgroup-find.html new file mode 100644 index 00000000..ac2a0f06 --- /dev/null +++ b/install/ui/test/functional/netgroup-find.html @@ -0,0 +1,72 @@ + + + + + + +Search Netgroup + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search Netgroup
open/ipa/ui/#navigation=0&identity=4
waitForTextPresent1 netgroup matched
typesearch-netgroup-filtertest
clicklink=Find
waitForTextPresent1 netgroup matched
typesearch-netgroup-filterxxx
clicklink=Find
waitForTextPresent0 netgroups matched
typesearch-netgroup-filter
clicklink=Find
waitForTextPresent1 netgroup matched
+ + diff --git a/install/ui/test/functional/netgroup-mod.html b/install/ui/test/functional/netgroup-mod.html new file mode 100644 index 00000000..03407d0b --- /dev/null +++ b/install/ui/test/functional/netgroup-mod.html @@ -0,0 +1,137 @@ + + + + + + +Edit Netgroup + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Netgroup
open/ipa/ui/#navigation=0&identity=4
waitForTextPresent1 netgroup matched
clicklink=testnetgroup
waitForTextPresenttestnetgroup:
typedescription
typeKeysdescriptionxxx
typenisdomainname
typeKeysnisdomainnameexample.com
clicklink=Update
waitForTextNotPresentundo
click//div[@id='netgroup']/div[1]/ul/li[1]/span
waitForElementPresent//div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup']
waitForElementPresent//div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup']/ancestor::tr//span[@name='description' and text()='xxx']
clicklink=testnetgroup
waitForTextPresenttestnetgroup:
typedescription
typeKeysdescriptionTest Netgroup
typenisdomainname
typeKeysnisdomainnameidm.lab.bos.redhat.com
clicklink=Update
waitForTextNotPresentundo
click//div[@id='netgroup']/div[1]/ul/li[1]/span
waitForElementPresent//div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup']
waitForElementPresent//div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup']/ancestor::tr//span[@name='description' and text()='Test Netgroup']
+ + diff --git a/install/ui/test/functional/netgroup-remove-member-user.html b/install/ui/test/functional/netgroup-remove-member-user.html new file mode 100644 index 00000000..beb3939c --- /dev/null +++ b/install/ui/test/functional/netgroup-remove-member-user.html @@ -0,0 +1,67 @@ + + + + + + +Delete Member User + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete Member User
open/ipa/ui/#navigation=0&identity=4
waitForTextPresent1 netgroup matched
clicklink=testnetgroup
waitForTextPresenttestnetgroup:
click//div[@id='netgroup']/div[1]/ul/li[9]
waitForElementPresent//div[@id='netgroup']//span[@name='association']//input[@value='testuser']
click//div[@id='netgroup']//span[@name='association']//input[@value='testuser']
clicklink=Delete
click//button[@type='button']
waitForElementNotPresent//div[@id='netgroup']//span[@name='association']//input[@value='testuser']
+ + diff --git a/install/ui/test/functional/netgroups.html b/install/ui/test/functional/netgroups.html new file mode 100644 index 00000000..5fe3fc10 --- /dev/null +++ b/install/ui/test/functional/netgroups.html @@ -0,0 +1,21 @@ + + + + + + Test Suite + + + + + + + + + + + + +
Test Suite
Add Netgroup
Search Netgroup
Edit Netgroup
Add User
Add Member User
Delete Member User
Delete User
Delete Netgroup
+ + -- cgit