Commit Graph

38 Commits

Author SHA1 Message Date
Andreas Jaeger 1fa67fd90d Enable syncing of docs
The docs job is failing in https://review.opendev.org/671840 and thus
nothing is synced in from openstack-ansible-tests. The failure is due to
the removal of entries from doc/requirements.txt. Add those
to test-requirements.txt instead.

Change-Id: I21bcbde8acc8d4fd83b28026bcec33f388e69912
2020-06-03 22:04:16 +02:00
Heba Naser ee9ac0881c Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: Ibaf4aeeb60b0ceca8352cef87bf7c38529ca0fd2
2018-07-01 15:51:35 -04:00
OpenStack Proposal Bot 5dda1f6592 Updated from global requirements
Change-Id: I566916c4705088c75c6ab5b1e1ebe5c4f8e9fbe2
2018-03-15 06:44:52 +00:00
melissaml 540408f597 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I56c7a5247235f550ee3ed4344f79c8fa9e86cc67
2018-03-12 12:48:34 +08:00
OpenStack Proposal Bot c73aab2723 Updated from global requirements
Change-Id: I0d6d4672e7e9b4ec842bb6b5358b5db48f5991b6
2018-03-06 12:41:48 +00:00
OpenStack Proposal Bot 63201a4852 Updated from global requirements
Change-Id: Ic27d9379403c2662d17135c1c495b0668cf38f26
2018-01-24 00:48:49 +00:00
OpenStack Proposal Bot e01cffeddd Updated from global requirements
Change-Id: I9532295c84716d95786cf034b740157aaa0096b2
2018-01-17 20:27:37 +00:00
OpenStack Proposal Bot 35dbb68c6d Updated from global requirements
Change-Id: I6e3eaaaa7ae566ee5e01fc7c8daaa84988fc4675
2017-09-16 23:09:59 +00:00
OpenStack Proposal Bot 624f14c2b0 Updated from global requirements
Change-Id: Ie5d36797e743a2fabc0cffacf711956de60a0e58
2017-09-13 12:48:23 +00:00
OpenStack Proposal Bot f999cb7d24 Updated from global requirements
Change-Id: I520365690003a22ea616584739fcfbdccc729556
2017-09-12 17:29:52 +00:00
OpenStack Proposal Bot 8edfb3a9ad Updated from global requirements
Change-Id: I787a0621637c22911060a5cd2333931fa5e1be64
2017-08-26 11:30:40 +00:00
OpenStack Proposal Bot ca9b2e2cb7 Updated from global requirements
Change-Id: Iffde0dbd3a563d8cefcd1cf1bbfd3a323aa0686d
2017-08-18 03:10:06 +00:00
OpenStack Proposal Bot 5d11c8c692 Updated from global requirements
Change-Id: I28c9fba3287060d37bda6bf620e55256f5b964b3
2017-07-15 12:08:54 +00:00
Major Hayden 72afbcfc96
Doc migration fixes
This brings the docs inline with the rest of the OpenStack-Ansible
repositories.

Change-Id: I310fefd254dff8f1f9103819539ea1ac82e464c0
2017-07-03 11:38:33 -05:00
OpenStack Proposal Bot 6ca676baf6 Updated from global requirements
Change-Id: I8da80926c17aa468a4309edf9705bf7e6baabc33
2017-05-17 03:55:45 +00:00
OpenStack Proposal Bot 389cccfdbe Updated from global requirements
Change-Id: Ib96386213b0442abcebcfcfa6924b00c5090e675
2017-02-11 17:49:40 +00:00
OpenStack Proposal Bot a7c9d270d4 Updated from global requirements
Change-Id: I3dbb5303b7fc558022cb00d92bbd9056dadc4c6f
2017-02-10 05:56:48 +00:00
OpenStack Proposal Bot c322abe2f8 Updated from global requirements
Change-Id: I1f1e981b5d7336a26ad720e75f8d714f00228f76
2017-01-12 09:42:41 +00:00
OpenStack Proposal Bot de5f161baf Updated from global requirements
Change-Id: I4929cf65c06faa1dc04ecf0f8881d28dda1eeb05
2016-12-23 03:17:45 +00:00
OpenStack Proposal Bot 711dc28b41 Updated from global requirements
Change-Id: I952b68f4763718f8c7f346e57f8f94a4765f0e8e
2016-12-02 05:11:36 +00:00
OpenStack Proposal Bot 20976bc71e Updated from global requirements
Change-Id: Ie4e9c0504ef14b52ebce2425455902a3f26c13d7
2016-11-03 07:53:37 +00:00
OpenStack Proposal Bot 4913b29439 Updated from global requirements
Change-Id: I5e9b6321b3ac69d3acd37a74074d50100fb93cd9
2016-09-29 22:37:23 +00:00
OpenStack Proposal Bot 79eeaa43fb Updated from global requirements
Change-Id: I6c9ee96343840ffd315d531d13579ef6eeedc749
2016-09-09 22:51:56 +00:00
Major Hayden e57593dfd4 Automate the STIG documentation
With the upcoming changes to rebase onto the RHEL 7 STIG controls,
there needs to be a new solution for documentation that is easier
to manage and filter. This patch automates the generation of the STIG
control documentation in the following way:

* A Sphinx extension runs early in the doc build process that writes
  all of the individual STIG control docs as well as ToC pages.
* ToC pages are now sorted by severity, tag, and implementation status.
* A giant listing of controls is easier to navigate now.
* Docs are generated from metadata in the /doc/metadata directory. New
  documentation only needs to be added there. (Will explain this in
  the developer notes in a subsequent patch.)

Implements: blueprint security-rhel7-stig
Change-Id: I455af1121049f52193e98e2c9cb1ba5d4c292386
2016-09-09 14:43:30 +00:00
OpenStack Proposal Bot 4525cae475 Updated from global requirements
Change-Id: I970cea6643f18b8b2dfce8dc358257fef2499e25
2016-08-26 05:12:57 +00:00
OpenStack Proposal Bot 36e7d54a27 Updated from global requirements
Change-Id: I2b12cc0b6bfa1acdeeb0dfd5641d2b5c311f406a
2016-08-18 05:31:23 +00:00
Jesse Pretorius 06997d1556 Add python packages for SNI support in tests
This adds python packages required for SNI support to ensure that tox
installs the packages into the venv when running tests.

Change-Id: Ida0db3adb221de6a0b899bce8b4fa9338d677875
2016-08-16 13:59:00 +00:00
OpenStack Proposal Bot 983f20a926 Updated from global requirements
Change-Id: I3577e5c0ffbc0755dd50cc53bd31756d5a8307a4
2016-07-21 13:42:33 +00:00
OpenStack Proposal Bot 7eeaf92552 Updated from global requirements
Change-Id: I53f132e4d55446742dccef06d5a38d69df24f404
2016-07-15 11:26:50 +00:00
Jesse Pretorius 65293e8002 Update tox configuration
In order to prepare for implementing requirements management by the
OpenStack requirements management process, and to improve the
reliability and effectiveness of test execution, this patch implements
some changes to the tox configuration:

- The minimum tox version is increased in order to be able to use
  constraints for the python packages.
- The OpenStack upper-constraints are used when preparing the test
  venv for the linters checks.
- Any proxy environment variables set on the test host are passed
  into the venv to enable testing from behind a proxy.
- The environment variables used by Ansible tests are moved into
  a new venv called 'ansible' and this environment is inherited
  by all Ansible-related tests.
- The docs test will clean-up an existing build directory before
  executing the docs build.
- The releasenotes build cannot use upper-constraints at this point,
  so it doesn't.
- The Ansible role download will no longer ignore errors so that any
  problems discovered will result in a failed test.
- The human readable logging callback plugin is implemented for
  functional testing.
- The ansible test requirements are moved into tox.ini to ensure
  compliance for requirements.txt/test-requirements.txt for the
  global-requirements management contract.
- The ~/.ansible directory as a whole is not deleted. Instead only
  the plugins and roles folders are deleted to ensure that zuul's
  Ansible artifacts are left in-place.
- The ansible-lint version is updated to support execution against a
  folder, and the test now executes against the entire role to ensure
  that it captures all applicable files for lint testing.

This is a combined port of the following:
- https://review.openstack.org/323507
- https://review.openstack.org/338193
- https://review.openstack.org/332443
- https://review.openstack.org/338193
- https://review.openstack.org/339493

Change-Id: If42e739002e36669044a9396e233dbd382add4c8
2016-07-08 13:08:25 +00:00
Major Hayden 432a9eb5dd
Switch to openstackdocs theme
This patch updates the docs for the security role to use the
openstackdocs theme and adds doc8 linting. This matches up with
OpenStack-Ansible's docs changes.

Change-Id: Ie8265bdaf8f8b91454766f5beba14645aabf77cc
2016-07-06 15:34:27 -05:00
Jesse Pretorius a95aeaa703 Pin test-requirements to match OpenStack requirements
A new release of flake8 is causing lint faiures. Our requirements
should match OpenStack requirements anyway.

This patch pins to the current master requirements from the
OpenStack requirements repository using global-requirements.

Change-Id: Ie21fbd15f9f563f71ab578cb61e82b2858d3ca73
2016-06-17 12:37:40 +01:00
Jesse Pretorius 8389ec0f60 Add reno scaffolding for release notes management
Change-Id: Ie35b913958857a6f956c3dcbbe6329b7e2277bfe
2016-04-28 23:15:13 +00:00
Kevin Carter 5b5eabd2b8 blacklist Ansible 1.9.6
This version of ansible is broken due to the following upstream
Ansible issue:
  * https://github.com/ansible/ansible-modules-extras/issues/2042

Change-Id: If7b0722e72040c31b111afdb94027de6912a01c7
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-16 08:47:31 -05:00
Matt Thompson d1ddc4c8b6 pin version of ansible-lint we use for testing
Latest release of ansible-lint 2.4.0 has broken
role linter tasks by introducing a dependency on
openstack-ansible-plugins for all linting

While we may choose to adapt the linter tox env
in the future, for now we want to return to previous
linter behavior.

Change-Id: Ic61ab43be0a77d852ef61a2e7551a2b6780a70e7
2016-03-15 15:46:09 +00:00
Jesse Pretorius 52b6e8c02f 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: I4f901b277e8a8eb96c8b74a103fca36b30b40cc5
2016-02-12 12:23:25 +00:00
Jesse Pretorius 1fc0d322db Cap ansible < 2.0 for ansible-lint compatibility
Currently ansible-lint does not support Ansible 2.0, which was
released yesterday afternoon.

This is being worked on in:
https://github.com/willthames/ansible-lint/issues/75

This patch caps Ansible to < 2.0 to allow the gate checks to
succeed. This patch can be reverted once ansible-lint supports
Ansible 2.0 and above.

Change-Id: I4d7da77b0f42e33a4704fb44f1b993c0f1874647
2016-01-13 17:54:54 +00:00
Paul Belanger 4d30ddcee5 Rename dev-requirements.txt to test-requirements.txt
This is a cosmetic change to bring our requirements.txt files in line
with other OpenStack projects.

Change-Id: I3937a7bff76edb2fda98a328f172d6435fa8e95d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-12 19:56:44 -05:00