cdb.tests package¶
Submodules¶
cdb.tests.tests_cdb_api module¶
-
class
cdb.tests.tests_cdb_api.APITestBase¶ Bases:
object-
authenticate_client_using_token(client, token)¶ Authenticates a selected API Client using a related User token
-
create_user(**kwargs)¶ Creates a user with selected permissions
-
-
class
cdb.tests.tests_cdb_api.ListIasConfigurationData(methodName='runTest')¶ Bases:
cdb.tests.tests_cdb_api.APITestBase,django.test.testcases.TestCaseTest suite to test the list request for the ias configuration
-
setUp()¶ Define the test suite setup
-
target_request_from_client(client)¶
-
test_api_can_list_ias_for_an_authenticated_user()¶ Test that the api can retrieve an Ias for an authenticated user without specific permissions
-
test_api_cannot_allow_the_request_for_unauthenticated_user()¶ The request should not be allowed for an unauthenticated user
-
-
class
cdb.tests.tests_cdb_api.RetrieveIasConfigurationData(methodName='runTest')¶ Bases:
cdb.tests.tests_cdb_api.APITestBase,django.test.testcases.TestCaseTest suite to test the get request for the ias configuration
-
setUp()¶ Define the test suite setup
-
target_request_from_client(client)¶
-
test_api_can_get_ias_for_authenticated_user()¶ Test that the api can retrieve an Ias for an authenticated user without specific permissions
-
test_api_cannot_allow_the_request_for_unauthenticated_user()¶ The request should not be allowed for an unauthenticated user
-
cdb.tests.tests_cdb_readers module¶
-
class
cdb.tests.tests_cdb_readers.CdbReaderTestCase(methodName='runTest')¶ Bases:
django.test.testcases.TestCase-
test_read_alarm_iasios()¶ Test if we can read the validated IASIOS that are actual outputs of DASUSs in the CDB
-
test_read_dasu_outputs_no_filter()¶ Test if we can read the iasios that are actually output of DASUs in the CDB when no filters are applied
-
test_read_dasu_outputs_with_filter()¶ Test if we can read the iasios that are actually output of DASUs in the CDB when filters are applied
-
test_read_ias()¶ Test if we can read ths IAS json file from the CDB
-
test_read_iasios_basefile()¶ Test if we can read the IASIOS json file from the CDB
-
test_read_supervisors_dasus()¶ Test if we can read the dasus that are actually deployed by Supervisors in the CDB
-