def setUpClass(cls, session):
     cls.session = session
     cls.handler = RestApiHandler('endpoint/url')
Esempio n. 2
0
import logging

from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware

import Operator_CR
import Operator_Root
import Operator_SLR
import Operator_DummyUI

logger = logging.getLogger("sequence")
try:
    from restapi_logging_handler import RestApiHandler

    restapihandler = RestApiHandler("http://172.17.0.1:9004/")
    logger.addHandler(restapihandler)

except Exception as e:
    pass
logger.setLevel(logging.INFO)

debug_log = logging.getLogger("debug")
logging.basicConfig()
debug_log.setLevel(logging.DEBUG)

import debugpy
debugpy.listen(('0.0.0.0', 5678))
debug_log.info("wait_for_client on port 5678")
debugpy.wait_for_client()
Esempio n. 3
0
    overholt wsgi module
"""

from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware

import Service
import Service_Root

import logging

logger = logging.getLogger("sequence")
try:
    from restapi_logging_handler import RestApiHandler

    restapihandler = RestApiHandler("http://localhost:9004/")
    logger.addHandler(restapihandler)

except Exception as e:
    pass
logger.setLevel(logging.INFO)

debug_log = logging.getLogger("debug")
logging.basicConfig()
debug_log.setLevel(logging.INFO)
service_app = Service.create_app()
application = DispatcherMiddleware(
    Service_Root.create_app(),
    {
        "/api/1.2/cr":
        service_app,  # TODO We are spawning two service_app with different base path but same end points!