Tests for the django-e2ee-framework views

Classes:

TestEncryptionKey()

Unit tests for the EncryptionKey class in JavaScript.

TestEncryptionKeyStore()

Unit tests for the EncryptionKey class in JavaScript.

Functions:

test_encryption_decryption_post(e2e_browser, ...)

Test encrypting a message through the service worker.

test_master_key_creation(e2e_browser, test_user)

Test the creation of the master key.

test_master_key_secret_creation(e2e_browser, ...)

Test the creation of another masterkey secret.

test_remote_password_authentication(...)

Test authentication of a new session via other session and password.

test_remote_session_authentication(...)

Test authentication of a new session via other session.

test_session_authentication(e2e_browser, ...)

Test authentication of a new session via password.

class django_e2ee.tests.test_views.TestEncryptionKey

Bases: object

Unit tests for the EncryptionKey class in JavaScript.

Methods:

get_encryption_key_js(driver)

get_existing_encryption_key_js(driver, uuid)

test_encrypt_decrypt(e2e_browser)

Test encryption and decryption of a message.

test_key_generation(e2e_browser)

Test generating an encryption key.

test_key_upload(e2e_browser)

test_key_upload_for_multiple_users(...)

Test the encryption key upload for multiple users.

test_key_upload_for_other_user(...)

get_encryption_key_js(driver: Remote)
get_existing_encryption_key_js(driver: Remote, uuid)
test_encrypt_decrypt(e2e_browser: Remote)

Test encryption and decryption of a message.

test_key_generation(e2e_browser: Remote)

Test generating an encryption key.

test_key_upload(e2e_browser: Remote)
test_key_upload_for_multiple_users(test_user_factory: Callable[[], User], e2e_browser_factory: Callable[[User], Remote])

Test the encryption key upload for multiple users.

test_key_upload_for_other_user(test_user_factory: Callable[[], User], e2e_browser_factory: Callable[[User], Remote])
class django_e2ee.tests.test_views.TestEncryptionKeyStore

Bases: object

Unit tests for the EncryptionKey class in JavaScript.

Methods:

get_encryption_key_store_js(driver)

test_decryption(e2e_browser, test_user)

Test decrypting messages

test_key_creation(e2e_browser)

Test the createKey method of an EncryptionKeyStore

test_key_retrieval(e2e_browser)

Test the getKey method of an EncryptionKeyStore

get_encryption_key_store_js(driver: Remote)
test_decryption(e2e_browser: Remote, test_user: User)

Test decrypting messages

test_key_creation(e2e_browser: Remote)

Test the createKey method of an EncryptionKeyStore

test_key_retrieval(e2e_browser: Remote)

Test the getKey method of an EncryptionKeyStore

django_e2ee.tests.test_views.test_encryption_decryption_post(e2e_browser: Remote, test_user: User, make_request: Callable[[Remote, str, str, Optional[Dict]], Dict])

Test encrypting a message through the service worker.

django_e2ee.tests.test_views.test_master_key_creation(e2e_browser: Remote, test_user: User)

Test the creation of the master key.

django_e2ee.tests.test_views.test_master_key_secret_creation(e2e_browser: Remote, make_request: Callable[[Remote, str, str, Optional[Dict]], Dict], authenticated_browser_factory: Callable[[User], Remote], test_user: User, dummy_password: str)

Test the creation of another masterkey secret.

django_e2ee.tests.test_views.test_remote_password_authentication(e2e_browser: Remote, test_user: User, authenticated_browser_factory: Callable[[User], Remote], make_request: Callable[[Remote, str, str, Optional[Dict]], Dict], dummy_password: str)

Test authentication of a new session via other session and password.

django_e2ee.tests.test_views.test_remote_session_authentication(e2e_browser: Remote, test_user: User, authenticated_browser_factory: Callable[[User], Remote], make_request: Callable[[Remote, str, str, Optional[Dict]], Dict])

Test authentication of a new session via other session.

django_e2ee.tests.test_views.test_session_authentication(e2e_browser: Remote, test_user: User, authenticated_browser_factory: Callable[[User], Remote], make_request: Callable[[Remote, str, str, Optional[Dict]], Dict], dummy_password: str)

Test authentication of a new session via password.