BarbicanClientManager
(tempest_client_mgr)[source]¶Bases: object
Class for interacting with the barbican service.
This class is an abstraction for interacting with the barbican service. This class currently uses the barbican client code to access barbican due to the following reasons: 1. Octavia users typically load secrets into barbican via the client. 2. The barbican-tempest-plugin is lightly tested (no py3 tests, etc.). 3. barbican-tempest-plugin is not in global requirements.
This led to the decision to not use the service client in the barbican-tempest-plugin.
In the future it may be better to use the barbican-tempest-plugin service client or the openstacksdk.
generate_ca_cert_and_key
()[source]¶Creates a CA cert and key for testing.
Returns: | The cryptography CA cert and CA key objects. |
---|
generate_certificate_revocation_list
(ca_cert, ca_key, cert_to_revoke)[source]¶Create a certificate revocation list with a revoked certificate.
Parameters: |
|
---|---|
Returns: | A signed certificate revocation list. |
generate_client_cert_and_key
(ca_cert, ca_key, client_uuid)[source]¶Creates a client cert and key for testing.
Parameters: |
|
---|---|
Returns: | The cryptography server cert and key objects. |
generate_pkcs12_bundle
(server_cert, server_key)[source]¶Creates a pkcs12 formated bundle.
Parameters: |
|
---|---|
Returns: | A pkcs12 bundle. |
generate_server_cert_and_key
(ca_cert, ca_key, server_uuid)[source]¶Creates a server cert and key for testing.
Parameters: |
|
---|---|
Returns: | The cryptography server cert and key objects. |
skip_if_not_implemented
(f)[source]¶A decorator to raise a skip exception for not implemented features.
This decorator raises a skipException if the method raises a NotImplemented exception. If “skip_if_not_implemented=False” argument was passed to the method, the NotImplemented exception will be raised.
@param skip_if_not_implemented: If True (default), raise skipException.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.