How to use the zuul.connection.BaseConnection function in zuul

To help you get started, we’ve selected a few zuul examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wikimedia / integration-config / tests / test_zuul_scheduler.py View on Github external
'Release 1.31': {
        'branch': 'REL1_31',
        'pipeline-suffix': '1_31',
    },
    'Release 1.34': {
        'branch': 'REL1_34',
        'pipeline-suffix': '1_34',
    },
    'Release 1.35': {
        'branch': 'REL1_35',
        'pipeline-suffix': '1_35',
    },
}


class FakeConnection(BaseConnection):
    """
    Simulate a Zuul connection
    """

    def __init__(self, connection_name, connection_config):
        super(FakeConnection, self).__init__(connection_name,
                                             connection_config)
        self.driver_name = connection_name


class TestZuulScheduler(unittest.TestCase):

    sched = None

    @classmethod
    def setUpClass(cls):