Commit Graph

36 Commits

Author SHA1 Message Date
Zuul 0ee4c298ce Merge "Fix typo in branch name for 2023.2" 2024-03-08 16:18:57 +00:00
Douglas Mendizábal 26928121dd Update roles required for testing
This patch removes the hard-coded 'key-manager:service-admin' role from
the base test class because the role is not available in deployments
with the new Secure RBAC policies enabled.

There is only one test that still requires this role in the API quotas
tests, so we generate a dynamic user there and only use it in this
class.  This test is skipped when SRBAC is enabled.

Change-Id: I6fbfe43f821d9315e01d3bdfd6f5d4edf4e552b7
2024-03-07 10:41:47 -06:00
Tobias Urdin f499f6cc74 Fix typo in branch name for 2023.2
Change-Id: Ifec735cc7222d49993d8191fb65a1b0a910880d9
2024-02-20 21:34:17 +01:00
Zuul 34dd80821f Merge "Update stable branch testing" 2024-02-20 18:03:13 +00:00
Zuul bddfa99747 Merge "Add secure RBAC jobs for stable branches" 2024-02-19 16:49:03 +00:00
Takashi Kajinami c8b6d07de8 Update stable branch testing
stable/yoga and older branches are no longer supported by current
tempest so remove tests for these branches from gate.

Also fix the missing 2023.2 branch job.

Change-Id: I2feca9dba2e42e113277d5bca96188db092d098a
2024-02-17 02:47:15 +09:00
Tobias Urdin 1323ec7b8a Add secure RBAC jobs for stable branches
Change-Id: Ib8b2a71d7d7e5a12316bd45e6a95501620db8fab
2024-01-25 20:42:46 +01:00
Takashi Kajinami 39eb56d9c7 Use consistent naming for enforce_scope option
Tempest and a few other plugins such as manila-tempest-plugin registers
the option to enable scope enforcement tests in the [enforce_scope]
option. This renames the option so that this plugin follows that
standard.

Change-Id: Ibd6962947c64f04ff1948a19c4afe9f26d0b47bb
2024-01-24 12:33:05 +09:00
Lukas Piwowarski 6345b34ae2 Pause testing of multiple secret stores
There is an issue with multiple secret stores which is being tracked in
this launchpad [1]. This issue is blocking patches in
barbican-tempest-plugin. Let's remove the testing for multiple secret
stores until the bug gets resolved.

There was also an update of the secret:delete and secret:get policies
[2]. This patch updates the corresponding SRBAC tests so that we test
the policies correctly.

[1] https://bugs.launchpad.net/barbican/+bug/2043457
[2] https://review.opendev.org/c/openstack/barbican/+/884181

Related-Bug: #2043457
Change-Id: I86335a1cb54b6aa2f74e148416ef6af7c27fff61
2023-12-18 11:26:38 +01:00
Zuul a34bd3b785 Merge "Pin barbican-tempest-plugin for jobs in EM" 2023-09-01 16:36:07 +00:00
Lukáš Piwowarski 638efcc3a0 Pin barbican-tempest-plugin for jobs in EM
Let's pin barbican-tempest-plugin for jobs that run code from branches in extended maintenance.

This change is required because these jobs install older version of tempest that does not contain all functions consumed by master barbicna-tempest-plugin.

Change-Id: Ia4a30d12de1a58b93a06979188e662edeef21ec6
2023-08-17 07:52:28 +00:00
Ghanshyam Mann ca7738bab1 Add stable/2023.1 jobs on master gate
As 2023.1 is released, we should add its job on master
gate to keep branchless tempest plugins compatible
to stable branch.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: I59f29bcbf667f6598b00022eff4088ed324f1610
2023-06-09 05:05:58 +00:00
Zuul a31f9ef3a6 Merge "Modify test_get_effective_quota test" 2023-06-06 09:01:46 +00:00
Lukas Piwowarski 832692c4fb Modify test_get_effective_quota test
The test_get_effective_quotas test uses key-manager:service-admin
legacy role to get the effective quotas. Using a user with only this
role should lead to an ERROR in an SRBAC environment.

This patch changes the test so that it checks whether the ERROR
occurred when the test tried to get quotas in SRBAC environment.

Also, auth.tempest_roles = member was removed from tempest.conf
as it is not necessary and causes a failure of the modified
test and it might cause unwanted problems in the future.

