pulp_2_tests.tests.platform.api_v2.utils¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.platform.api_v2.utils
Utility functions for Platform tests.
-
pulp_2_tests.tests.platform.api_v2.utils.
make_client_use_cert_auth
(client, cert)¶ Make an API client use certificate authentication.
Mutate the given
client
by doing the following:- Delete
'auth'
from the client’srequest_kwargs
.'auth'
is typically a(username, password)
tuple. - Insert the given
cert
into the client’srequest_kwargs
.
Parameters: - client – An API client.
- cert – Path to the Client Certificate file that is used for authenticating the client
Returns: Nothing. The client is mutated in place.
- Delete