astro.test.database package

Submodules

astro.test.database.DBOracle_test module

astro.test.database.DBSelect_test module

class astro.test.database.DBSelect_test.test_DBSelect_with_oracle(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_current_mydb_only()
test_max()
test_min()
test_order_by()
test_order_by_desc()
test_privileges_only()
test_project_favourite()
test_project_only()
test_public_data_only()
test_public_project_only()
test_select_all()
test_user_only()
test_vo_only()

astro.test.database.DataObject_test module

Tests for the DataObject Class

astro.test.database.Oracle_dependency_test module

Check that all the settings for the Oracle database are correct.

astro.test.database.Oracle_dependency_test.find_tablespace(tablespacename)
astro.test.database.Oracle_dependency_test.get_global_name()
astro.test.database.Oracle_dependency_test.get_parameter(parameter)
class astro.test.database.Oracle_dependency_test.test_Oracle_parameters(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_compatible()
test_database_name()
test_db_block_size()
test_dispatchers()
test_global_name()
test_job_queue_processes()
test_log_archive_dest_1()
test_log_archive_dest_state_1()
test_parallel_max_servers()
test_processes()
test_remote_archive_enable()
test_resource_limit()
test_service_names()
test_tablespace_AWINDX_exists()
test_tablespace_AWLISTS_exists()
test_tablespace_TEMP_exists()
test_tablespace_UNDOTBS1_exists()
test_tablespace_USERS_exists()
test_undo_retention()

astro.test.database.aw_context_test module

Check that the Context package functions correctly.

class astro.test.database.aw_context_test.test_aw_context(methodName='runTest')

Bases: unittest.case.TestCase

db_name = 'db.astro.rug.astro-wise.org'
package = 'awsecurity'
setUp()
skip = False
tearDown()
test_linked_inline_list_objects()

test publishing an inline linked list

test_linked_objects()

test the creation, publishing and deletion of linked objects

test_mydb()

test the creation, publishing and deletion of objects across projects in mydb

test_set_privileges()

test setting privileges

test_set_project()

test setting a project

test_single_object()

test the creation, publishing, updating of a single object

verbose = False

astro.test.database.aw_context_testMySQL module

Check that the Context package functions correctly.

class astro.test.database.aw_context_testMySQL.test_aw_contest(methodName='runTest')

Bases: unittest.case.TestCase

db_name = 'db.astro.rug.astro-wise.org'
package = 'awsecurity'
setUp()
skip = False
tearDown()
test_linked_objects()

test the creation, publishing and deletion of linked objects

test_mydb()

test the creation, publishing and deletion of objects across projects in mydb

test_set_privileges()

test setting privileges

test_set_project()

test setting a project

test_single_object()

test the creation, publishing, updating of a single object

verbose = False

astro.test.database.aw_derivedclass_test module

Check whether derived persistent classes that share the same table as their super class can be queried. See http://cvs.astro-wise.org/cvsroot/awe/common/database/DBOracle.py?r1=1.146&r2=1.147

class astro.test.database.aw_derivedclass_test.test_aw_derivedclass(methodName='runTest')

Bases: unittest.case.TestCase

test_derivedclass()

Check whether derived persistent classes that share the same table as their super class can be queried.

test_derivedclass_astro()

An explicit example using astro classes.

astro.test.database.aw_filebased_test module

Check whether awe has basic functionality without a database.

class astro.test.database.aw_filebased_test.test_aw_filebased(methodName='runTest')

Bases: unittest.case.TestCase

test_filebased_startup()

Import all default packages; this should not raise an error.

astro.test.database.aw_security_test module

Check that the Security package functions correctly.

class astro.test.database.aw_security_test.test_aw_security(methodName='runTest')

Bases: unittest.case.TestCase

package = 'awsecurity'
setUp()
skip = False
tearDown()
test_select_predicate()

test the select_predicate method

test_set_privileges()

test the set_privileges method

test_set_project()

test the set_project method

test_update()

test the update_X methods these must all fail, we should not have permission to change the attributes

test_update_allowed()

test the update_allowed method

verbose = True

astro.test.database.aw_util_test module

Check that the AW_UTIL package functions correctly.

class astro.test.database.aw_util_test.test_aw_util(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_lookup()

Module contents