Commit Graph

13 Commits

Author SHA1 Message Date
Jonathan Rosser 7c8888ac6d Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Ib7e1fa820767fe419eadd6309311204433e9bf20
2021-02-22 16:42:40 +00:00
Mohammed Naser 17c1b0b632 Make APT pinning noop on distros that don't use APT
Change-Id: I7d9920468d9719158135d0a85d711341cf46868e
2018-06-22 13:42:56 -04:00
Jesse Pretorius b9de2393c2 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: Ib5851b787c197f7cc64dce076d151026a6f36098
2018-03-28 10:10:46 +01:00
OpenStack Proposal Bot 6aa9f99c6e Updated from OpenStack Ansible Tests
Change-Id: Ic9877301f7cb7ae58b3b7f137f567e25c8e18842
2018-02-14 20:03:27 +00:00
Jean-Philippe Evrard 5f290f61cf Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Change-Id: I3a228b777bbf452d495399b87b9ff9b59c325a5d
2017-10-17 16:33:32 +00:00
OpenStack Proposal Bot 1e0f36cf8a Updated from OpenStack Ansible Tests
Change-Id: I1f9f165de0e11290b97c48e78dd42051c0251a6c
2017-10-12 20:43:42 +00:00
OpenStack Proposal Bot 2e86e9a8ab Updated from OpenStack Ansible Tests
Change-Id: Idd24936a99b3f58fc1882c6a3f88f91d20246420
2017-06-22 15:18:50 +00:00
Jesse Pretorius 7ac518860a Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.

Change-Id: I099882ed52c451025145dd712521e3d06902bff1
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:48:50 +01:00
Jesse Pretorius d1f0f2ec6d Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Depends-On: I5c1f2f0949d6b7ad7bfc4151257b081728ba956f
Change-Id: Id17b4ca37dd45ef75fb8daf0e38bbbf729caa5c7
2016-10-10 16:35:46 +01:00
Jesse Pretorius b158dadd13 Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: Ic47098e2bdf5cc26d4318e007f1d0376daa14d35
2016-09-27 09:31:12 +00:00
Jesse Pretorius 72c3a46884 Update tox config and add bashate E006, E040 exceptions
This patch updates the tox.ini the same bashate exceptions as are
currently in the OpenStack-Ansible playbook repo.

It also ensures that the linters and all lint targets work
appropriately and normalises the tox.ini configuration to use
uniform formatting.

The use of ansible.cfg is removed as there is no way of being
certain which paths can be used without reverting to an ugly
sed hack in the commands. This is why it is preferred to make
use of environment variables which make use of tox's default
substitutions instead. It's a more reliable way of achieving
the goal for the purpose of gating and testing.

The switch to using a git clone instead of ansible-galaxy to
download the plugins is due to the path spec not being able to
work in Ansible 2.x. [1]

[1] https://github.com/ansible/ansible/issues/13563

Change-Id: I2ec4e9a3087cdeb9c1846e3707071208ef2d02d4
2016-02-12 11:26:59 +00:00
Jean-Philippe Evrard e7b9f319d7 Use sudo for role testing
There are 2 ways to realize the privilege escalation needed
for the gate jobs.

1) Editing the playbooks (and hope to not forget to write the
sudo/become lines for every role)
2) Editing the inventory and set the variable there.

I'm taking the second approach with the minimum
set of variables (become_method is sudo by default
and become_user is root by default).

Change-Id: I4f7d423ad2d21611c466ec6bb58d45c5a2fd00b9
2015-11-25 13:35:50 +01:00
Kevin Carter a45aa3b2c1
IRR for apt_package_pinning
The change moves the role out from the main repo openstack-ansible
repository and into its own standalone repository.

Items within this change:
  * The role has been updated to ensure it runs standalone.
  * Tests added to the role within tox.
  * Functional tests added to the role that can either be run
    via the run_tests.sh script or using tox.
  * dev requirements have been updated for testing usecases.
  * Docs added to both the README.rst file as well as the docs
    folder.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-11-02 21:34:23 -06:00