compiler.tests.test_app module¶
Test the compiler application as a whole.
-
class
compiler.tests.test_app.
TestCompilerApp
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
The the app API.
-
test_get_log
(mock_store, mock_compiler)[source]¶ GET the
getCompilationLog
endpoint with valid data.
-
test_get_log_invalid_format
(mock_store, mock_compiler)[source]¶ GET the
getCompilationLog
for unsupported format.
-
test_get_log_nononexistant
(mock_store, mock_compiler)[source]¶ GET the
getCompilationLog
for nonexistant compilation.
-
test_get_log_not_owner
(mock_store, mock_compiler)[source]¶ GET the
getCompilationLog
by someone who is not the owner.
-
test_get_product
(mock_store, mock_compiler)[source]¶ GET the
getCompilationProduct
endpoint with valid data.
-
test_get_product_invalid_format
(mock_store, mock_compiler)[source]¶ GET the
getCompilationProduct
for unsupported format.
-
test_get_product_nononexistant
(mock_store, mock_compiler)[source]¶ GET the
getCompilationProduct
for nonexistant compilation.
-
test_get_product_not_owner
(mock_store, mock_compiler)[source]¶ GET the
getCompilationProduct
by someone not the owner.
-
test_get_status_completed
(mock_store, mock_compiler)[source]¶ GET the
getCompilationStatus
endpoint with valid data.
-
test_get_status_invalid_format
(mock_store, mock_compiler)[source]¶ GET
getCompilationStatus
for unsupported format.
-
test_get_status_nonexistant
(mock_store, mock_compiler)[source]¶ GET
getCompilationStatus
for 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
requestCompilation
for existant product.
-
test_post_request_compile
(mock_fm, mock_store, mock_compiler)[source]¶ POST the
requestCompilation
endpoint with valid data.
-
test_post_task_start_failed
(mock_fm, mock_store, mock_compiler)[source]¶ Could not start compilation.
POST
requestCompilation
for existant product, wrong owner.
-