Commit Graph

15 Commits

Author SHA1 Message Date
cheyenneb 65ab20fc37 Support files removed for CONF.scenario.img_dir option
CONF.scenario.img_dir file has been removed along with any other
support files. Exception has been raised when a user passes an
img file that does not exist in the CONF.scenario.img_file.
Exceptions import has been added for lib_exc.

Closes-Bug: #2032948
Change-Id: I2b57dd4928ab3f6858909fc90b7865aac2d93da2
2023-11-01 11:46:12 -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
Roman Popelka 5ac56787cb Remove create_volume & create_volume_type methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* create_volume
	* create_volume_type

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I183a0f8190bf7f336370732d8d08d1bb28ad2835
2022-03-17 10:19:42 +01:00
Douglas Mendizábal 25e16b8a0f Don't use legacy exponent for RSA
As stated in the cryptography.io documentation, "Almost everyone should
use 65537" for the public_exponent in an RSA key. [1]

This patch also uses a larger RSA key length for FIPS compatibility.

[1] https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/#cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key

Change-Id: I9f0c030b172a544821aa42924e4401cd7ccc9956
2021-06-08 15:39:22 -05:00
Martin Kopec 3f35bff1e1 Deprecate scenario.img_dir option
The option is deprecated for more than 4 years already and it will
be removed soon, see the change in Tempest [1]

Starting Tempest 25.0.0 release, CONF.scenario.img_file need
a full path for the image. CONF.scenario.img_dir was deprecated
and will be removed in the next release. Till Tempest 25.0.0,
old behavior is maintained and keep working but starting
Tempest 26.0.0, you need to specify the full path in
CONF.scenario.img_file config option.

This patch does analogically the same change as was done in Tempest,
in order to give users of the plugin some time for removing img_dir.

[1] https://review.opendev.org/#/c/710996

Related-Bug: #1393881
Change-Id: I610d267eab287e3df8dd428621c4d3abace6dd0c
2020-09-15 15:17:27 +00:00
Zuul b8437a2f41 Merge "Add certificate validation scenario tests" 2020-08-25 11:01:01 +00:00
Jackie Truong f36d46b724 Add certificate validation scenario tests
This patch adds certificate validation scenario tests
incorporate cursive's new certificate validation feature.

Change-Id: Ica1d32ca66d6f89692e9cc90e415bf569332f58d
Implements: blueprint nova-validate-certificates
2020-03-13 21:18:57 +00:00
Ghanshyam Mann 48d10b8be0 Remove use of deprecated config options for volume API selection
Tempest has moved the Volume APIs testing to v3 as default and can be run
under v2 API via catalog_type.
- https://review.opendev.org/#/q/topic:volume-default-testing-v3+(status:open+OR+status:merged)

Below config options were deprecated since Rocky and now Tempest is going
to remove those (Needed-By patch):
    * ``CONF.volume-feature-enabled.api_v2``
    * ``CONF.volume-feature-enabled.api_v3``

Change-Id: I600ac88dbed8697cd1efe009fd46195f934f3eb6
Needed-By: https://review.opendev.org/#/c/698754/
2019-12-12 16:53:01 +00:00
Masayuki Igawa 488fd6157e
Remove Manager class
This commit removes Manager class which is unused now.

Change-Id: I49d3790c3f649a3d84e9d31f00b3f15a5dbaa36f
2019-02-04 15:54:33 +09:00
ghanshyam b8bf147bdc Remove volume v1 API service client usage
Volume v1 API has been gone since long and Tempest also
marked their deprecation since Juno
- https://review.openstack.org/#/c/446238/

Now Tempest is removing the deprecated config option and
alias for voluem v1 service client in
- https://review.openstack.org/#/c/573135/

Before the Tempest patch gets merged, we need to remove all usage
of volume v1 things.

Change-Id: I2d715a8a63069da5cfe02fbc0992eccb7ba598a7
Needed-By: https://review.openstack.org/#/c/573135/
2018-06-07 10:58:23 +00:00
Chandan Kumar c9f0b5d46b Added support of volume api_v3 client
* From rocky release projects are consuming the volume featured
  enabled v3 API, Since the earlier code has support
  for v1, v2 and since api_v3 is used in tempest.conf, it will give
  AttributeError: 'Manager' object has no attribute 'volumes_client'.
  The above patch fixes the issue.

* Keep cinder v1 api as tempest plugin is branchless, it would avoid
  breakage if someone is still consuming it.

Closes-Bug: #1775353

Change-Id: Ia9d070a6033a8192112dbaa1704b1de6838051c5
2018-06-06 19:04:22 +05:30
Brianna Poulos ce8eb05267 Address verifier DeprecationWarning
The use of signer and verifier in cryptography has been
deprecated, and causes the following warning:

barbican_tempest_plugin/tests/scenario/barbican_manager.py:139:
DeprecationWarning: signer and verifier have been deprecated.
Please use sign and verify instead.

This patch replaces signer with sign.

Change-Id: Ia6358e2c4e84faa9d692a13b9b3aa1504407301b
2018-02-23 16:52:51 -05:00
dane-fichter 53f4fea68b Add volume encryption scenario tests
This change adds scenario tests for Cinder volume
encryption.

Change-Id: Ibe47a916ab77eeb970a2b201fbf1b8cf2409f4a2
Depends-On: Id9629ecbbc75e19eec81f60daec7b0a085bcdc12
2017-03-29 16:13:40 -04:00
Brianna Poulos 011292a2df Switch to local copy of scenario test base class
This is in response to the mailing list post at:
http://lists.openstack.org/pipermail/openstack-dev/2017-February/112938.html

The tempest.scenario.manager class will be refactored,
so a local copy will be maintained in the
barbican_tempest_plugin repository until that refactor
is complete.

Change-Id: I706e256fe4e224e44532ea0ce2c81495791ec97f
2017-03-15 17:25:52 -04:00
dane-fichter 5af45595bb Add image signing scenario
This change adds the first scenario test to the
Barbican Tempest plugin. This scenatio tests Nova
and Glance's image signature verification
functionality.

Depends-On: Ifdf8b426c21e4b3a51f97cbc3d95eb842eb04515
Change-Id: Id9629ecbbc75e19eec81f60daec7b0a085bcdc12
2017-03-07 11:14:40 -05:00