Fixes flake8 and unittest errors

Change-Id: I4398a098da08ed8e086edac86fe8d68a06cf8eda
This commit is contained in:
Claudiu Belu 2017-07-28 04:47:48 -07:00
parent 763348b367
commit 4212a327ee
7 changed files with 15 additions and 5 deletions

View File

@ -24,6 +24,7 @@ hyperv_group = cfg.OptGroup(name='hyperv',
HyperVGroup = [
cfg.IntOpt('hypervisor_version',
default=0,
help="Compute nodes' hypervisor version, used to determine "
"which tests to run. It must have following value: "
"major_version * 1000 + minor_version"

View File

@ -21,9 +21,9 @@ from tempest.lib import exceptions as lib_exc
from oswin_tempest_plugin.clients import wsman
from oswin_tempest_plugin import config
from oswin_tempest_plugin import exceptions
from oswin_tempest_plugin.tests import test_base
from oswin_tempest_plugin.tests._mixins import migrate
from oswin_tempest_plugin.tests._mixins import resize
from oswin_tempest_plugin.tests import test_base
CONF = config.CONF
LOG = logging.getLogger(__name__)

View File

@ -14,9 +14,9 @@
# under the License.
from oswin_tempest_plugin import config
from oswin_tempest_plugin.tests import test_base
from oswin_tempest_plugin.tests._mixins import migrate
from oswin_tempest_plugin.tests._mixins import resize
from oswin_tempest_plugin.tests import test_base
CONF = config.CONF

View File

@ -13,10 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
from oswin_tempest_plugin.tests import test_base
from oswin_tempest_plugin.tests._mixins import migrate
from oswin_tempest_plugin.tests._mixins import optional_feature
from oswin_tempest_plugin.tests._mixins import resize
from oswin_tempest_plugin.tests import test_base
class HyperVvNumaTestCase(test_base.TestBase,

View File

@ -21,6 +21,7 @@ from tempest.common.utils.linux import remote_client
from tempest.common import waiters
from tempest.lib.common.utils import data_utils
from tempest.lib.common.utils import test_utils
from tempest.lib import exceptions
import tempest.test
from oswin_tempest_plugin import config
@ -219,7 +220,7 @@ class TestBase(tempest.test.BaseTestCase):
for ruleset in rulesets:
for r_direction in ['ingress', 'egress']:
ruleset['direction'] = r_direction
sg_rule = self._create_security_group_rule(
self._create_security_group_rule(
secgroup, **ruleset)
def _create_security_group_rule(self, secgroup, **kwargs):

View File

@ -3,4 +3,8 @@
# process, which may cause wedges in the gate later.
pbr>=2.0 # Apache-2.0
oslo.config>=4.0.0,!=4.3.0,!=4.4.0 # Apache-2.0
oslo.log>=3.22.0 # Apache-2.0
tempest>=16.1.0 # Apache-2.0
pywinrm>=0.2.2 # MIT

View File

@ -8,8 +8,12 @@ usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
CLIENT_NAME=oswin-tempest-plugin
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]