Commit 6a2da7bb authored by nimrod's avatar nimrod
Browse files

Add checks for shore.co.il and www.shore.co.il.

parent e797bfc8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ locals {
    "notify",
    "autoconfig",
    "mta-sta",
    "www",
  ]
  function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"]
}

src/www.py

0 → 100644
+16 −0
Original line number Diff line number Diff line
from utils import check_urls


def handler(event, context):  # pylint: disable=unused-argument
    """Lambda event handler."""
    checks = [
        {"url": "http://shore.co.il/", "codes": [301, 302]},
        {"url": "http://www.shore.co.il/", "codes": [301, 302]},
        {"url": "https:/shore.co.il/", "codes": [301, 302]},
        {"url": "https://www.shore.co.il/blog"},
    ]
    check_urls(checks)


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