Commit bcf8db4e authored by nimrod's avatar nimrod
Browse files

Add checks for auth, elasticsearch and kibana.

parent a315bee7
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@ locals {
    "ssh",
    "smtp",
    "imap",
    "auth",
    "elasticsearch",
    "kibana",
  ]
  function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"]
}

src/auth.py

0 → 100644
+12 −0
Original line number Diff line number Diff line
from utils import website_handler

URLS = [
    {"url": "http://auth.shore.co.il/", "codes": [301]},
    {"url": "https://auth.shore.co.il/", "codes": [403]},
]

handler = website_handler(URLS)


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

src/elasticsearch.py

0 → 100644
+12 −0
Original line number Diff line number Diff line
from utils import website_handler

URLS = [
    {"url": "http://elasticsearch.shore.co.il/", "codes": [301]},
    {"url": "https://elasticsearch.shore.co.il/", "codes": [403]},
]

handler = website_handler(URLS)


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

src/kibana.py

0 → 100644
+12 −0
Original line number Diff line number Diff line
from utils import website_handler

URLS = [
    {"url": "http://kibana.shore.co.il/", "codes": [301]},
    {"url": "https://kibana.shore.co.il/", "codes": [302]},
]

handler = website_handler(URLS)


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