27 Commits

Author SHA1 Message Date
Monty Taylor
b2ca5cad74 Finish up flake8 conversion.
Change-Id: I5034f19d5f9b20ad2b4569455273c730b1efec08
2013-05-01 14:04:07 -04:00
Mitsuhiko Yamazaki
6ffa59c881 Add logging configuration
The tempest log can help developers analyze tests but
there is no option in run_tests.sh to enable logging output now.
This adds a logging configuration file and options in run_test.sh
and enables developers to get the tempest log more easily.

Implements: blueprint add-logging-configuration
Change-Id: Iee68a34f5771f1bff88110d95538a5b43103ced9
2013-04-12 17:34:45 +09:00
Masayuki Igawa
d6809ec9f7 Fix typo for run_tests.sh -S option
This patch fixes a typo of getopt's arguments. If the second 's' option letter
is not 'S', -S option is not recognized.

Fix bug 1161921

Change-Id: I0b5a372e7257b9319b350131303c1a9f51b57eb5
2013-03-30 17:44:13 +09:00
afazekas
4d1bee8d11 Use the same style checking everywhere
Both the run_tests.sh and tox.ini using the same check_source.sh for
style and basic lint testing.

Adding a pyflakes based unused import test.

Removing 2 unused imports from
tempest/tests/network/test_network_basic_ops.py.

Change-Id: I5b4c8b945495751ac68fc64ed5ebf1cf441a5a31
2013-03-26 15:47:03 +01:00
Matthew Treinish
44373328c5 Fix update option for run_tests.sh
Change I7da0226a6621ed7120b00eafd8d0ce75c1c2a67b didn't add
the new options to the get options if statement. The option
wasn't recognized and would just print the script usage. This
commit corrects the behavior.

Change-Id: If5d4496a3003d5f5a7016749679a82960894d506
2013-02-18 11:24:22 -05:00
Matthew Treinish
8f42d3b56e Add an update option to run_tests.sh
This commit adds an update option to run_tests.sh. This option
is used to rerun install_venv.py on an already installed venv.
This will then just update out of date packages with pip.

Change-Id: I7da0226a6621ed7120b00eafd8d0ce75c1c2a67b
2013-02-15 15:20:10 -05:00
Attila Fazekas
a63a999d71 Configurable Tempest config file location
* Ability to pass arbitrary argument to nosetests
* Ability to run the script from any cwd
* Stricter argument validation

Change-Id: I675f30d6faf4ac9cfb39cb43400ae6cb58b68931
2013-02-15 10:33:16 +01:00
Andrea Frittoli
1cfbc4a70e Fixes duplicate "-s" option in run_tests.sh
The "-s" option in run_tests.sh is shared by
"--no-site-packages" and "--smoke".
Proposing "-n" for --no-site-packages.

Fixes: LP bug #1111748
Change-Id: I1784107994a0ddc50aa47608250092429f9a2764
2013-02-03 20:39:26 +00:00
Jenkins
29843cc8db Merge "Add tools/tempest_coverage.py script." 2013-01-08 17:53:35 +00:00
Matthew Treinish
d15705bed5 Add tools/tempest_coverage.py script.
This adds support for testing tempest's coverage on nova.
tools/tempest_coverage.py will enable coverage reporting in
nova to be started and stopped. It also performs coverage report
generation.

When it is enabled from run_tests with '-c' or '--nova_coverage'
a single text report file will be generated per nova service.

Implements: blueprint tempest-coverage-reporting
Change-Id: I00a52fb013c5a7a66a2317dbd5359a22d35bdb29
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
2013-01-07 09:56:03 -05:00
Sean Dague
f237ccb19f Fix T401 and T402 errors
Fix all the one line docstring errors in T401 and T402, now
we no longer ignore any of our own rules in hacking.py

Fix run_tests.sh to pick up the 'stress' directory, which tox
does for pep8. Additional fixes to the stress tests for T4* tests

Change-Id: Ie569a924e8eb355afbbd9b244f77dec34061b5cb
2013-01-06 23:24:03 -05:00
Sean Dague
d18cfe5473 tempest error codes should start with T
Because this was originally based on the nova hacking.py
the error codes were all N*. But now that we are owning it
in tempest they should be T*, as we're diverging.

Change the ignores to follow the errors that we're ignoring.

Change-Id: I7b23325da41a3942ae51ee3d29a49f54c75c57f8
2013-01-06 23:23:50 -05:00
Sean Dague
97449cc66c add hacking.py rule to prevent docstrings
add new rule for hacking.py to catch and prevent docstrings on
test_ functions in the tempest/test directory. Found 2 oddballs
that I missed on the last conversion.

update ./run_tests.sh to not ingore all N4* errors (basically all
our custom rules), 401 and 402 still ignored because we actually
have a lot of errors on both of those.

Change-Id: I894d181433b7dcd1a9f4429f1a463be75018f05e
2013-01-04 15:21:03 -05:00
Matthew Treinish
0cc26b6aed Fix venv for ./run_tests.sh -p
Currently just running pep8 with ./run_test.sh -p is not
using the venv because the wrapper definition was occurring
after tools/hacking.py was run. This moves the pep8 check to
after the venv setup to fix this issue.