Change-Id: Ib106f5e760d3a5253968e2fe13ec576107a98c74
2023-06-01 10:32:29 +00:00
Lukas Piwowarski d8047c2025 Enable test_secret_stores tests
This patch enables test_secret_stores tests in the SRBAC job. The tests
were previously fixed in this patch [1].

This change builds on the fix. It modifies the configuration of
the SRBAC job so that it is deployed with enabled multiple secret
stores.

[1] https://review.opendev.org/c/openstack/barbican-tempest-plugin/+/883482

Change-Id: I60305a35528fd16ac4e995d11d6d0999a6440e44
2023-05-22 14:40:29 +00:00
Ghanshyam Mann a396ac40c1 Add stable/zed jobs on master gate
As zed is released, we should add its job on master
gate to keep branchless tempest plugins compatible
to stable branch.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: Ia20cec2a500943a7f954c34614102c4d17a01c34
2022-10-19 03:21:42 +00:00
Ghanshyam Mann fb42f0106e Pin stable branch jobs nodeset to Ubuntu Focal (20.04)
In 2023.1 cycle. we are moving the default distro
version of Ubuntu to Jammy (22.04)[1] so we need to pin
the nodeset for stable branch job in master gate so that
they continue run on their supporting distro version which is
Ubuntu Focal since stable/victoria.

[1] https://governance.openstack.org/tc/goals/selected/migrate-ci-jobs-to-ubuntu-jammy.html

Change-Id: I7c9c57d2ca1d3d6536b24f29c89b465059a3cec4
2022-10-15 20:53:18 -05:00
Douglas Mendizábal 0eebe182c8 Add train, ussuri and victoria integration jobs
This patch adds the missing train, ussuri, and victoria jobs to the zuul
config.  This should help fix the gates for those stable banches which
are currently failing because they are attempting to test newer APIs
(e.g. Secret Consumers)

Change-Id: I34753317a8a80656a460c2fc6104fd2c9827f838
2022-10-05 14:58:11 -04:00
Ade Lee 01da5615db Add versioned jobs
With 1.1 coming in zed, we need to version the old jobs to prevent
1.1 tests (secret consumers) being run and failing on old branches.

Change-Id: Iae1dfea83a6584a95fb73488ad0ba988ded371ca
2022-08-25 13:58:44 +02:00
Douglas Mendizábal d0aa2f34d0 Add "member" role to tempest tests
The "member" role is needed by the scenario tests to create secrets when
Secure RBAC is enabled i.e. enable_scope=True

Change-Id: I16ed904eeb27ab7110a7e4e56ef7ea89c8c3c2ab
2022-08-23 17:29:19 -04:00
Ade Lee 519aa80cab Add tests for secret consumers
This patch adds microversion support to the plugin.  It adds two new
configuration values in tempest.conf for selecting which tests to run.
See [1] for more details.

[1] https://docs.openstack.org/tempest/latest/microversion_testing.html

Depends-On: https://review.opendev.org/c/openstack/barbican/+/840712
Change-Id: Iba604f74fb645bec2f03fd4ffb771d8f051dccfe
2022-08-09 16:41:21 +00:00
Zuul 1cf328dc98 Merge "zuul: Declare queue at top level" 2022-07-01 20:31:16 +00:00
Zuul be3992b3f9 Merge "Update 'Maintained' stable branch jobs on master gate" 2022-07-01 20:31:15 +00:00
Takashi Kajinami cb6e982334 zuul: Declare queue at top level
Zuul deprecated declaring shared queues at a pipeline level with
release 4.1.0[1]. This updates the job definition to use the top level
declaration instead.

See [2] for details.

[1] https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-4-1-0-deprecation-notes
[2] http://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I07d9f3758243df89ef4ccd482ae0ee3e49e5f88f
2022-06-13 09:59:05 +09:00
Ghanshyam Mann 8580430fba Update 'Maintained' stable branch jobs on master gate
We have stable/yoga released and stable/ussuri is in
'Extended Maintenance' state. Current 'Maintained'
stable branches are yoga, xena, wallaby, and victoria.

As per tempest stable branch testing policy[1], adding the
newly released stable/yoga job and remove the EM stable/ussuri
and stable/victoria job.

