This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I250cbe6699b73d7ddeb3c6e2b875ce8e439276be
Enable us to do `python -m jenkins_jobs ...`
which avoids the need to install executable in
user path.
Tests cli execution on each supported python version.
Uses default encoding workaround only on
python2, where is needed.
Change-Id: I4cd79fd51a8309d532e0e76723ecfbbda3e1ca6f
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Looks like the jenkins_jobs/cmd.py module it references was removed back
in December, but the tool slipped by. Since it's been nine months and no
one seems to have noticed, just remove it instead of updating it to use
jenkins_jobs/cli/entry.py
Change-Id: I9a888036f280addc7c57d649d673c24bf36e62d7
Related-Change: Ia0d3a062de16c4be10863372c753f4ba8480e620
Ensure we can provide multiple configurations to exercise different
behaviour within modules with complex job definition inputs.
This ensures that behaviour can be put behind config options, while
providing a platform to exercise these non-default values with the full
complexity of the OpenStack JJB definitions.
Since config options may result in different output, success is
determined by simply succeeding in executing JJB without error.
For additional review, any differences are outputted.
Change-Id: Ifd2b48ae85fbe7b5a2858dd426137c735c6ccd02
Make it easier for a complex organisation of configuration files for
testing, since JJB supports recursive searching and storing of scripts
in separate files to be inlined automatically using the '!include*'
tags.
Change-Id: I858103a2dae4aebdfbd9762b33858f4f84016350
Current clone works but would be better to pass just
'git://git.openstack.org' as the zuul-cloner base so it will be
more convienant to update if needed. Added a clonemap to
clone the project into the current directory.
Change-Id: If407ffd47678d260645b205b876d904da7e98218
Allow running of the compare test on developer workstations where it is
less common for zuul-cloner to be present by falling back to using git
clone with a depth of 1 if zuul-cloner is not available.
Change-Id: Idedc726bea12fb8862cd9574d9ce17b29011c15f
The script in jenkins-job-builder-compare-xml job failed due to git clone
executing a shallow clone:
Cloning into 'project-config'...
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header
This can be fixed by just removing the '/p/' from the url but we would
rather use the zuul-cloner because it can take advantage of the local
git cache on disk thus allowing for more efficient cloning.
Change-Id: I05f1c928a15cf5e791a95a01975e8aba78f4953f
Change the comparison script to use the new project-config repo created
due to a reorganization of the puppet modules and JJB config used for
openstack infrastructure.
Change-Id: Icbe8ddc7fcc6af9cc11d664e01ab6fd52ef8d288
I found out pbr to be a bit nicer when it comes to edit files. AFAIK
most OpenStack project are using it, so I guess Jenkins Job Builder can
be pbr based as well.o
Basically:
* moved everything from setup.py to setup.cfg
* sorted entries while at it
* require pbr module using the same version limits used by Zuul
* enable pbr.warnerrors
* testenv.usedevelop = True or build_sphinx can not find entry points
* move requirement files to root of repository (we had them in /tools/)
Change-Id: I44ee8910ad4fe4eebb7337951efa31baff4281fe
The assertMultiline equal was removed for assertEqual to be python26
friendly. Testtools has a matcher that provides similar functionality
that is python26 compatible. Use testtools instead of unittest for this
functionality. Remove use of unittest.main().
Change-Id: I348b0ee0192d3164084c20d9356e69f29e1cb86c
Instead of using load_tests to build a test suite out of a single
test case, rely on testscenarios. This library aims at running the
same test with different input data (`scenarios').
Some code is moved inside the test case to reduce the number of
scenario parameters (previously fixtures).
Change-Id: Iedb4cb3ad6341a9b397fa305b1ce2b329b6fdc15
I am trying to build up a very basic testing framework so we can tests
our publishers. The idea is to provide a YAML input file and expected
XML output, run the parser on the YAML file and compares its output with
the fixture XML.
That test suite should speed up development of new publishers.
TestCaseModulePublisher is declared inside a function so that unittest
discovery does not consider it a usable test directly. load_test is
responsible for instantiating the test suite.
Change-Id: If3260113eb1337ac47c3883b11c600e5a595dae3
[fabre.arnaud@gmail.com: fixed some runtime errors]
Signed-off-by: Arnaud Fabre <fabre.arnaud@gmail.com>
So that jenkins-jobs can be easily run for testing from the source
dir without installation.
Change-Id: Iabba59ad32ccd4b79eb8934e53c6d747110a06b0
Reviewed-on: https://review.openstack.org/26259
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
The openstack/openstack-ci-puppet repo moved and became
openstack-infra/config. Remove references to openstack-ci-puppet and
replace them with references to openstack-infra/config.
Change-Id: I75e7797995b894b6053901dbcfa351404048ea7c
Reviewed-on: https://review.openstack.org/23227
Reviewed-by: Khai Do <zaro0508@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Put it in test-requires so it's there when we build a tarball.
Change-Id: I8a5adec74beeb397e71e17030338a8051fe6fb0b
Reviewed-on: https://review.openstack.org/19885
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: I0e2b43d889593e01d6ad0761960c93472990af1e
Reviewed-on: https://review.openstack.org/16983
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
Done in order to enable specifying build pipelines at the project level.
Pipelines are built using the 'pipeline' plugin or the 'trigger-builds'
plugin. The downstream job to be executed is specified at the project
level, and substituted into the template. Ignoring definitions where
the downstream job is blank allows the pipeline to be easily terminated.
Also adding a samples/ directory, which currently contains an example of
pipeline creation, together with a new tools/run-compare-xml-samples.sh
to run the before/after test on the samples.
Change-Id: Icc324d1485e22db7824ad784890db48eb3e48f8f
Reviewed-on: https://review.openstack.org/13706
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Move test.sh to the tools directory.
Move parameters and notifications to their own modules; even
though they are implemented as Jenkins properties, they make
more sense as separate entities in the job builder, because
that's they way they are specified in the YAML. All three
modules that touch the properties xml object know how to
create it if it's missing.
Change-Id: I4b42ff10a93fd3ed98f632b58e47f3e0e45086d6
Reviewed-on: https://review.openstack.org/12741
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Make it easier to invoke the tox environments from another project
(eg, openstack-ci-puppet).
Change-Id: I88305c8edb79bb6e944eb35f5e39c84827807f11
Reviewed-on: https://review.openstack.org/12451
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I5a871026f2bf7757b7e3e46278391b41e90c5674
Reviewed-on: https://review.openstack.org/12289
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I5e0b76e195a1b412d180484ce1ddd3e9159d7779
Reviewed-on: https://review.openstack.org/12286
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins