Add logging to WebUI.
This commit is contained in:
parent
dd216f57bc
commit
4f4f2edae3
@ -0,0 +1,13 @@
|
|||||||
|
import unittest
|
||||||
|
from conductor.app import ConductorWorkflowService
|
||||||
|
import conductor.rabbitmq as rabbitmq
|
||||||
|
from conductor.workflow import Workflow
|
||||||
|
import conductor.xml_code_engine as engine
|
||||||
|
|
||||||
|
class TestMethodsAndClasses(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_init_service_class(self):
|
||||||
|
con = ConductorWorkflowService()
|
||||||
|
|
||||||
|
con.start()
|
||||||
|
con.stop()
|
@ -0,0 +1,11 @@
|
|||||||
|
import unittest
|
||||||
|
from conductor.app import ConductorWorkflowService
|
||||||
|
from conductor.openstack.common import service
|
||||||
|
|
||||||
|
class TestMethodsAndClasses(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_init_service_class(self):
|
||||||
|
launcher = service.ServiceLauncher()
|
||||||
|
con = ConductorWorkflowService()
|
||||||
|
launcher.launch_service(con)
|
||||||
|
|
@ -130,11 +130,15 @@ class UpdateServiceRow(tables.Row):
|
|||||||
link = request.__dict__['META']['HTTP_REFERER']
|
link = request.__dict__['META']['HTTP_REFERER']
|
||||||
datacenter_id = re.search('windc/(\S+)', link).group(0)[6:-1]
|
datacenter_id = re.search('windc/(\S+)', link).group(0)[6:-1]
|
||||||
|
|
||||||
|
LOG.critical(datacenter_id)
|
||||||
|
|
||||||
service = api.services_get(request, datacenter_id, service_id)
|
service = api.services_get(request, datacenter_id, service_id)
|
||||||
if service:
|
if service:
|
||||||
service['operation'] = api. \
|
service['operation'] = api. \
|
||||||
get_status_message_for_service(request, service_id)
|
get_status_message_for_service(request, service_id)
|
||||||
|
|
||||||
|
LOG.critical(service)
|
||||||
|
|
||||||
return service
|
return service
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user