summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-03-15 19:28:45 -0400
committerEndi S. Dewata <edewata@redhat.com>2011-03-21 15:57:10 -0400
commit8d68226f72041d231912cb9d3172c1d042333066 (patch)
treef1a5645b742d846bff8b85c6e53a2e2a2eff22c8
parentd40e1f3a7fceb834a38913269a49de6a4ac5fe88 (diff)
downloadfreeipa-8d68226f72041d231912cb9d3172c1d042333066.tar.gz
freeipa-8d68226f72041d231912cb9d3172c1d042333066.tar.xz
freeipa-8d68226f72041d231912cb9d3172c1d042333066.zip
Added host group test cases.
-rw-r--r--[-rwxr-xr-x]install/ui/test/functional/group-add-member-user.html0
-rw-r--r--[-rwxr-xr-x]install/ui/test/functional/group-remove-member-user.html0
-rw-r--r--install/ui/test/functional/host-mod.html (renamed from install/ui/test/functional/host-edit.html)0
-rw-r--r--install/ui/test/functional/hostgroup-add-member-host.html82
-rw-r--r--install/ui/test/functional/hostgroup-add.html52
-rw-r--r--install/ui/test/functional/hostgroup-del.html46
-rw-r--r--install/ui/test/functional/hostgroup-find.html72
-rw-r--r--install/ui/test/functional/hostgroup-mod77
-rw-r--r--install/ui/test/functional/hostgroup-remove-member-host.html77
-rw-r--r--install/ui/test/functional/hostgroups.html21
-rw-r--r--install/ui/test/functional/hosts.html2
11 files changed, 428 insertions, 1 deletions
diff --git a/install/ui/test/functional/group-add-member-user.html b/install/ui/test/functional/group-add-member-user.html
index b0b18f35..b0b18f35 100755..100644
--- a/install/ui/test/functional/group-add-member-user.html
+++ b/install/ui/test/functional/group-add-member-user.html
diff --git a/install/ui/test/functional/group-remove-member-user.html b/install/ui/test/functional/group-remove-member-user.html
index 9b37afcb..9b37afcb 100755..100644
--- a/install/ui/test/functional/group-remove-member-user.html
+++ b/install/ui/test/functional/group-remove-member-user.html
diff --git a/install/ui/test/functional/host-edit.html b/install/ui/test/functional/host-mod.html
index 773a9e82..773a9e82 100644
--- a/install/ui/test/functional/host-edit.html
+++ b/install/ui/test/functional/host-mod.html
diff --git a/install/ui/test/functional/hostgroup-add-member-host.html b/install/ui/test/functional/hostgroup-add-member-host.html
new file mode 100644
index 00000000..1030d6a5
--- /dev/null
+++ b/install/ui/test/functional/hostgroup-add-member-host.html
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="https://localhost/" />
+<title>Add Member Host</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Add Member Host</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/ipa/ui/#navigation=0&amp;identity=3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=testhostgroup</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>testhostgroup:</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div[1]/ul/li[6]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Enroll</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[1]//input[@name='select' and @value='test.example.com']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[1]//input[@name='select' and @value='test.example.com']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=&gt;&gt;</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//button[@type='button']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div[1]/ul/li[1]/span</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/install/ui/test/functional/hostgroup-add.html b/install/ui/test/functional/hostgroup-add.html
new file mode 100644
index 00000000..116c4725
--- /dev/null
+++ b/install/ui/test/functional/hostgroup-add.html
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="https://localhost/" />
+<title>Add Host Group</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Add Host Group</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/ipa/ui/#navigation=0&amp;identity=3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>0 hostgroups matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div/ul/li[1]/span/span/a[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>cn</td>
+ <td>testhostgroup</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>description</td>
+ <td>Test Host Group</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//button[@type='button']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/install/ui/test/functional/hostgroup-del.html b/install/ui/test/functional/hostgroup-del.html
new file mode 100644
index 00000000..e062f647
--- /dev/null
+++ b/install/ui/test/functional/hostgroup-del.html
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="https://localhost/" />
+<title>Delete Host Group</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Delete Host Group</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/ipa/ui/#navigation=0&amp;identity=3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//input[@name='select' and @value='testhostgroup']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div/ul/li[1]/span/span/a[1]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//button[@type='button']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>0 hostgroups matched</td>
+ <td></td>
+</tr>
+</tbody></table>
+</body>
+</html>
diff --git a/install/ui/test/functional/hostgroup-find.html b/install/ui/test/functional/hostgroup-find.html
new file mode 100644
index 00000000..08476f5c
--- /dev/null
+++ b/install/ui/test/functional/hostgroup-find.html
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="https://localhost/" />
+<title>Search Host Group</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Search Host Group</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/ipa/ui/#navigation=0&amp;identity=3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>search-hostgroup-filter</td>
+ <td>test</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/span/div[1]/span[1]/a/span</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>search-hostgroup-filter</td>
+ <td>xxx</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/span/div[1]/span[1]/a/span</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>0 hostgroups matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>search-hostgroup-filter</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/span/div[1]/span[1]/a/span</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/install/ui/test/functional/hostgroup-mod b/install/ui/test/functional/hostgroup-mod
new file mode 100644
index 00000000..a14029f9
--- /dev/null
+++ b/install/ui/test/functional/hostgroup-mod
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="https://localhost/" />
+<title>Edit Host Group</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Edit Host Group</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/ipa/ui/#navigation=0&amp;identity=3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=testhostgroup</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>testhostgroup:</td>
+ <td></td>
+</tr>
+<tr>
+ <td>typeKeys</td>
+ <td>description</td>
+ <td>xxx</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Update</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextNotPresent</td>
+ <td>undo</td>
+ <td></td>
+</tr>
+<tr>
+ <td>typeKeys</td>
+ <td>description</td>
+ <td>Test Host Group</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Update</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextNotPresent</td>
+ <td>undo</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div[1]/ul/li[1]/span</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/install/ui/test/functional/hostgroup-remove-member-host.html b/install/ui/test/functional/hostgroup-remove-member-host.html
new file mode 100644
index 00000000..c31302f7
--- /dev/null
+++ b/install/ui/test/functional/hostgroup-remove-member-host.html
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="https://localhost/" />
+<title>Delete Member Host</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Delete Member Host</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/ipa/ui/#navigation=0&amp;identity=3&amp;hostgroup-facet=search&amp;hostgroup-pkey=testhostgroup</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=testhostgroup</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>testhostgroup:</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div[1]/ul/li[6]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div[1]/ul/li[6]/ul/li[2]/span/a[1]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//button[@type='button']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementNotPresent</td>
+ <td>//div[@id='hostgroup']/span[@name='association']//input[@value='test.example.com']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='hostgroup']/div[1]/ul/li[1]/span</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>1 hostgroup matched</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/install/ui/test/functional/hostgroups.html b/install/ui/test/functional/hostgroups.html
new file mode 100644
index 00000000..0f681c1c
--- /dev/null
+++ b/install/ui/test/functional/hostgroups.html
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
+ <title>Test Suite</title>
+</head>
+<body>
+<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
+<tr><td><b>Test Suite</b></td></tr>
+<tr><td><a href="hostgroup-add.html">Add Host Group</a></td></tr>
+<tr><td><a href="hostgroup-find.html">Search Host Group</a></td></tr>
+<tr><td><a href="hostgroup-mod">Edit Host Group</a></td></tr>
+<tr><td><a href="host-add.html">Add Host</a></td></tr>
+<tr><td><a href="hostgroup-add-member-host.html">Add Member Host</a></td></tr>
+<tr><td><a href="hostgroup-remove-member-host.html">Delete Member Host</a></td></tr>
+<tr><td><a href="host-del.html">Delete Host</a></td></tr>
+<tr><td><a href="hostgroup-del.html">Delete Host Group</a></td></tr>
+</tbody></table>
+</body>
+</html>
diff --git a/install/ui/test/functional/hosts.html b/install/ui/test/functional/hosts.html
index fd984eeb..c58a751c 100644
--- a/install/ui/test/functional/hosts.html
+++ b/install/ui/test/functional/hosts.html
@@ -10,7 +10,7 @@
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="host-add.html">Add Host</a></td></tr>
<tr><td><a href="host-find.html">Search Host</a></td></tr>
-<tr><td><a href="host-edit.html">Edit Host</a></td></tr>
+<tr><td><a href="host-mod.html">Edit Host</a></td></tr>
<tr><td><a href="host-certificate.html">Host Certificate</a></td></tr>
<tr><td><a href="host-del.html">Delete Host</a></td></tr>
</tbody></table>