# Path: osprofiler/drivers/jaeger.py
# class Jaeger(base.Driver):
#     def __init__(self, connection_str, project=None, service=None, host=None,
#                  conf=cfg.CONF, **kwargs):
#     def get_name(cls):
#     def notify(self, payload):
#     def get_report(self, base_id):
#     def list_traces(self, fields=None):
#     def list_error_traces(self):
#     def create_span_tags(self, payload):
# 
# Path: osprofiler/tests/test.py
# class TestCase(testcase.TestCase):
# class FunctionalTestCase(TestCase):
#     def setUp(self):


from unittest import mock
from osprofiler.drivers import jaeger
from osprofiler.tests import test

class JaegerTestCase(test.TestCase):

    def setUp(self):
        super(JaegerTestCase, self).setUp()
        self.payload_start = {
            "name": "api-start",
            "base_id": "4e3e0ec6-2938-40b1-8504-09eb1d4b0dee",
            "trace_id": "1c089ea8-28fe-4f3d-8c00-f6daa2bc32f1",
            "parent_id": "e2715537-3d1c-4f0c-b3af-87355dc5fc5b",
            "timestamp": "2018-05-03T04:31:51.781381",
            "info": {
                "host": "test"
            }
        }

        self.payload_stop = {
            "name": "api-stop",
            "base_id": "4e3e0ec6-2938-40b1-8504-09eb1d4b0dee",
            "trace_id": "1c089ea8-28fe-4f3d-8c00-f6daa2bc32f1",
            "parent_id": "e2715537-3d1c-4f0c-b3af-87355dc5fc5b",
            "timestamp": "2018-05-03T04:31:51.781381",
            "info": {
                "host": "test",
                "function": {
                    "result": 1
                }
            }
        }


# Path: osprofiler/drivers/jaeger.py
# class Jaeger(base.Driver):
#     def __init__(self, connection_str, project=None, service=None, host=None,
#                  conf=cfg.CONF, **kwargs):
#     def get_name(cls):
#     def notify(self, payload):
#     def get_report(self, base_id):
#     def list_traces(self, fields=None):
#     def list_error_traces(self):
#     def create_span_tags(self, payload):
# 
# Path: osprofiler/tests/test.py
# class TestCase(testcase.TestCase):
# class FunctionalTestCase(TestCase):
#     def setUp(self):


# Path: osprofiler/tests/unit/drivers/test_jaeger.py
from unittest import mock
from osprofiler.drivers import jaeger
from osprofiler.tests import test


class JaegerTestCase(test.TestCase):

    def setUp(self):
        super(JaegerTestCase, self).setUp()
        self.payload_start = {
            "name": "api-start",
            "base_id": "4e3e0ec6-2938-40b1-8504-09eb1d4b0dee",
            "trace_id": "1c089ea8-28fe-4f3d-8c00-f6daa2bc32f1",
            "parent_id": "e2715537-3d1c-4f0c-b3af-87355dc5fc5b",
            "timestamp": "2018-05-03T04:31:51.781381",
            "info": {
                "host": "test"
            }
        }

        self.payload_stop = {
            "name": "api-stop",
            "base_id": "4e3e0ec6-2938-40b1-8504-09eb1d4b0dee",
            "trace_id": "1c089ea8-28fe-4f3d-8c00-f6daa2bc32f1",
            "parent_id": "e2715537-3d1c-4f0c-b3af-87355dc5fc5b",
            "timestamp": "2018-05-03T04:31:51.781381",
            "info": {
                "host": "test",
                "function": {
                    "result": 1
                }
            }
        }


        self.driver = jaeger.Jaeger("jaeger://127.0.0.1:6831",