oaebu_workflows.irus_oapen_telescope.tests.test_irus_oapen_telescope
Module Contents
Classes
Tests for the Oapen Irus Uk telescope |
- class oaebu_workflows.irus_oapen_telescope.tests.test_irus_oapen_telescope.TestIrusOapenTelescope(*args, **kwargs)[source]
Bases:
observatory.platform.observatory_environment.ObservatoryTestCase
Tests for the Oapen Irus Uk telescope
Constructor which sets up variables used by tests. :param args: arguments. :param kwargs: keyword arguments.
- test_telescope(mock_authorized_session, mock_account_credentials, mock_build)[source]
Test the Oapen Irus Uk telescope end to end.
- test_create_cloud_function(mock_create_function, mock_function_exists, mock_upload, mock_variable_get)[source]
Test the create_cloud_function method of the IrusOapenRelease
- Parameters:
mock_variable_get – Mock Airflow Variable ‘data’
- test_call_cloud_function(mock_function_exists, mock_call_function, mock_conn_get, mock_variable_get)[source]
Test the call_cloud_function method of the IrusOapenRelease
- Parameters:
mock_variable_get – Mock Airflow Variable ‘data’
- test_upload_source_code_to_bucket(mock_create_bucket, mock_upload_to_bucket)[source]
Test getting source code from oapen irus uk release and uploading to storage bucket. Test expected results both when md5 hashes match and when they don’t.