Skip to content
gitlab.py 416 B
Newer Older
nimrod's avatar
nimrod committed
from utils import check_urls
nimrod's avatar
nimrod committed


def handler(event, context):  # pylint: disable=unused-argument
    """Lambda event handler."""
    checks = [
        {"url": "http://git.shore.co.il/", "codes": [301, 302]},
        {"url": "https://git.shore.co.il/", "codes": [301, 302]},
nimrod's avatar
nimrod committed
        {"url": "https://git.shore.co.il/explore/"},
nimrod's avatar
nimrod committed
    ]
nimrod's avatar
nimrod committed
    check_urls(checks)
nimrod's avatar
nimrod committed


if __name__ == "__main__":
    handler("event", "context")