diff --git a/test/e2e/main.tf b/test/e2e/main.tf index 45cb20cf0..423e7599d 100644 --- a/test/e2e/main.tf +++ b/test/e2e/main.tf @@ -36,14 +36,18 @@ provider "checkly" { } resource "checkly_check" "plausible-io-api-health" { - name = "Check plausible.io/api/health" - type = "API" - activated = true - frequency = 1 - double_check = true + name = "Check plausible.io/api/health" + type = "API" + activated = true + frequency = 1 group_id = checkly_check_group.reachability.id + retry_strategy { + type = "FIXED" + max_retries = 2 + } + alert_channel_subscription { channel_id = checkly_alert_channel.instatus.id activated = true @@ -75,14 +79,18 @@ resource "checkly_check" "plausible-io-api-health" { } resource "checkly_check" "plausible-io-lb-health" { - name = "Check ingress.lb.plausible.io/api/health" - type = "API" - activated = true - frequency = 1 - double_check = true + name = "Check ingress.lb.plausible.io/api/health" + type = "API" + activated = true + frequency = 1 group_id = checkly_check_group.reachability.id + retry_strategy { + type = "FIXED" + max_retries = 2 + } + request { url = "https://ingress.lb.plausible.io/api/health" follow_redirects = false @@ -109,14 +117,18 @@ resource "checkly_check" "plausible-io-lb-health" { } resource "checkly_check" "plausible-io-custom-domain-server-health" { - name = "Check custom.plausible.io" - type = "API" - activated = true - frequency = 1 - double_check = true + name = "Check custom.plausible.io" + type = "API" + activated = true + frequency = 1 group_id = checkly_check_group.reachability.id + retry_strategy { + type = "FIXED" + max_retries = 2 + } + request { url = "https://custom.plausible.io" follow_redirects = false @@ -130,12 +142,17 @@ resource "checkly_check" "plausible-io-custom-domain-server-health" { } resource "checkly_check" "plausible-io-ingestion" { - name = "Check plausible.io/api/event" - type = "API" - activated = true - frequency = 1 - double_check = true - group_id = checkly_check_group.reachability.id + name = "Check plausible.io/api/event" + type = "API" + activated = true + frequency = 1 + + group_id = checkly_check_group.reachability.id + + retry_strategy { + type = "FIXED" + max_retries = 2 + } request { url = "https://plausible.io/api/event" @@ -174,14 +191,18 @@ EOT } resource "checkly_check" "plausible-io-tracker-script" { - name = "Check plausible.io/js/script.js" - type = "API" - activated = true - frequency = 1 - double_check = true + name = "Check plausible.io/js/script.js" + type = "API" + activated = true + frequency = 1 group_id = checkly_check_group.reachability.id + retry_strategy { + type = "FIXED" + max_retries = 2 + } + request { url = "https://plausible.io/js/script.js" follow_redirects = false @@ -199,6 +220,54 @@ resource "checkly_check" "plausible-io-tracker-script" { } } +resource "checkly_check" "ingest-plausible-io-ingestion" { + name = "Check ingest.plausible.io/api/event" + type = "API" + activated = true + frequency = 1 + group_id = checkly_check_group.reachability.id + + retry_strategy { + type = "FIXED" + max_retries = 2 + } + + request { + url = "https://ingest.plausible.io/api/event" + follow_redirects = false + skip_ssl = false + method = "POST" + headers = { + User-Agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 OPR/71.0.3770.284" + } + body_type = "JSON" + body = <