[1] https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: I9df1b691a9d142997a3d3ee5e115187c0923e85d
2022-05-31 21:27:33 +00:00
lpiwowar 11c8cfae0c Enable isolated networks in tempest.conf
There was an issue with s-rbac and tempest when isolated networks
were enabled in tempest.conf.

This is no longer an issue as test that were failing with
create_isolated_networks=true and s-rbac enabled are now
passing successfully.

Change-Id: Iae8eac5dffe3c5d15e38a6acd69f2bad95f3f238
2022-03-28 13:22:56 +00:00
Ghanshyam Mann 2f208f0eac Add stable/xena jobs on master gate
We have stable/xena released so we should add
their job on master gate to keep branchless tempest
plugins compatible to stable branch.

This also removes the stable/train job as that is in EM
state now.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: I7d69623c23e2337dde320bcab81f6a0f5c10b289
2022-01-18 18:48:26 -06:00
Douglas Mendizábal e20bc47982 Enforce scope in RBAC testing
Ensure that the Barbican service is configured to use scoped
tokens when checking RBAC policy.

Depends-On: Id399d2220118efe1033426c658d1834cbff02f94

Change-Id: Id7aa02ea4862242fa34140166d634f30af721c22
2021-09-10 18:41:33 +00:00
Ghanshyam Mann e3cafb2094 Add stable/wallaby jobs on master gate
Stable/wallaby is released so we should add
their job on master gate to keep branchless tempest
plugins compatible to stable branch.

Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: I3e8534fdc91a9e94fa82ce6504f36f3d0b5aed6c
2021-04-29 18:55:33 -05:00
Douglas Mendizábal d013596f3d Add secure-rbac gate
This patch adds a gate to test the new secure-rbac policy.

Currently, Tempest is unable to create system admin credentials
when the isolated networks option is set to true, so we disable
that option for this gate.

This patch also includes fixes needed to get the existing tests
to pass, as well as some skips for scenario tests that require
isolated networks.

We should be able to remove the skips once Tempest is fixed to
work with system admin.

Depends-On: I584f7b67f2f95caa7c4db3d9d9222d0a9d38442d
Change-Id: I0129ab6d15bc42d98a19e3551b8d009f9ad05e10
2021-03-24 17:26:01 -05:00
Ghanshyam Mann 89fe14ec55 [goal] Keep barbican-tempest-plugin stable jobs to bionic
As per victoria cycle testing runtime and community goal
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Tempest based jobs are migrated automatically via devstack
base job start running on Focal but stable jobs testing stable
branch needs to keep running on their supported
distro version which is bionic from train till ussuri.

Also, remove stein support (removed from tempest)
and add a job for victoria.

Change-Id: I3d792925e81172ae8abe75c5ceb2d5a039fc84f7
Story: #2007865
Task: #40184
2021-02-09 11:10:33 +01:00
jacky06 a318f6d77c Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: Ia59a23a36ebb8548a20e894000f7342c73012eac
2021-02-08 16:05:29 -06:00
Luigi Toscano 73a0d09578 zuul: migrate and clean the tempest native jobs
Define here the barbican tempest plugin which rely on
barbican-tempest-plugin, following the common patterns:

- follow the rules for naming (repository name as prefix,
  remove some redundant details);
- define branch-specific jobs from the most basic job
  to catch regressions against older branches;
- remove barbican-simple-crypto-devstack-tempest-py35,
  long gone, from the experimental queue.

Change-Id: I106addbe99b1bd4ed72ab07aba16031067503483
2020-08-11 15:17:37 +02:00
Doug Hellmann 123dd7d416 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I145f449d42c0d9a9102ae5216dde4d75d9c37855
Story: #2002586
Task: #24285
2018-09-04 11:49:53 -04:00
James E. Blair 97c4ec9ffa Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: Idc5de89c7b7504d067a19c35e41d0c3a0fee24c8
2018-01-28 20:47:08 -08:00
Andreas Jaeger da8979b10f Add .zuul.yaml
Add barbican jobs, these are all defined in barbican repository and thus
can be reused here.

Change-Id: Ifdd003c43f506cc837876149147cc5aa0241b9ca
Needed-By: I254d891ec32c7c3dee7e5fd5ced1823d9b2952f8
2017-11-02 10:09:03 +01:00