From a1c232d61b2642d8d7ef43d3b1657eedc899cf87 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Tue, 27 Nov 2018 17:55:14 +0000 Subject: [PATCH] Constraint flake8 and pyflakes versions Versions of flake8 and pyflakes to be installed are inherited from somewhere, which may be dangerous. Therefore the patch adds their versions explicitly to test-requrirements.txt file. Change-Id: I7c54407f6013c4c87fef4258cf963e393bea45b9 --- config_tempest/tests/base.py | 8 ++++---- test-requirements.txt | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config_tempest/tests/base.py b/config_tempest/tests/base.py index 6e3da0e3..984964bd 100644 --- a/config_tempest/tests/base.py +++ b/config_tempest/tests/base.py @@ -255,13 +255,13 @@ class BaseServiceTest(base.BaseTestCase): FAKE_V3_EXTENSIONS = ( { 'resources': { - URL + 'OS-INHERIT/1.0/rel/domain_user_' - + 'role_inherited_to_projects': "", + URL + 'OS-INHERIT/1.0/rel/domain_user_' + + 'role_inherited_to_projects': "", URL + 'OS-SIMPLE-CERT/1.0/rel/ca_certificate': "", - URL + 'OS-EP-FILTER/1.0/rel/endpoint_group_to_' - + 'project_association': "", + URL + 'OS-EP-FILTER/1.0/rel/endpoint_group_to_' + + 'project_association': "", URL + 'OS-EP-FILTER/1.0/rel/project_endpoint': "", diff --git a/test-requirements.txt b/test-requirements.txt index 0f769a8a..a618eda8 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,7 +3,8 @@ # process, which may cause wedges in the gate later. hacking>=0.12.0,<0.13 # Apache-2.0 - +pyflakes>=0.8,<=2.0.0 # MIT +flake8<3.0.0 # MIT coverage>=4.0 # Apache-2.0 python-subunit>=0.0.18 # Apache-2.0/BSD oslotest>=1.10.0 # Apache-2.0