Commit Graph

7 Commits

Author SHA1 Message Date
Jonathan Rosser cef65a6390 Update ansible-lint==4.3.5, flake8==3.8.3, bashate>=0.5.1
Correct lint errors that arise from these version updates.

Change-Id: I3216032b0d383ca6d4f6304c92151ce12dc5e114
2020-09-30 11:24:29 +00:00
Dmitriy Rabotjagov 3bf45d57cb Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.

Change-Id: I8a070e0aded59dd7a4751218bd95bc23d153c6d3
2019-05-08 19:49:28 +03:00
Jesse Pretorius 85b51389cc Use local connection and become for localhost plays
When targeting localhost with 'remote_user: root' and
using 'become: yes' we lose the environment variables
for the user running the playbook (eg: USER, HOME).

However, if we use 'connection: local' and 'become: yes'
together, it works properly.

To ensure these plays have the correct access to change
things on the host, we apply this change to them all.

We also ensure that 'become: no' is explicitly set on
any local connection plays to make the intent more
obvious. Finally, we also use 'yes' and 'no' uniformly.

Change-Id: I6e4607dd4aaffa0bfcda254103697bf9b28eca1a
2018-07-14 14:37:06 +01:00
Jesse Pretorius 56a4eb8ade Ensure all pre-cloned git sources are found
Currently the find task only looks at one level deep
for repo folders, instead of the required three levels
deep.

Using the find module does not give us the ability to
set the depth level we want to do the find down to,
so we use a find command instead.

Change-Id: I0b218fe276292e13dbb40ab38c9a167025d16e45
2017-10-31 10:06:02 +00:00
Jesse Pretorius dad9515c35 Implement any_errors_fatal for all test playbooks
Sometimes a test will result in a failure, but it
takes more time than necessary to find the failure
due to Ansible continuing to execute on other hosts
after removing one from the play execution.

This patch ensures that any error will result in
an immediate failure so that the fatal error is
easier to find.

Change-Id: I4e89bfdb1e48d0ac65f9fb8549e55a19ab773f9f
2017-07-17 10:09:11 +00:00
Andy McCrae e59747e762 Make a "test_branch" variable set to master
To avoid having to change each variable per release we can create a
single "test_branch" variable.

Additionally, when creating the "local-repo-packages.txt" constraints
file, we should use the "test_branch" variable to scope the constraints
file per release. This way upgrade jobs will continue to upgrade
correctly from the previous release's upstream project.

Change-Id: Ie9176fb561d0ef53051d1a39b5fb38dd30fb45bb
2017-06-16 18:04:50 +00:00
Andy McCrae d061f2dacd Implement generic developer mode.
The tests repo will mount a directory set by the
"development_repo_directory" value into each container at the mount
point located at "development_repo_directory", both of which
default to "~/git/openstack".

Any directories found inside this directory will be used to generate a
"local-package-constraints.txt" pip install constraints file, which will
be used when installing pip packages. This will mean you can override
any pip package with the local repository, and doesn't limit this to
just existing service projects.

Change-Id: I774343234a25063eb320cac85ba696d908f0a416
2017-05-25 17:12:54 +01:00