Commit Graph

22 Commits

Author SHA1 Message Date
Ghanshyam Mann b540700061 Retire patrole
Patrole project is not active anymore and its gate is broken.
We waited for couple of cycle to see if there is any interest
in this project and anyone can maintain it. But we did not get any
new maintainers and current QA team does not have bandwidth/interest
to continue maintaining it.

This project was for RBAc testing which is moving towards unit/functional
tests on service side as well as tempest plugins tests.

In QA 2023.2 PTG, we decided to retire this project

- https://etherpad.opendev.org/p/qa-bobcat-ptg

Change-Id: I7721cf06104e5871ec27cdd87d4608dace60a8b7
2023-04-10 22:29:00 -05:00
Ritchie, Frank (fr801x) f7d47d9c44 Update tempest to 30.0.0
This PS updates Tempest to 30.0.0. Due to

55414580c2

some refactoring was required around wait_for_interface_detach.

Additionally, the variables:

min_microversion
max_microversion

needed to be renamed to:

volume_min_microversion
volume_max_microversion

for volume related tests. See:

https://review.opendev.org/c/openstack/tempest/+/813676

Change-Id: Ie2183fdd2812d5d2fdfdc0815bf96e5c47a9f1e8
2022-04-01 16:46:31 -04:00
OpenStack Proposal Bot 55bc499f5e Updated from global requirements
Change-Id: I96b11a82e3e5bd2174e7040a2fe0ecd686ec718d
2018-03-15 07:53:18 +00:00
naseeb 8bd897b7f9 Optimize test_requireemtns.txt and requirements.txt
There are few requirement which are not needed to be part
of test_requirements.txt and requirements.txt

Change-Id: Iaa182b3c2c5dfa12e5e9302527fff9cc695de481
2018-01-18 13:38:29 +05:30
OpenStack Proposal Bot e6a70a5450 Updated from global requirements
Change-Id: I66c591295a8fe3ee01dea7e592fe677cad6ce91a
2018-01-16 04:28:31 +00:00
OpenStack Proposal Bot 3bf15efde8 Updated from global requirements
Change-Id: I1ac96369dec6bc30b3b2561fb551a2c5a4b72ffc
2017-12-07 13:44:40 +00:00
OpenStack Proposal Bot 09a18338ca Updated from global requirements
Change-Id: I37380edbf53876d6088b6ec7f628e6737dbcb399
2017-11-29 09:16:42 +00:00
OpenStack Proposal Bot c269b9f92d Updated from global requirements
Change-Id: I0e5e9eb59d64581133ba73a19500ad65bbad14c6
2017-11-15 11:59:12 +00:00
Felipe Monteiro b18a3f6524 [flake8] Enable extra, optional hacking checks
Update test-requirements.txt to use latest version of:
    * hacking

Enable the following off-by-default checks:
    * [H203] Use assertIs(Not)None to check for None.
    * [H204] Use assert(Not)Equal to check for equality.
    * [H205] Use assert(Greater|Less)(Equal) for comparison.
    * [H210] Require ‘autospec’, ‘spec’, or ‘spec_set’ in
             mock.patch/mock.patch.object calls
    * [H904] Delay string interpolations at logging calls.

Made necessary unit test changes to work with these checks.

Change-Id: I9db3445caa2883563fd7271d6bf0b24800e06c01
2017-09-27 03:31:32 +01:00
Jenkins 6b2fbfecda Merge "Remove urllib3/requests from requirements" 2017-09-18 23:50:19 +00:00
OpenStack Proposal Bot 6836b87a9d Updated from global requirements
Change-Id: I58d93e333f3554335a43d9c03f164b004fc715b9
2017-09-16 23:22:34 +00:00
deepakmourya b601740120 Remove urllib3/requests from requirements
This patch removes urrlib3 and requests from the requirements.txt
file so that the CentOS Ceph gate will pass.

At the moment, yum tries to install python-urllib3 and throws errors
when it finds that urrlib3 files already exist (since they were
installed via pip).

This also breaks our periodic builds which, in turn, makes infra
quite displeased.

