compiler.tests.test_app module¶
Test the compiler application as a whole.
-
class
compiler.tests.test_app.TestCompilerApp(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseThe the app API.
-
test_get_log(mock_store, mock_compiler)[source]¶ GET the
getCompilationLogendpoint with valid data.
-
test_get_log_invalid_format(mock_store, mock_compiler)[source]¶ GET the
getCompilationLogfor unsupported format.
-
test_get_log_nononexistant(mock_store, mock_compiler)[source]¶ GET the
getCompilationLogfor nonexistant compilation.
-
test_get_log_not_owner(mock_store, mock_compiler)[source]¶ GET the
getCompilationLogby someone who is not the owner.
-
test_get_product(mock_store, mock_compiler)[source]¶ GET the
getCompilationProductendpoint with valid data.
-
test_get_product_invalid_format(mock_store, mock_compiler)[source]¶ GET the
getCompilationProductfor unsupported format.
-
test_get_product_nononexistant(mock_store, mock_compiler)[source]¶ GET the
getCompilationProductfor nonexistant compilation.
-
test_get_product_not_owner(mock_store, mock_compiler)[source]¶ GET the
getCompilationProductby someone not the owner.
-
test_get_status_completed(mock_store, mock_compiler)[source]¶ GET the
getCompilationStatusendpoint with valid data.
-
test_get_status_invalid_format(mock_store, mock_compiler)[source]¶ GET
getCompilationStatusfor unsupported format.
-
test_get_status_nonexistant(mock_store, mock_compiler)[source]¶ GET
getCompilationStatusfor nonexistant task.
-
test_get_status_not_owner(mock_store, mock_compiler)[source]¶ Someone other than the owner requests
getCompilationStatus.
-
test_post_compilation_product_exists(mock_store, mock_compiler)[source]¶ POST
requestCompilationfor existant product.
-
test_post_request_compile(mock_fm, mock_store, mock_compiler)[source]¶ POST the
requestCompilationendpoint with valid data.
-
test_post_task_start_failed(mock_fm, mock_store, mock_compiler)[source]¶ Could not start compilation.
POST
requestCompilationfor existant product, wrong owner.
-