# Unless explicitly stated otherwise all files in this repository are licensed under the the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2021 Datadog, Inc.

from utils import context, BaseTestCase, interfaces, irrelevant


class Test_Backend(BaseTestCase):
    """Misc test around agent/backend communication"""

    def test_good_backend(self):
        """Agent reads and use DD_SITE env var"""
        interfaces.agent.assert_use_domain(context.dd_site)


class Test_Library(BaseTestCase):
    """Misc test around library/agent communication"""

    def test_receive_request_trace(self):
        """Basic test to verify that libraries sent traces to the agent"""
        r = self.weblog_get("/")

        interfaces.library.assert_receive_request_root_trace()

# Unless explicitly stated otherwise all files in this repository are licensed under the the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2021 Datadog, Inc.

from utils import context, BaseTestCase, interfaces, irrelevant


class Test_Backend(BaseTestCase):
    """Misc test around agent/backend communication"""

    def test_good_backend(self):
        """Agent reads and use DD_SITE env var"""
        interfaces.agent.assert_use_domain(context.dd_site)


class Test_Library(BaseTestCase):
    """Misc test around library/agent communication"""

    def test_receive_request_trace(self):
        """Basic test to verify that libraries sent traces to the agent"""
        r = self.weblog_get("/")

        interfaces.library.assert_receive_request_root_trace()

# Unless explicitly stated otherwise all files in this repository are licensed under the the Apache License Version 2.0. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2021 Datadog, Inc. Misc test around agent/backend communication Agent reads and use DD_SITE env var Misc test around library/agent communication Basic test to verify that libraries sent traces to the agent