Commit 24c83966 authored by David Mendez's avatar David Mendez
Browse files

Move job submission controllers and serveces to its own directories

parent 4207f24f
"""
Entry file for the delayed jobs app
"""
import logging
from flask import Flask, Blueprint
from flask_restx import Api
from app.namespaces.admin_auth.admin_auth_controller import API as job_admin_namespace
from app.namespaces.job_status.job_status_controller import API as job_status_namespace
from app.namespaces.job_submission.submit_test_job_controller import API as submit_test_job_namespace
from app.namespaces.job_submission.submit_similarity_controller import API as submit_similarity_search_namespace
from app.namespaces.job_submission.submit_substructure_controller import API as submit_substructure_search_namespace
from app.namespaces.job_submission.submit_connectivity_controller import API as submit_connectivity_search_namespace
from app.namespaces.job_submission.submit_blast_controller import API as submit_blast_search_namespace
from app.namespaces.job_submission.submit_download_controller import API as submit_download_namespace
from app.namespaces.job_statistics.record_search_controller import API as record_search_namespace
from app.namespaces.job_statistics.record_download_controller import API as record_download_namespace
from app.db import DB
import app.app_logging as app_logging
from app.config import RUN_CONFIG
from app.config import RunEnvs
import app.app_logging as app_logging
from app.db import DB
from app.namespaces.admin_auth.admin_auth_controller import API as job_admin_namespace
from app.namespaces.job_statistics.record_download_controller import API as record_download_namespace
from app.namespaces.job_statistics.record_search_controller import API as record_search_namespace
from app.namespaces.job_status.job_status_controller import API as job_status_namespace
from app.namespaces.job_submission.controllers.submit_connectivity_controller import \
API as submit_connectivity_search_namespace
from app.namespaces.job_submission.controllers.submit_blast_controller import API as submit_blast_search_namespace
from app.namespaces.job_submission.controllers.submit_download_controller import API as submit_download_namespace
from app.namespaces.job_submission.controllers.submit_similarity_controller import API as submit_similarity_search_namespace
from app.namespaces.job_submission.controllers.submit_substructure_controller import API as submit_substructure_search_namespace
from app.namespaces.job_submission.controllers.submit_test_job_controller import API as submit_test_job_namespace
def create_app():
......
......@@ -3,9 +3,10 @@ Module that describes and handles the requests concerned with the blast search s
"""
from flask import request
from flask_restx import Namespace, Resource, fields
from app.namespaces.job_submission.services import job_submission_service
from app.namespaces.job_submission.shared_marshalls import BASE_SUBMISSION_RESPONSE
from app.namespaces.models import delayed_job_models
from app.namespaces.job_submission import job_submission_service
API = Namespace('submit/blast', description='Namespace to submit a BLAST job')
......
......@@ -4,9 +4,9 @@ Module that describes and handles the requests concerned with the connectivity s
from flask import request
from flask_restx import Namespace, Resource, fields
from app.namespaces.job_submission.services import job_submission_service
from app.namespaces.job_submission.shared_marshalls import BASE_SUBMISSION_RESPONSE
from app.namespaces.models import delayed_job_models
from app.namespaces.job_submission import job_submission_service
API = Namespace('submit/connectivity', description='Namespace to submit a connectivity job')
......
......@@ -4,9 +4,9 @@ Module that describes and handles the requests concerned with the downloads
from flask import request
from flask_restx import Namespace, Resource, fields
from app.namespaces.job_submission.services import job_submission_service
from app.namespaces.job_submission.shared_marshalls import BASE_SUBMISSION_RESPONSE
from app.namespaces.models import delayed_job_models
from app.namespaces.job_submission import job_submission_service
API = Namespace('submit/download', description='Namespace to submit a download job')
......
......@@ -4,9 +4,9 @@ Module that describes and handles the requests concerned with the similarity sea
from flask import request
from flask_restx import Namespace, Resource, fields
from app.namespaces.job_submission.services import job_submission_service
from app.namespaces.job_submission.shared_marshalls import BASE_SUBMISSION_RESPONSE
from app.namespaces.models import delayed_job_models
from app.namespaces.job_submission import job_submission_service
API = Namespace('submit/similarity', description='Namespace to submit a similarity job')
......
......@@ -4,9 +4,9 @@ Module that describes and handles the requests concerned with the substructure s
from flask import request
from flask_restx import Namespace, Resource, fields
from app.namespaces.job_submission.services import job_submission_service
from app.namespaces.job_submission.shared_marshalls import BASE_SUBMISSION_RESPONSE
from app.namespaces.models import delayed_job_models
from app.namespaces.job_submission import job_submission_service
API = Namespace('submit/substructure', description='Namespace to submit a substructure job')
......
......@@ -4,9 +4,9 @@ Module that describes and handles the requests to submit a test job
from flask import request
from flask_restx import Namespace, Resource, fields
from app.namespaces.job_submission.services import job_submission_service
from app.namespaces.job_submission.shared_marshalls import BASE_SUBMISSION_RESPONSE
from app.namespaces.models import delayed_job_models
from app.namespaces.job_submission import job_submission_service
API = Namespace('submit/test_job', description='Namespace to submit a test job')
......
"""
This module tests jobs submission to the EBI queue
"""
import unittest
import os
import shutil
import unittest
import jwt
import yaml
from app.config import RUN_CONFIG
from app.namespaces.job_submission import job_submission_service
from app.namespaces.models import delayed_job_models
from app import create_app
from app.authorisation import token_generator
from app.config import RUN_CONFIG
from app.namespaces.job_submission.services import job_submission_service
from app.namespaces.models import delayed_job_models
class TestJobSubmitter(unittest.TestCase):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment