Skip to content
Snippets Groups Projects
Commit 6a2da7bb authored by nimrod's avatar nimrod
Browse files

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

parent e797bfc8
Branches
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ locals { ...@@ -8,6 +8,7 @@ locals {
"notify", "notify",
"autoconfig", "autoconfig",
"mta-sta", "mta-sta",
"www",
] ]
function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"]
} }
......
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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment