19 Commits

Author SHA1 Message Date
gengchc2
de48a822e8 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
    https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: Ic8685a4f595d981f4b60a6f6a0ac66f3a91a08be
2016-12-06 09:19:16 +08:00
Jesse Pretorius
34378571b4 Use upper constraints for all tox targets
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.

Change-Id: If6c0cc075bc495d259b2e344cfa1050f092770b7
2016-10-19 07:43:05 +01:00
Jesse Pretorius
a404529ec0 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I2623678bc73068a64178fafc94db124c8c62ba83
2016-10-05 13:06:55 +01:00
Jesse Pretorius
a8b4441576 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: Ie2cc718173015a681209d73737a4a7b60af7216c
2016-10-04 11:41:47 +01:00
Andy McCrae
729fbca6bf Move to non stand-alone ironic
We want to add virtual bmc testing and a full stack test of Ironic, as a
first step lets set it up with all the integrated components.

Change-Id: If4db7ada81e3ce54a6f28db6a67e7e0b4d679cce
2016-09-29 08:27:03 +00:00
Jesse Pretorius
53491a3f6d 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: Ie01392e33b86b9b61019cc733f9f3db15f36c19d
2016-09-28 08:51:21 +01:00
Travis Truman
5ee8b16437 Ansible 2.1.1 role testing
Change-Id: If01b3672825aae1cab690035b43cf2da92180ead
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-21 10:01:36 -04:00
Jesse Pretorius
8cf25017e4 Compress test execution logs
The volume of logs we collect in CI jobs are extensive. This
patch ensures that the logs collected are compressed to reduce
the space taken in CI systems.

PYTHONUNBUFFERED is also set to ensure that the console log
from the CI jobs is recorded in the exact order of execution.

Change-Id: I00a05dfd4774036822bc2b19f010c00bd50b31f2
Related-Bug: #1620849
2016-09-09 10:34:51 +01:00
Kevin Carter
794974c5a0 Enable log collection after functional testing
This change enables log collection within the gate so that further analysis
on gate tasks can be performed post build. This is very useful when
debugging problems.

Change-Id: I9ddf80f1c8cc22e170bb32c17ecacf79cc99120a
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:36:44 -05:00
Jesse Pretorius
d9e9eed948 Make all linting tests use upper-constraints
As per [1] all linting tests can now use upper-constraints. This patch
removes all instances of the install_command override relating to lint
testing which were needed to negate the use of upper-constraints.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: Ic4e51f4db3933d9b6d814274930cc8580ea3ae00
2016-08-20 16:05:53 +01:00
Jean-Philippe Evrard
bc2da2a2de Include ansible commands for ansible linting
The plugin repo needs to be cloned for ansible-lint to
understand ansible plugins. The commands currently
reside in tox.ini under the ansible section and are not
currently included. This commit fixes that error.

Change-Id: I75e24492d91203d9c07a57658aac917c76564994
2016-08-11 18:09:20 +01:00
Jesse Pretorius
3f96ca867d Ensure that doc linting is included in the linters test
The 'docs' tox target executes the doc8 lint test which may result in
failures when testing documentation builds, but OpenStack-CI does not
execute that tox target.

In order to ensure that we catch all standard documentation syntax
errors and prevent them from merging, this patch includes the docs
target in the 'linters' chain of tests.

Fixes for any failures which result from executing this test are also
included in the patch.

Change-Id: I33eaae97d9e2bc6da6197db67d82e9aa8737e766
2016-07-26 00:39:31 +01:00
Jesse Pretorius
515bed2293 Use plugins repo version of the human_log callback plugin
With the implementation of https://review.openstack.org/321331 the
human_log callback plugin is now part of the plugins repo.

This patch removes the retrofitted version in tox in favor of using
the version from the plugins repo instead.

Change-Id: I26f68c3bc7b9627fccc98451f51cb892923a0866
2016-07-15 14:02:49 +01:00
Jesse Pretorius
46f1e9ed6d Implement doc8 checks for docs
In order to prepare for the move of detailed configuration
content from the install guide to the roles, doc8 checks
are being implemented in the roles to ensure that any new
content submitted is properly checked.

Change-Id: I074de434b56abbdfe4202cfb8e55c296480a348a
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:56:06 +01:00
Jesse Pretorius
ff280f7957 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: I6ae5a5e1beab62992dc7cf35fa85057a2c648851
2016-07-08 13:35:37 +01:00
Jesse Pretorius
f5f4621db2 Add reno scaffolding for release notes management
Change-Id: Idd59b182fcc81b79e5ccd6593351f773fbbd440a
2016-04-09 18:19:48 +00:00
Jesse Pretorius
b5d7b7986c Implement initial test inventory/plays
This patch implements an initial set of inventory and playbooks
which results in the successful convergence of a standalone
build of Ironic.

It also adds the rootwrap filters, implement config_template
for all the conf files appropriately and ensures that the sudoers
is implemented in the right order of execution.

All content is based from the head of stable/mitaka on
24 Mar 2016.

Change-Id: I9182951c394a8c52826480aba7bc7e4d437988c5
2016-03-24 23:58:05 +00:00
Michael Davies
f8eb0aebfe Ironic: Fix docs & linting tests
Unfortunately the first commit of os_ironic had broken tests. This patch
corrects the test configurations to ensure that the docs and lint tests
work.

As a temporary measure, functional testing is left as a place holder
to allow other patches to be worked on for this role while the functional
testing is being put together.

Change-Id: I38278155232a4e4d6ef259b79bd515fae2bc837b
Signed-off-by: Michael Davies <michael@the-davies.net>
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2016-02-24 02:25:52 +00:00
Jesse Pretorius
a200b5b3b3 Add required base test configs
This patch adds some extra configurations required in order for
tests on OpenStack-CI to work.

It also adds some basic changes to document content.
2016-01-05 13:28:19 +00:00