16 Commits

Author SHA1 Message Date
huang.zhiping
5f95355189 Add tox python3 overrides
Change-Id: I898d708ed89cc44acd480811137076354169277b
2019-01-22 02:34:11 +00:00
Zuul
f3ea2eda1e Merge "Fix tox for running py3.6" 2018-12-07 19:19:57 +00:00
Martin Kopec
549cdc5ceb Constraint flake8 version
A month ago a flake8 3.6.0 version was released and it's been causing
pep8 check gate fail since then.
This patch
 * removes flake8 dependency from tox.ini file, because otherwise
   version defined in test-requirements.txt is not taken into account.
 * flake8==2.0 version is too old so the version is bumped, however, it's
   limited for versions < 3.6.0
 * pyflakes version needs to be bumped too otherwise it doesn't work
   with newer flake8 versions

Change-Id: I470d1e8ae69aff87dcc9bf9dfa988370efb2817d
2018-11-20 14:12:09 +00:00
Chuck Short
db2e094dcf Fix tox for running py3.6
Fix unit tests to run with py3.6.

Change-Id: I96d8e28fe22d5344576caf49f6f7631b96e87b0f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-09-01 21:41:55 +00:00
Chandan Kumar
e1744ea1e4 Generate tempest.conf automatically using refstack-client
Usage: $ refstack-client config --use-test-accounts <path to test
         accounts file>

If not accounts.yaml is passed then:
  $ refstack-client config
  It will generate accounts.yaml and tempest.conf in etc folder

* It adds support for the above command
* Added zuul based devstack job to run the same
* let setup_env handles the installation of tempestconf
* updated git url for tempest
* It also generates accounts.yaml if no account file is
  passed
* we can --overrides flag to overrides the tempest.conf
  value.
* volume-feature-enabled.api_v2=True is added as default
  in overrides as it is deprecated in Rocky cycle but needed
  for interop tests.

Depends-On: https://review.openstack.org/589260
Story: 2001696
Task: 19758

Change-Id: I9cabfc52672e7a8a54792ca9d867c62babf12cb7
2018-08-13 19:59:53 +05:30
Luz Cazares
d1bfd90593 Add support for new doc PTI jobs
Implement optional cleanup to support the new PTI jobs
for documentation which won't use tox anymore.

Docs tox environment will still available for developers but
it is no loger used in the gate to construct the documentation.

See http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ib26b711365389c59658f9d7f6cafd5acb736dfce
2017-12-18 15:35:32 -08:00
Chandan Kumar
2619ebac4d Fixed tox.ini to run py35 tests
* Let tox auto handles the setting for LANG variables in order to
  fix py35 tox venv creation and installation.
* Use OS_TEST_PATH in tox variables and re-use it

Change-Id: I534ed66d154b6b05a03a06eb0baa0ff23d851f4e
2017-12-11 14:53:25 +05:30
Chandan Kumar
d159cc379e Switch to stestr for running unit tests
* As stestr is the successor of testr, it's time to switch to
  stestr for running refstack unit tests.

Change-Id: I3b9c0e2b4363dec24bad43bf5cfbeef4ecc7a37c
2017-12-05 17:07:45 +05:30
Luz Cazares
a2d5654879 Fix documentation tree
Fixed autogenerated sphinx documentation main tree
to include all approved specs.

Change-Id: Icb5cc6bf87a75929e9a683ac98ab512c69a945a7
2017-11-20 10:30:21 -08:00
Luz Cazares
c876311111 Add python35 support
To be aligned with community goals
Add python35 support to refstack-client

Change-Id: I42ccc6128fc6a83ddee0e4014cbe2c8793b84012
2017-08-09 18:28:53 -07:00
M V P Nitesh
3db8e64be0 Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.

Change-Id: I29d6247e11f1c9c207e9b89c0ae41f590141d281
2017-06-14 12:41:41 +05:30
Ondřej Nový
d55c1facc9 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I3cb2252fbb3fbb5e80a46bd0fa18eadabba0c3ee
2015-12-11 21:27:49 +01:00
sslypushenko
29bd7040d2 Post test results signed with RSA key
Added feature to upload test results in to Refstack API signed with
your personal RSA key. Just do upload with key '-i PATH_TO_PRIVATE_KEY'.
You can use your general OpenSSH key ~/.ssh/id-rsa or
generate a new one with 'ssh-keygen -b 4096'.

Change-Id: Icce6d7146f0fa9de892d1f4785ef24f17fc9b286
2015-04-13 22:01:03 +03:00
Paul Van Eck
456b885255 Change returncode checking to file checking
Previously, after the run_tempest script, was run, all post-processing
was done only if the returncode was 0. If it was non-zero, an error message
was given. This was an oversight, as the run_tempest script will return a code
of 1 when any test case fails. This leaves the unintended side effect of refstack
not parsing the results or producing the output json when Tempest successfully
runs, but a test case fails.

Checking for the existence of the expected subunit file will at least validate
that the Tempest test was at least started successfully, and didn't fail to run
due to some misconfiguration in the environment.

Change-Id: I541b798db41b713525efeb8dedfb9347be780a3f
2015-01-07 10:54:55 -08:00
sslypushenko
65538f145d Rename refstack-client to refstack_client
This renaming and change of project structure is necessary for adding
the unit tests.

Change-Id: I1893afbb05c86c83312983b12ce601d59a7fb417
2014-09-23 15:17:17 +03:00
David Lenwell
ac37215e45 First Commit 2014-07-10 11:48:59 -07:00