1
0
mirror of https://github.com/openshift/openshift-ansible.git synced 2026-02-05 06:46:04 +01:00

32 Commits

Author SHA1 Message Date
Brent Barbachem
3b9289a934 no-jira: Update Test Requirements
** This reverts 879fe0ec0e in favor of using a specific version of setuptools.
**  Most people consider the deprecation of setuptools `tests_require` in 40.0.0 (this still causes errors). Previous versions also give errors
but for different missing features. Setuptools 45.0.0 appears new enough to get rid of said errors while still including the `tests_require` feature.
Considering 45.0.0 the sweetspot. This simplifies the travis config changes and setup.py changes. This also ensures we stick to specific versions.
2024-10-18 08:10:28 -04:00
Brent Barbachem
879fe0ec0e no-jira: Fix travis ci issues with tox
** There appear to be some issues occurring due to changes in setuptools. The
setuptools are used for yamllint and asible-syntax now but not pylinting. The
pylint was causing an issue to be hit for an unknown attribute in setuptools_lint.
** Each task was separated out in the travis ci file too in order to run them with
different deps - this will allow us to use built in features for pylint.
2024-10-17 12:20:20 -04:00
Russell Teague
300a2c87b1 Remove deprecated test playbooks
These playbooks are not used since moving to multi-stage tests in CI
2021-06-09 16:49:43 -04:00
Russell Teague
55ddf4cf7b Remove k8s modules from test playbooks
The k8s Ansible modules were only used in the test playbooks which have
now been refactored to use the `command` module with `oc` to be
consistent with the main playbooks.

Summary of changes:
- Removed ssh bastion creation playbooks and files
- ssh bastion creation is done via script in CI
- Creating machine sets is broken out into a separately included playbook
- Preparation of nodes has been consolidated
- Wait for new worker configs to roll out before removing CoreOS nodes
- removed python2-openshift from -test package, was required for `k8s*` modules
- Playbooks in test/ are now syntax checked
2020-03-09 08:42:57 -04:00
Russell Teague
0d15601985 Update tox test environment vars
Adds Ansible environment vars required to change Ansible to use /tmp
instead of user home.
2019-05-29 10:23:12 -04:00
Russell Teague
ed0210b2d5 Clean up tests
* Removes unit and generate_validation tox targets
* Bumps test-requirements.txt to latest versions
* Resolves minor lint issue in swapoff.py
* Removes coveralls
2019-03-08 16:28:27 -05:00
Shirly Radco
f7b9f1c94c Update the naming of openshift on rhv to ovirt
Updated all references of rhv to use ovirt insread,
since this is an upstream repo.

Signed-off-by: Shirly Radco sradco@redhat.com
2018-08-27 13:21:56 +03:00
Chandler Wilkerson
7b171bb4e8 RHV Provider Role and Playbooks 2018-08-21 16:18:06 +00:00
Kenny Woodson
300917e342 Azure: add playbook 2018-05-08 09:30:21 -04:00
Russell Teague
57964b41c5 Add templating check in failed_when conditions 2018-05-01 11:56:31 -04:00
Vadim Rutkovsky
eff1ca6b66 setup.py: exclude ymls which start with a dot
This would skip .papr.yml, which contains several documents in one
2018-04-30 12:52:42 +02:00
Vadim Rutkovsky
e509bc2cf8 setup.py: revert safe_load_all change 2018-04-30 12:41:36 +02:00
Vadim Rutkovsky
e39012c7aa PAPR: check HA install and minor update on all-in-one cluster 2018-04-16 11:23:35 +02:00
Scott Dodson
81edec6de1 Remove atomic-openshift-utils 2018-04-06 13:13:26 -04:00
Russell Teague
49aa6e6ac7 Add tox test to check for invalid playbook include
Playbooks should not include component entry point playbooks. This
results in running initialization steps again causing unintended
consequences.
2018-02-20 08:32:08 -05:00
Michael Gugino
3a14ee697a Fix container_runtime openshift_containerized_host_groups
openshift_containerized_host_groups needs to be referenced via
hostvars.

This commit also updates tox ansible syntax checks to account
for unavailability of hostsvars during syntax checks.

Fixes: https://github.com/openshift/openshift-ansible/issues/6540
2017-12-21 13:17:53 -05:00
Russell Teague
2bf65cdab4 Cleanup byo references 2017-12-08 15:55:25 -05:00
Russell Teague
7834423c6d Update deprecation checks - include: 2017-12-08 08:04:58 -05:00
Russell Teague
13424ed197 Start requiring Ansible 2.4 2017-11-09 15:03:18 -05:00
Simo Sorce
1a10dd5cc5 Fix mispelling in error message yammlint -> yamllint
Signed-off-by: Simo Sorce <simo@redhat.com>
2017-10-02 12:46:19 -04:00
Russell Teague
a1a3e3f141 Improve searching when conditions for Jinja2 delimiters 2017-09-11 14:19:10 -04:00
Russell Teague
2907ea9e47 Fix ansible_syntax check 2017-09-05 09:20:17 -04:00
Russell Teague
7256ceb93e Adding deprecation checks to ansible_syntax 2017-09-01 11:09:40 -04:00
Russell Teague
d8191cbd7a Test: Fail on entry point playbooks in common 2017-08-29 08:14:37 -04:00
Russell Teague
3c7d81651b More complete discovery of entry point playbooks
This change scans for supported entry point playbooks based on the
following conditions:

* In the supported directory of playbooks/byo
* Playbooks not included by any other playbooks
2017-08-08 15:20:16 -04:00
Russell Teague
b1898ac36a Add Ansible syntax checks to tox 2017-04-19 15:22:36 -04:00
Rodolfo Carvalho
0d6535242d Fix validation of generated code
Importing modules with the same name will not reload an already imported
module. Explicitly reloading the module is the quickest fix.
2017-02-20 17:38:08 +01:00
Kenny Woodson
b6576d28ec Updated the generate.py scripts for tox and virtualenv. 2017-01-18 14:49:15 -05:00
Kenny Woodson
11a6465965 Adding tox tests for generated code. 2017-01-18 13:46:39 -05:00
Steve Milner
9a259ef692 Added setup.py to flake8 tests
Added setup.py to flake8 tests since it is code. Also minor updates to
slightly modernize.

Note: In the future {#} should probably be ported to {} as numbering is
no longer needed (and disliked by many).
2017-01-12 15:14:05 -05:00
Russell Teague
4e56e14c41 Correct return code compairison for yamllint 2017-01-11 14:31:56 -05:00
Jason DeTiberus
be949e0a0a More toxification
- Move pylint tests to tox
- Move yamllint tests to tox
- Create separate tox config (and setup.py) for root
- bump ansible requirement
- unify pylint config
- add docs
- remove git directory containing old testing tools
- install python-six if not present for openshift-facts
- add python-six as a dependency for openshift-ansible-utils
2017-01-10 11:45:30 -05:00