From 5baa8ae9272fbc3a14eb98629d679bf840c7b3a6 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 23 Jul 2012 13:40:38 -0700 Subject: [PATCH] Add framework for selenium tests on test slaves. Fixes bug #996190 Add framework to run selenium tests on the test slaves. This includes installing the firefox and Xvfb packages, wrapping Horizon selenium tests with a script that creates an Xvfb X server, and running the Horizon selenium tests as check tests. The framework assumes selenium tests will use the WebDriver API and not need any other pieces of selenium (No selenium server etc). Change-Id: I4f4cc502276890d617b5baaadf5f8a6eae1ba1ff --- modules/builders.py | 3 +++ projects/openstack/horizon.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/modules/builders.py b/modules/builders.py index 5a19cbca7..61110df6d 100644 --- a/modules/builders.py +++ b/modules/builders.py @@ -100,6 +100,9 @@ for f in `find . -iname *.erb` ; do done """) + def _builder_selenium(self, xml_parent): + self._add_script(xml_parent, '/usr/local/jenkins/slave_scripts/run-selenium.sh') + def _builder_shell(self, xml_parent, data): self._add_script(xml_parent, data) diff --git a/projects/openstack/horizon.yml b/projects/openstack/horizon.yml index 69c597b1f..4f1fbdcf8 100644 --- a/projects/openstack/horizon.yml +++ b/projects/openstack/horizon.yml @@ -21,3 +21,31 @@ values: tarball_project: 'horizon' doc_publisher_site: 'docs.openstack.org' node: 'precise' + +--- +# gate-horizon-selenium +main: + name: 'gate-horizon-selenium' + review_site: 'review.openstack.org' + github_org: 'openstack' + project: 'horizon' + concurrent: 'true' + +logrotate: + daysToKeep: 28 + numToKeep: -1 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + +triggers: + - zuul + +builders: + - gerrit_git_prep + - selenium + +scm: + scm: 'false' + +assignednode: + node: 'precise'