Change-Id: Ie9fd2a427d8e8875d0cb0db885ea442b2d29ae73
2013-01-03 18:07:09 -05:00
Sean Dague
14a6015d80 add run_tests.sh option to not capture stdout
debugging tempest failures should be made easier by
changing this run behavior

Change-Id: Idde026632de4167ab847f970350a24c17fe8e7a0
2013-01-02 11:23:01 -05:00
Matthew Treinish
8e937d7023 Fix use of venv in Tempest.
Currently when running Tempest tests with run_tests.sh a venv
isn't being used. This leaves tempest at the mercy of whatever
required package versions are installed on the system.

This patch takes install_venv.py and with_venv.sh from nova and
integrates them into run_tests to ensure that the correct
dependencies versions from pip-requires and test-requires are
being used.

Change-Id: I4bf4a02890a33c4034e4493d1763ed4019fdf46e
2012-12-18 09:51:23 -05:00
Matthew Treinish
8b37289f68 Improve pep8 checks to be similar to those in nova
This adds hacking.py, based on the one in nova, to wrap around
pep8 and enforce more stringent checks on tempest. This adds
the rules that nova is currently enforcing on incoming commits.

The rules that pep8 is ignoring are copied from the pep8 check on
jenkins.

The HACKING file was also updated to indicate the inclusion
of the new rules that are being enforced.

Change-Id: I5c85829ee15d4264d8de2d9f0207d9dd3dfbbff2
2012-12-12 11:49:30 -05:00
Attila Fazekas
5abb253c3c Start making setup.py similar to other OpenStack Projects
* Try /etc/tempest DIR if the config file not found
* Exit immediately if the config file not found
* Remove pika from dependencies
* tempest named starter script (pep8 removed run_tests.sh)

Change-Id: I1f0b1fb061a265c5f8e39627efd26decdc61ef63
2012-12-05 19:51:26 +01:00
Jenkins
f13882a863 Merge "make it possible to run only one test in tempest" 2012-11-19 16:51:37 +00:00
Sean Dague
422af977fe make it possible to run only one test in tempest
we were always adding 'tempest' to the list for tests in
run_tests.sh, which didn't let you use the wrapper for running
a single tempest test. This change should fix that.

Probably could be cleaner, but my bash-fu is weaksause.

Change-Id: I5a3600b14214dd38be505481dad5ab72998df386
2012-11-16 10:09:46 -05:00
Sean Dague
24e0f7f8d3 exclude venv directories from local pep8
make it more straight forward to run local pep8
by excluding any venv directories in your tree

Change-Id: Iecd0cb720a2254ff47c7d8209dd5a607e4d2fa93
2012-11-16 10:07:28 -05:00
David Kranz
1301f8d026 Remove kong. Fixes bug 1052511.
Change-Id: I5e027c9539fd2c594d24447866e79c8caad9aa40
2012-10-22 17:03:47 -04:00
Jay Pipes
051075a596 Addition of base Smoke and Whitebox tests
* Splits out the "manager" class into its own file (at least
  for now to keep the code change size down initially)
* Adds base manager classes for Fuzz and Default clients
* Adds base test case class and a derived base SmokeTest class
* Adds smoke test for basic server operations in compute
* Adds non-smoke test for advanced server operations in compute
* Adds Whitebox base test case class
* New basic db-checking whitebox tests for servers and images

This change builds upon the proposed refactoring to the Tempest Manager
and base test classes as per https://review.openstack.org/#/c/7069

Change-Id: I12125fffb725cad3a4fef3134c83e55437529252
2012-08-03 14:39:05 -04:00
Jay Pipes
f38eaace9c Refactor Tempest to be parallel-test friendly
* Allows a tenant/user to be created by the base test
  class, allowing isolation of the tests. The base
  compute test case class now controls what users
  and tenants get created for the test case
* Moves identity admin stuff into appropriate directory
* Removes _multiprocess_shared_ to force setUpClass to
  run for every test case.
* Adds setup.cfg for use with openstack.nose_plugin
* run_test.sh refactoring to make running smoketests easier

Change-Id: I3ea4c44a8c194d7ae2833b5443df7678924bcd5d
2012-07-02 11:05:21 -04:00
Aaron Lee
78dbb64366 Making run_test.sh python version and directory
agnostic

Refactored some of the shell scripts to handle
being run from another directory, as well as to
not force the use of 2.6

edit: format the comments

Change-Id: Id92b9dc82743598b7c570e431cad423c8a2ee95d
2011-10-18 14:24:26 -05:00
Aaron Lee
2355a4b036 Adding generic run_tests.sh
Moving the kong test runners into the kong dir and
adding a generic run_tests.sh

Change-Id: I939c81938891a428f7c094c8a2ff4909e51f755f
2011-10-14 16:24:34 -05:00
Justin Shepherd
0d9bbd1471 Initial Release 2011-08-26 16:08:57 +02:00