diff --git a/.zuul.yaml b/.zuul.yaml index 7a09b6c6b4..dcfbfb847f 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -68,6 +68,14 @@ tox_env: upgrade osa_test_repo: openstack/openstack-ansible-os_keystone +- job: + name: keystone-tox-protection + parent: openstack-tox-py37 + vars: + tox_envlist: protection + bindep_profile: test py37 + python_version: 3.7 + # Experimental - job: name: keystone-tox-patch_cover @@ -211,6 +219,7 @@ irrelevant-files: *tempest-irrelevant-files - tempest-ipv6-only: irrelevant-files: *tempest-irrelevant-files + - keystone-tox-protection gate: jobs: # Override tox timeouts @@ -236,6 +245,7 @@ irrelevant-files: *tempest-irrelevant-files - tempest-ipv6-only: irrelevant-files: *tempest-irrelevant-files + - keystone-tox-protection experimental: jobs: - keystone-tox-patch_cover diff --git a/keystone/tests/unit/protection/__init__.py b/keystone/tests/protection/__init__.py similarity index 100% rename from keystone/tests/unit/protection/__init__.py rename to keystone/tests/protection/__init__.py diff --git a/keystone/tests/unit/protection/v3/__init__.py b/keystone/tests/protection/v3/__init__.py similarity index 100% rename from keystone/tests/unit/protection/v3/__init__.py rename to keystone/tests/protection/v3/__init__.py diff --git a/keystone/tests/unit/protection/v3/test_application_credential.py b/keystone/tests/protection/v3/test_application_credential.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_application_credential.py rename to keystone/tests/protection/v3/test_application_credential.py diff --git a/keystone/tests/unit/protection/v3/test_assignment.py b/keystone/tests/protection/v3/test_assignment.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_assignment.py rename to keystone/tests/protection/v3/test_assignment.py diff --git a/keystone/tests/unit/protection/v3/test_credentials.py b/keystone/tests/protection/v3/test_credentials.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_credentials.py rename to keystone/tests/protection/v3/test_credentials.py diff --git a/keystone/tests/unit/protection/v3/test_domains.py b/keystone/tests/protection/v3/test_domains.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_domains.py rename to keystone/tests/protection/v3/test_domains.py diff --git a/keystone/tests/unit/protection/v3/test_endpoint_group.py b/keystone/tests/protection/v3/test_endpoint_group.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_endpoint_group.py rename to keystone/tests/protection/v3/test_endpoint_group.py diff --git a/keystone/tests/unit/protection/v3/test_endpoints.py b/keystone/tests/protection/v3/test_endpoints.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_endpoints.py rename to keystone/tests/protection/v3/test_endpoints.py diff --git a/keystone/tests/unit/protection/v3/test_grants.py b/keystone/tests/protection/v3/test_grants.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_grants.py rename to keystone/tests/protection/v3/test_grants.py diff --git a/keystone/tests/unit/protection/v3/test_groups.py b/keystone/tests/protection/v3/test_groups.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_groups.py rename to keystone/tests/protection/v3/test_groups.py diff --git a/keystone/tests/unit/protection/v3/test_identity_providers.py b/keystone/tests/protection/v3/test_identity_providers.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_identity_providers.py rename to keystone/tests/protection/v3/test_identity_providers.py diff --git a/keystone/tests/unit/protection/v3/test_limits.py b/keystone/tests/protection/v3/test_limits.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_limits.py rename to keystone/tests/protection/v3/test_limits.py diff --git a/keystone/tests/unit/protection/v3/test_mappings.py b/keystone/tests/protection/v3/test_mappings.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_mappings.py rename to keystone/tests/protection/v3/test_mappings.py diff --git a/keystone/tests/unit/protection/v3/test_policy.py b/keystone/tests/protection/v3/test_policy.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_policy.py rename to keystone/tests/protection/v3/test_policy.py diff --git a/keystone/tests/unit/protection/v3/test_policy_association.py b/keystone/tests/protection/v3/test_policy_association.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_policy_association.py rename to keystone/tests/protection/v3/test_policy_association.py diff --git a/keystone/tests/unit/protection/v3/test_projects.py b/keystone/tests/protection/v3/test_projects.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_projects.py rename to keystone/tests/protection/v3/test_projects.py diff --git a/keystone/tests/unit/protection/v3/test_protocols.py b/keystone/tests/protection/v3/test_protocols.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_protocols.py rename to keystone/tests/protection/v3/test_protocols.py diff --git a/keystone/tests/unit/protection/v3/test_regions.py b/keystone/tests/protection/v3/test_regions.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_regions.py rename to keystone/tests/protection/v3/test_regions.py diff --git a/keystone/tests/unit/protection/v3/test_registered_limits.py b/keystone/tests/protection/v3/test_registered_limits.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_registered_limits.py rename to keystone/tests/protection/v3/test_registered_limits.py diff --git a/keystone/tests/unit/protection/v3/test_roles.py b/keystone/tests/protection/v3/test_roles.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_roles.py rename to keystone/tests/protection/v3/test_roles.py diff --git a/keystone/tests/unit/protection/v3/test_service_providers.py b/keystone/tests/protection/v3/test_service_providers.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_service_providers.py rename to keystone/tests/protection/v3/test_service_providers.py diff --git a/keystone/tests/unit/protection/v3/test_services.py b/keystone/tests/protection/v3/test_services.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_services.py rename to keystone/tests/protection/v3/test_services.py diff --git a/keystone/tests/unit/protection/v3/test_system_assignments.py b/keystone/tests/protection/v3/test_system_assignments.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_system_assignments.py rename to keystone/tests/protection/v3/test_system_assignments.py diff --git a/keystone/tests/unit/protection/v3/test_tokens.py b/keystone/tests/protection/v3/test_tokens.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_tokens.py rename to keystone/tests/protection/v3/test_tokens.py diff --git a/keystone/tests/unit/protection/v3/test_trusts.py b/keystone/tests/protection/v3/test_trusts.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_trusts.py rename to keystone/tests/protection/v3/test_trusts.py diff --git a/keystone/tests/unit/protection/v3/test_users.py b/keystone/tests/protection/v3/test_users.py similarity index 100% rename from keystone/tests/unit/protection/v3/test_users.py rename to keystone/tests/protection/v3/test_users.py diff --git a/tox.ini b/tox.ini index 2629aad538..59145f9a93 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 2.5.0 skipsdist = True -envlist = py27,py37,pep8,api-ref,docs,genconfig,genpolicy,releasenotes +envlist = py27,py37,pep8,api-ref,docs,genconfig,genpolicy,releasenotes,protection [testenv] usedevelop = True @@ -196,3 +196,9 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt .[ldap,memcache,mongodb] + +[testenv:protection] +basepython = python3 +commands = + find keystone -type f -name "*.pyc" -delete + stestr run --test-path=./keystone/tests/protection {posargs}