pulp_smash.tests.pulp3.pulpcore.api_v3.test_auth

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp3.pulpcore.api_v3.test_auth

Tests for Pulp 3’s authentication API.

For more information, see the documentation on Authentication.

class pulp_smash.tests.pulp3.pulpcore.api_v3.test_auth.AuthTestCase(methodName='runTest')

Test Pulp3 Authentication.

classmethod setUpClass()

Create class-wide variables.

test_base_auth_failure()

Perform HTTP basic authentication with invalid credentials.

Assert that a response indicating failure is returned.

test_base_auth_success()

Perform HTTP basic authentication with valid credentials.

Assert that a response indicating success is returned.

test_jwt_failure()

Perform JWT authentication with invalid credentials.

Assert that a response indicating failure is returned.

test_jwt_success()

Perform JWT authentication with valid credentials.

Assert that a response indicating success is returned.

class pulp_smash.tests.pulp3.pulpcore.api_v3.test_auth.JWTResetTestCase(methodName='runTest')

Perform series of tests related to JWT reset.

setUp()

Create a user and several JWT tokens for that user.

Also, verify that the tokens are valid.

test_delete_user()

Delete the user, and verify their tokens are invalid.

test_reset_tokens()

Repeatedly reset the user’s tokens, and verify they’re invalid.

Repeatedly resetting tokens ensures that token resets work even when a user has no tokens.