request.tests.test_authenticationΒΆ

Unit tests for authentication components.

ClassesΒΆ

TestUsernamePasswordAuthentication

Test cases for UsernamePasswordAuthentication.

TestClientCertificateAuthentication

Test cases for ClientCertificateAuthentication.

Module ContentsΒΆ

class request.tests.test_authentication.TestUsernamePasswordAuthentication[source]ΒΆ

Test cases for UsernamePasswordAuthentication.

setup_method()[source]ΒΆ

Set up test fixtures.

test_authenticate_success(est_device_without_onboarding)[source]ΒΆ

Test successful username/password authentication.

test_authenticate_invalid_password(device_instance)[source]ΒΆ

Test authentication with invalid password.

test_authenticate_invalid_username(est_device_without_onboarding)[source]ΒΆ

Test authentication with invalid username.

test_authenticate_missing_credentials()[source]ΒΆ

Test authentication with missing credentials.

test_authenticate_missing_username(est_device_without_onboarding)[source]ΒΆ

Test authentication with missing username.

test_authenticate_missing_password(device_instance)[source]ΒΆ

Test authentication with missing password.

class request.tests.test_authentication.TestClientCertificateAuthentication[source]ΒΆ

Test cases for ClientCertificateAuthentication.

setup_method()[source]ΒΆ

Set up test fixtures.

test_authenticate_success(domain_credential_est_onboarding)[source]ΒΆ

Test successful client certificate authentication.

test_authenticate_credential_not_found()[source]ΒΆ

Test authentication when credential is not found.

test_authenticate_invalid_credential(domain_credential_est_onboarding, rsa_private_key)[source]ΒΆ

Test authentication with invalid credential.

test_authenticate_no_client_certificate()[source]ΒΆ

Test authentication with no client certificate.