tests.test_db
DB specific tests
Module Contents
Functions
make sure db is bound etc |
|
|
Test the env loading works without import side effects |
|
Check that the fixture set port and host correctly |
|
Test the db abstraction of persons and roles |
|
Test the db abstraction enrollments |
|
Test the db abstraction enrollments and enrollmentpools |
|
Test list methods |
|
Test list methods |
|
Test the db abstraction for seen tokens |
|
Test the db abstraction for login codes |
|
Test the cert creation with the classmethod (and revocation) |
|
Test the cert creation with the classmethod with CFSSL failure |
|
Test the cert creation with the classmethod but reserved callsign |
|
Test that the PFX file gets done |
|
Test that trying to create enrollment or person with callsign that matches a product CN fails |
Attributes
- test_dbconfig_env(monkeypatch)[source]
Test the env loading works without import side effects
- Parameters:
monkeypatch (pytest.MonkeyPatch)
- Return type:
None
- test_dbconfig_defaults(docker_ip)[source]
Check that the fixture set port and host correctly
- Parameters:
docker_ip (str)
- Return type:
None
- async test_person_crud(ginosession)[source]
Test the db abstraction of persons and roles
- Parameters:
ginosession (None)
- Return type:
None
- async test_enrollments_crud(ginosession)[source]
Test the db abstraction enrollments
- Parameters:
ginosession (None)
- Return type:
None
- async test_enrollmentpools_crud(ginosession)[source]
Test the db abstraction enrollments and enrollmentpools
- Parameters:
ginosession (None)
- Return type:
None
- async test_enrollmentpools_list(ginosession)[source]
Test list methods
- Parameters:
ginosession (None)
- Return type:
None
- async test_enrollments_list(ginosession)[source]
Test list methods
- Parameters:
ginosession (None)
- Return type:
None
- async test_seentokens_crud(ginosession)[source]
Test the db abstraction for seen tokens
- Parameters:
ginosession (None)
- Return type:
None
- async test_logincodes_crud(ginosession)[source]
Test the db abstraction for login codes
- Parameters:
ginosession (None)
- Return type:
None
- async test_person_with_cert(ginosession)[source]
Test the cert creation with the classmethod (and revocation)
- Parameters:
ginosession (None)
- Return type:
None
- async test_person_with_cert_cfsslfail(ginosession, monkeypatch)[source]
Test the cert creation with the classmethod with CFSSL failure
- Parameters:
ginosession (None)
monkeypatch (pytest.MonkeyPatch)
- Return type:
None
- async test_person_with_cert_duplicatename(ginosession)[source]
Test the cert creation with the classmethod but reserved callsign
- Parameters:
ginosession (None)
- Return type:
None