Bug 2208206 - test_secret_stores.* tests contain several minor issues
Summary: test_secret_stores.* tests contain several minor issues
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-barbican-tests-tempest
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 17.1
Assignee: Lukas Piwowarski
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-18 09:21 UTC by Lukas Piwowarski
Modified: 2023-08-16 01:15 UTC (History)
3 users (show)

Fixed In Version: python-barbican-tests-tempest-1.6.0-1.20230511090959.el9ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 01:15:21 UTC
Target Upstream Version:
Embargoed:
lpiwowar: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 883482 0 None MERGED Fix test_secret_stores tests 2023-05-24 10:53:37 UTC
Red Hat Issue Tracker OSP-25171 0 None None None 2023-05-18 09:22:58 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:15:48 UTC

Description Lukas Piwowarski 2023-05-18 09:21:58 UTC
There are five minor issues with test_secret_stores tests:

1) There is a typo in some test cases. They are calling
   unset_peferred_secret_store instead of unset_p<r>eferred_secret_store

2) Set and unset preferred secret stores API calls in the
   SecretStoresClient expect 200 response status code when in fact they
   should expect 204 instead [1].

3) test_get_preferred_secret_store test expects to get preferred
   secret store when in fact none is set for the project.

4) skip_checks() function did not call super's skip_checks()

5) test_set_unset_preferred_secret_store test expects to get preferred
   secret store for a project when there is no preferred secret store
   set for it.

[1] https://docs.openstack.org/barbican/rocky/api/reference/store_backends.html#post-v1-secret-stores-secret-store-id-preferred

Comment 8 Martin Kopec 2023-06-07 06:46:24 UTC
The Fixed in version package contains the desired change. The package is available in the latest phase2 compose. The test_secret_stores tests were executed successfully on a recent 17.1 deployment using the Fixed in version package.

Comment 16 errata-xmlrpc 2023-08-16 01:15:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:4577


Note You need to log in before you can comment on or make changes to this bug.