Commit Graph

16 Commits

Author SHA1 Message Date
Douglas Mendizábal df30b93583 Fix barbican_tempest option group
This patch fixes a bug with the barbican_tempest option group that was
breaking tempest init by returning the wrong object.

Change-Id: Ia62c43fc67114c89be5f481dab2cb11df6ee82b0
2024-02-19 14:53:58 -05:00
Takashi Kajinami 8f696b3219 Fix image_signature_verification group not register properly
Change-Id: I32d4a5864c2cf9ec364167c6f7dada21a1a6bd46
2024-02-19 19:45:41 +00: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
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
Douglas Mendizábal 63b174e89b Add secure-rbac tests for TransportKeys API
This patch adds basic RBAC tests for the Transport Keys API for
the reader, admin, and member personas with project scope.

Some tests will need additional work because they require transport
keys to be present, which can only be done by a system-scope admin

Change-Id: I269618fd760cffd992ca450bb9f13b9788b50b54
2021-04-13 06:54:48 -05:00
Douglas Mendizábal e654464aa5 Add secure-rbac tests for SecretStores API
This patch adds basic RBAC test for the Secret Stores API for
the reader, member and admin personas with project scope.

The tests are skipped by a config option, as they require
the multiple-backends feature to be enabled in barbican.

The devstack instace we're using for gate tests does not have
this enabled, so we default to False for now.

Change-Id: Ibca9d44fb3d0f4fd9945a7e6c636e0fbf6beb42e
2021-04-01 17:03:55 -05:00
Ade Lee c80b00af93 Initial patch to add barbican rbac tests
This adds initial RBAC tests for secrets

Change-Id: Ib79eed6886839d1b7848c991bd64e82595c6c32e
2021-03-12 13:03:24 -05:00
Colleen Murphy 62ec85c79f Add option to toggle validation of signed image
Without this patch, if the barbican tempest plugin is installed in an
environment running with `[glance]/verify_glance_signatures] set to
false in nova.conf, which is the default value, the test will fail.
Enabling glance signature verification unconditionally in order to
support this test is not realistic, as it then prevents users from
booting from unsigned images which may not always be desired. This patch
adds a configuration option to allow for disabling the
`test_signed_image_upload_boot_failure` test, so that we can still run
the majority of the plugin tests for a standard environment with default
nova configuration. The new option defaults to `True`, meaning assume
that nova's configuration has been overrridden to enforce image
verification, which allows the barbican CI to run as normal with no
configuration changes, but it allows operators to explicitly disable the
test as needed.

Change-Id: Ibb5c06ce2773e0ee13bda97717e8e18e77e0be7c
2019-04-03 09:36:20 -07:00
Jackie Truong ab903f340b Add ephemeral disk encryption scenario test
Adds ephemeral-disk-encryption group to Barbican Tempest configuration
options.

Enables ephemeral disk encryption for Barbican Tempest tests by updating
pre_test_hook.sh, which is run at the start of relevant gate tests.

Adds an ephemeral disk encryption scenario test to verify the
functionality of encrypted ephemeral storage. The test creates an image,
boots an instance from the created image, and writes to a new file in
the instance. Improper calls to encrypt the LVM ephemeral disk that is
being written to will be caught with this test.

Change-Id: I5f194f3c2a91263d4d34204db5cd5845197169bb
2017-07-20 13:38:46 +00:00
Peter Hamilton 2adeed60e5 Add a QuotaClient and quota API tests
This change adds a QuotaClient for testing the Barbican quota API.
It adds a quota test suite and integrates the QuotaClient with the
plugin testing infrastructure.

Change-Id: I3249fb879f519da63129e0ec5117377a21094974
Depends-On: I813648476a3a7b0b0e416a524d4629dffe36c92e
Implements: bp tempest-plugin
2017-02-03 15:00:20 -05:00
Peter Hamilton f4166be204 Add an OrderClient and order API tests
This change adds an OrderClient for testing the Barbican order API.
It adds an order test suite and integrates the OrderClient with the
plugin testing infrastructure.

Change-Id: I813648476a3a7b0b0e416a524d4629dffe36c92e
Depends-On: I844d1a97ffb82aa67a4ef3b89bd82c90aa221cbb
Implements: bp tempest-plugin
2017-02-01 12:10:42 -05:00
dane-fichter 2aff5079e3 Added Secret Metadata client and unit tests
This change adds a REST client and corresponding
unit tests for Barbican's Metadata API resource.

Change-Id: Icd2c6ae1f476b57e4108faada0bda5f1aebc640b
2017-01-24 19:33:45 -08:00
Peter Hamilton ee38917832 Add a ConsumerClient and consumer API tests
This change adds a ConsumerClient for testing the Barbican
consumer API. It adds a consumer test suite and integrates
the ConsumerClient with the plugin testing infrastructure.

Change-Id: I844d1a97ffb82aa67a4ef3b89bd82c90aa221cbb
Depends-On: I930455c6ae1e1127706480f24c0ea46f5cc81e85
Implements: bp tempest-plugin
2017-01-17 12:13:37 -05:00
Peter Hamilton 7be3f7e13c Add a ContainerClient and container API tests
This change adds a ContainerClient for testing the
Barbican container API. It adds a container test suite
and integrates the ContainerClient with the plugin
testing infrastructure.

Change-Id: I930455c6ae1e1127706480f24c0ea46f5cc81e85
Depends-On: I27f15375c46faa48cd56c8d52ecfd585fb325239
Implements: bp tempest-plugin
2017-01-12 10:57:11 -05:00
Marc Koderer c832c613fa Register client and add first test
Add first API test and register the client with
the new tempest.lib client interface.

Change-Id: I27f15375c46faa48cd56c8d52ecfd585fb325239
Implements: bp tempest-plugin
2016-12-11 19:26:27 -08:00
Marc Koderer 3529ea7a43 Add initial plugin structure
Creates initial module structure and a dummy test.

Change-Id: I7a861dcc800cf3a49da2e317e4780aa5c5027733
Implements: bp tempest-plugin
2016-12-02 14:50:16 +01:00