[Cluster-devel] conga/luci/test conga_Helpers.py conga_suite.p ...
ldimaggi at sourceware.org
ldimaggi at sourceware.org
Mon Dec 11 21:37:23 UTC 2006
CVSROOT: /cvs/cluster
Module name: conga
Changes by: ldimaggi at sourceware.org 2006-12-11 21:37:22
Modified files:
luci/test : conga_Helpers.py conga_suite.py
Added files:
luci/test : tests_README.txt
Log message:
Added first revision of tests_README.txt
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/test/tests_README.txt.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/test/conga_Helpers.py.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/test/conga_suite.py.diff?cvsroot=cluster&r1=1.4&r2=1.5
/cvs/cluster/conga/luci/test/tests_README.txt,v --> standard output
revision 1.1
--- conga/luci/test/tests_README.txt
+++ - 2006-12-11 21:37:22.873459000 +0000
@@ -0,0 +1,85 @@
+README for Running RHEL5 Conga Automated GUI Tests
+==================================================
+
+(Rev 1.0 - 20061211, ldimaggi at redhat.com)
+
+1) Install Selenium Core
+ a. wget http://release.openqa.org/selenium-core/0.8.1/selenium-core-0.8.1.zip
+ b. Unzip someplace - I used /opt
+
+2) Make sure Firefox 1.5 or newer is installed - I'm using 1.5.0.8
+
+3) Make sure Java 1.5 is installed - I'm using Sun 1.5.0_09
+
+4) Add Firefox bin dir to PATH
+ a. export PATH=/usr/lib/firefox-1.5.0.8:$PATH
+
+5) Start up Selenium server:
+ a. cd /opt/selenium/selenium-remote-control-0.9.0/server/
+ b. java -jar selenium-server.jar
+
+6) On the luci server, modify config to not use SSL, edit /var/lib/luci/etc/zope.conf:
+ a. Change this:
+
+ <cgi-environment>
+ HTTPS ON
+ <cgi-environment>
+
+ to this:
+
+ <cgi-environment>
+ HTTPS OFF
+ <cgi-environment>
+
+ b. Change this:
+
+ <http-server>
+ # valid keys are "address" and "force-connection-close"
+ #address 8080
+ address localhost:25639
+ # force-connection-close on
+ </http-server>
+
+ to this:
+
+ <http-server>
+ address 8080
+ </http-server>
+
+ c. Restart luci service
+
+7) Get a local copy of the tests.
+
+ a. mkdir sandbox; cd sandbox
+ b. cvs -d :ext:ldimaggi at sources.redhat.com:/cvs/cluster checkout conga
+ c. cd conga/luci/tests
+
+8) Set up the test data to match your current test network node names
+ and passwords - edit conga_Helpers.py
+
+9) Run the tests individually:
+ a. python congaDemoTests.py
+ b. python CGA_0160_Add_User.py
+ c. python CGA_0170_Online_Documenation_Portlet.py
+ d. python CGA_0200_Create_cluster.py
+
+ Or, run all the tests as a suite:
+ a. python conga_suite.py
+
+ Look in the syslog and debug log on the luci server and in the selenium server log for errors if a test fails.
+
+Current Issues:
+===============
+
+ 1) The tests that create a cluster (congaDemoTests.py,
+ CGA_0200_Create_cluster.py) don't yet fully cleanup after a test
+ run. The cluster is deleted in the luci database, but the
+ cluster.conf file and the service startup settings are not reset
+ on the cluster nodes.
+
+ 2) The tests do not yet handle errors, other than expected failures.
+
+
+
+
+
--- conga/luci/test/conga_Helpers.py 2006/12/08 16:17:23 1.6
+++ conga/luci/test/conga_Helpers.py 2006/12/11 21:37:22 1.7
@@ -41,16 +41,16 @@
# 20061130 - Node tng3-1 isn't booting, node tng3-4 is having some problems too
-#CONGA_STORAGE_SYSTEMS = {'tng3-1.lab.msp.redhat.com':'password',
+CONGA_STORAGE_SYSTEMS = {'tng3-1.lab.msp.redhat.com':'password',
# 'tng3-2.lab.msp.redhat.com':'password',
-# 'tng3-3.lab.msp.redhat.com':'password',
-# 'tng3-4.lab.msp.redhat.com':'password',
-# 'tng3-5.lab.msp.redhat.com':'password'}
-
-CONGA_STORAGE_SYSTEMS = {'tng3-2.lab.msp.redhat.com':'password',
- 'tng3-3.lab.msp.redhat.com':'password',
+ 'tng3-3.lab.msp.redhat.com':'password',
+ 'tng3-4.lab.msp.redhat.com':'password',
'tng3-5.lab.msp.redhat.com':'password'}
+#CONGA_STORAGE_SYSTEMS = {'tng3-2.lab.msp.redhat.com':'password',
+# 'tng3-3.lab.msp.redhat.com':'password',
+# 'tng3-5.lab.msp.redhat.com':'password'}
+
#CONGA_CLUSTER_SYSTEMS = {'tng3-1.lab.msp.redhat.com':'password',
# 'tng3-2.lab.msp.redhat.com':'password',
# 'tng3-3.lab.msp.redhat.com':'password',
--- conga/luci/test/conga_suite.py 2006/12/07 20:56:48 1.4
+++ conga/luci/test/conga_suite.py 2006/12/11 21:37:22 1.5
@@ -64,9 +64,9 @@
# Assemble the suite
suite = unittest.TestSuite()
-suite.addTest(congaDemoSuite)
+#suite.addTest(congaDemoSuite)
suite.addTest(CGA_0160_Add_UserSuite)
-suite.addTest(CGA_0170_Online_Documentation_Portlet_Suite)
+#suite.addTest(CGA_0170_Online_Documentation_Portlet_Suite)
# Run the test suite
unittest.TextTestRunner(verbosity=2).run(suite)
More information about the Cluster-devel
mailing list