Change-Id: I85148daff49360980a58ff7b6a3e135214eb36fd
2017-09-15 05:01:44 +00:00
OpenStack Proposal Bot d889ffd1ad Updated from global requirements
Change-Id: I201711517d7cb171840f30f15c3d4c98555db04a
2017-08-24 05:59:05 +00:00
OpenStack Proposal Bot d55dec5a73 Updated from global requirements
Change-Id: Ib835ceabc06da2beca5c44840fd9c171b7255885
2017-07-14 23:11:03 +00:00
OpenStack Proposal Bot c971b45985 Updated from global requirements
Change-Id: I6db38077d8e5c6fbfa913063f3fead2405116446
2017-07-06 14:03:09 +00:00
Felipe Monteiro 83cb0be451 Add oslo.policy requirement to requirements.txt
This requirement should be added to requirements.txt
as it's used by the Patrole framework.

Change-Id: I1fc49e6d3012861760156da851f255c7ac5bad3f
2017-05-22 15:31:25 +01:00
Felipe Monteiro 0854dedaec Adds initial hacking checks to Patrole
This patch:
  - Adds hacking check to Patrole (executed via tox -e pep8)
  - Corrects a few hacking errors
  - Adds hacking documentation to Patrole

Change-Id: Id43e24060a5290df91c594df6a38ba0cb239bbaf
2017-05-09 17:58:38 +00:00
Felipe Monteiro ae2ebab27c Modify policy parser to combine custom and default policy files.
Currently, the rbac policy parser file tries to:
  1) Read the custom policy file if it exists
  2) Otherwise check if the default policy file exists in code

The problem with this approach is:
  - What if the custom policy file does not specify all policy actions?
    This is problematic when it comes to validating the policy action:
    is it defined or not?
  - This also holds true for default policy files which may not define
    all the policy actions enforced by the service explicitly.

This patch partially fixes this issue by 1) using all the
default policy actions defined in code, if they exist and 2)
overwriting any default policy actions with the custom
policy actions provided by the user in a custom policy file.

The end result is that the Patrole framework uses as many policy actions
as possible for reference, while using as many custom-defined policy
actions as possible. This patch, therefore, makes it more feasible to
throw an exception if a policy action is invalid.

Change-Id: Idb6b8a99170fd32097940d5b23182f5e43956548
Depends-On: I7feb522b2ea5f56e48982169c7ebbb2ec2ef2cb3
2017-03-29 19:07:52 +00:00
Jeremy Liu 479c6031d6 Add missing requirements
oslo.config and tempest are imported in code [1][2], need
to add them to requirements.txt.

[1] https://github.com/openstack/patrole/blob/master/patrole_tempest_plugin/config.py#L16
[2] https://github.com/openstack/patrole/blob/master/patrole_tempest_plugin/plugin.py#L18

Change-Id: Iff07023c9d9ac9a9435cc09f0a1dbc869a89d527
2017-03-23 07:12:35 -07:00
Rajiv Kumar 645dfc9238 Switch to oslo_log
Change-Id: Id9ce71a53f4392ea1bd408681d01b6174d86ae61
2017-01-19 14:41:13 +05:30
DavidPurcell 029d8c3126 Initial functionality framework.
Includes:
rbac_util - Utility for switching between roles for tests.
rbac_auth - Determines if a given role is valid for a given api call.
rbac_rule_validation - Determines if a allowed proper access and denied improper access (403 error)
rbac_role_converter - Converts policy.json files into a list of api's and the roles that can access them.

One example rbac_base in tests/api/rbac_base
One example test in tests/api/images/test_images_rbac.py

New config settings for rbac_flag, rbac_test_role, and rbac_roles

Implements bp: initial-framework
Co-Authored-By: Sangeet Gupta <sg774j@att.com>
Co-Authored-By: Rick Bartra <rb560u@att.com>
Co-Authored-By: Felipe Monteiro <felipe.monteiro@att.com>
Co-Authored-By: Anthony Bellino <ab2434@att.com>
Co-Authored-By: Avishek Dutta <ad620p@att.com>

Change-Id: Ic97b2558ba33ab47ac8174ae37629d36ceb1c9de
2017-01-13 11:37:30 -05:00
DavidPurcell 663aedfe46 Initial Cookiecutter commit
Change-Id: Iceff2531f4f7de21dcbb91ee893a8205b6c85107
2017-01-04 15:11:34 -05:00