summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDougal Matthews <dougal@redhat.com>2017-11-06 16:25:47 +0000
committerDougal Matthews <dougal@redhat.com>2017-11-08 10:10:19 +0000
commitad05d47dd166e22af71f99a9275e9ae5fd28e855 (patch)
treee725905ddea68bb4f7d51e54825679b4b7f44951
parent5c2886a5ceec4131f9e17abbe40e6462df89f85e (diff)
Fix gating on tripleo-common-tempest-plugin
There are three changes here that need to be rolled into one patch, as they are all needed to fix the gate. - Correct the .gitreview project - Resolve PEP8 Errors; Unused import and extra newlines. - Fix the tox.ini to match the current tests. This can be expanded if/when different types of tests are added. Change-Id: I335a527e41b865add7f306e3b494bf3d97829cb2
Notes
Notes (review): Code-Review+2: Juan Antonio Osorio Robles <jaosorior@redhat.com> Workflow+1: Juan Antonio Osorio Robles <jaosorior@redhat.com> Code-Review+2: Michele Baldessari <michele@acksyn.org> Code-Review+2: Brad P. Crochet <brad@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 08 Nov 2017 12:06:26 +0000 Reviewed-on: https://review.openstack.org/518025 Project: openstack/tripleo-common-tempest-plugin Branch: refs/heads/master
-rw-r--r--.gitreview2
-rw-r--r--tox.ini31
-rw-r--r--tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py3
3 files changed, 3 insertions, 33 deletions
diff --git a/.gitreview b/.gitreview
index 698048f..44590d7 100644
--- a/.gitreview
+++ b/.gitreview
@@ -1,4 +1,4 @@
1[gerrit] 1[gerrit]
2host=review.openstack.org 2host=review.openstack.org
3port=29418 3port=29418
4project=openstack/openstack.git 4project=openstack/tripleo-common-tempest-plugin.git
diff --git a/tox.ini b/tox.ini
index 3c2a3ba..d9bae1d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
1[tox] 1[tox]
2minversion = 2.0 2minversion = 2.0
3envlist = py35,py27,pep8,api,functional 3envlist = py35,py27,pep8
4skipsdist = True 4skipsdist = True
5 5
6[testenv] 6[testenv]
@@ -9,30 +9,7 @@ usedevelop = True
9install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} 9install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
10commands = 10commands =
11 find . -type f -name "*.py[c|o]" -delete 11 find . -type f -name "*.py[c|o]" -delete
12 ostestr --slowest --regex 'tripleo_common_tempest_plugin.api.*' {posargs} 12 ostestr --slowest --regex 'tripleo_common_tempest_plugin.*' {posargs}
13
14whitelist_externals = find
15
16[testenv:api]
17basepython = python3.5
18setenv = VIRTUAL_ENV={envdir}
19 PYTHONHASHSEED=0
20 OS_TEST_PATH=tripleo_common_tempest_plugin/api
21commands =
22 find . -type f -name "*.py[c|o]" -delete
23 ostestr --slowest --regex 'tripleo_common_tempest_plugin.functional.*' {posargs}
24
25[testenv:functional]
26basepython = python3.5
27setenv = VIRTUAL_ENV={envdir}
28 PYTHONHASHSEED=0
29 OS_TEST_PATH=tripleo_common_tempest_plugin/functional
30# By default ostestr will set concurrency to ncpu, to specify something else
31# use the concurrency=<n> option.
32# e.g.: 'tox -efunctional -- --concurrency=4'
33commands =
34 find . -type f -name "*.py[c|o]" -delete
35 ostestr --slowest {posargs}
36 13
37whitelist_externals = find 14whitelist_externals = find
38 15
@@ -47,10 +24,6 @@ commands = {posargs}
47commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 24commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
48 25
49[flake8] 26[flake8]
50# Temporarily disable complaints about docstring for public module/class/method
51# H106 Don’t put vim configuration in source files
52# H203 Use assertIs(Not)None to check for None
53ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D300,D301,D400,D401
54enable-extensions=H106,H203 27enable-extensions=H106,H203
55show-source = true 28show-source = true
56exclude=.venv,.git,.tox,*lib/python*,*egg,tools,build,releasenotes 29exclude=.venv,.git,.tox,*lib/python*,*egg,tools,build,releasenotes
diff --git a/tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py b/tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py
index 8029691..05e81bf 100644
--- a/tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py
+++ b/tripleo_common_tempest_plugin/tests/scenario/workflows/test_access.py
@@ -15,9 +15,6 @@
15from tempest.lib import decorators 15from tempest.lib import decorators
16from tempest import test 16from tempest import test
17 17
18from tripleo_common_tempest_plugin.tests import base
19
20
21 18
22class AccessWorkflowTestCase(test.BaseTestCase): 19class AccessWorkflowTestCase(test.BaseTestCase):
23 20