Delete test/e2e/main.tf with huggingface_hub
Browse files- test/e2e/main.tf +0 -363
test/e2e/main.tf
DELETED
|
@@ -1,363 +0,0 @@
|
|
| 1 |
-
terraform {
|
| 2 |
-
required_providers {
|
| 3 |
-
checkly = {
|
| 4 |
-
source = "checkly/checkly"
|
| 5 |
-
version = "~> 1.0"
|
| 6 |
-
}
|
| 7 |
-
}
|
| 8 |
-
|
| 9 |
-
cloud {
|
| 10 |
-
workspaces {
|
| 11 |
-
name = "checkly-e2e"
|
| 12 |
-
}
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
variable "checkly_api_key" {
|
| 18 |
-
sensitive = true
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
variable "checkly_account_id" {
|
| 22 |
-
sensitive = true
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
variable "checkly_alert_channel_pagerduty_service_key" {
|
| 26 |
-
sensitive = true
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
variable "checkly_alert_channel_instatus_webhook_url" {
|
| 30 |
-
sensitive = true
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
variable "checkly_alert_channel_instatus_webhook_url_ingestion" {
|
| 34 |
-
sensitive = true
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
provider "checkly" {
|
| 38 |
-
api_key = var.checkly_api_key
|
| 39 |
-
account_id = var.checkly_account_id
|
| 40 |
-
}
|
| 41 |
-
|
| 42 |
-
resource "checkly_check" "plausible-io-api-health" {
|
| 43 |
-
name = "Check plausible.io/api/health"
|
| 44 |
-
type = "API"
|
| 45 |
-
activated = true
|
| 46 |
-
frequency = 0
|
| 47 |
-
frequency_offset = 30
|
| 48 |
-
|
| 49 |
-
group_id = checkly_check_group.reachability.id
|
| 50 |
-
|
| 51 |
-
retry_strategy {
|
| 52 |
-
type = "FIXED"
|
| 53 |
-
max_retries = 2
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
-
alert_channel_subscription {
|
| 57 |
-
channel_id = checkly_alert_channel.instatus.id
|
| 58 |
-
activated = true
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
request {
|
| 62 |
-
url = "https://plausible.io/api/health"
|
| 63 |
-
follow_redirects = false
|
| 64 |
-
skip_ssl = false
|
| 65 |
-
assertion {
|
| 66 |
-
source = "JSON_BODY"
|
| 67 |
-
property = "$.clickhouse"
|
| 68 |
-
comparison = "EQUALS"
|
| 69 |
-
target = "ok"
|
| 70 |
-
}
|
| 71 |
-
assertion {
|
| 72 |
-
source = "JSON_BODY"
|
| 73 |
-
property = "$.postgres"
|
| 74 |
-
comparison = "EQUALS"
|
| 75 |
-
target = "ok"
|
| 76 |
-
}
|
| 77 |
-
assertion {
|
| 78 |
-
source = "JSON_BODY"
|
| 79 |
-
property = "$.sites_cache"
|
| 80 |
-
comparison = "EQUALS"
|
| 81 |
-
target = "ok"
|
| 82 |
-
}
|
| 83 |
-
}
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
resource "checkly_check" "plausible-io-lb-health" {
|
| 87 |
-
name = "Check ingress.lb.plausible.io/api/health"
|
| 88 |
-
type = "API"
|
| 89 |
-
activated = true
|
| 90 |
-
frequency = 0
|
| 91 |
-
frequency_offset = 30
|
| 92 |
-
|
| 93 |
-
group_id = checkly_check_group.reachability.id
|
| 94 |
-
|
| 95 |
-
retry_strategy {
|
| 96 |
-
type = "FIXED"
|
| 97 |
-
max_retries = 2
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
request {
|
| 101 |
-
url = "https://ingress.lb.plausible.io/api/health"
|
| 102 |
-
follow_redirects = false
|
| 103 |
-
skip_ssl = false
|
| 104 |
-
assertion {
|
| 105 |
-
source = "JSON_BODY"
|
| 106 |
-
property = "$.clickhouse"
|
| 107 |
-
comparison = "EQUALS"
|
| 108 |
-
target = "ok"
|
| 109 |
-
}
|
| 110 |
-
assertion {
|
| 111 |
-
source = "JSON_BODY"
|
| 112 |
-
property = "$.postgres"
|
| 113 |
-
comparison = "EQUALS"
|
| 114 |
-
target = "ok"
|
| 115 |
-
}
|
| 116 |
-
assertion {
|
| 117 |
-
source = "JSON_BODY"
|
| 118 |
-
property = "$.sites_cache"
|
| 119 |
-
comparison = "EQUALS"
|
| 120 |
-
target = "ok"
|
| 121 |
-
}
|
| 122 |
-
}
|
| 123 |
-
}
|
| 124 |
-
|
| 125 |
-
resource "checkly_check" "websocket-plausible-io--health" {
|
| 126 |
-
name = "Check websocket.plausible.io/api/health"
|
| 127 |
-
type = "API"
|
| 128 |
-
activated = true
|
| 129 |
-
frequency = 1
|
| 130 |
-
|
| 131 |
-
group_id = checkly_check_group.reachability.id
|
| 132 |
-
|
| 133 |
-
retry_strategy {
|
| 134 |
-
type = "FIXED"
|
| 135 |
-
max_retries = 2
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
request {
|
| 139 |
-
url = "https://websocket.plausible.io/api/health"
|
| 140 |
-
follow_redirects = false
|
| 141 |
-
skip_ssl = false
|
| 142 |
-
assertion {
|
| 143 |
-
source = "JSON_BODY"
|
| 144 |
-
property = "$.clickhouse"
|
| 145 |
-
comparison = "EQUALS"
|
| 146 |
-
target = "ok"
|
| 147 |
-
}
|
| 148 |
-
assertion {
|
| 149 |
-
source = "JSON_BODY"
|
| 150 |
-
property = "$.postgres"
|
| 151 |
-
comparison = "EQUALS"
|
| 152 |
-
target = "ok"
|
| 153 |
-
}
|
| 154 |
-
assertion {
|
| 155 |
-
source = "JSON_BODY"
|
| 156 |
-
property = "$.sites_cache"
|
| 157 |
-
comparison = "EQUALS"
|
| 158 |
-
target = "ok"
|
| 159 |
-
}
|
| 160 |
-
}
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
resource "checkly_check" "plausible-io-ingestion" {
|
| 164 |
-
name = "Check plausible.io/api/event"
|
| 165 |
-
type = "API"
|
| 166 |
-
activated = true
|
| 167 |
-
frequency = 0
|
| 168 |
-
frequency_offset = 30
|
| 169 |
-
|
| 170 |
-
group_id = checkly_check_group.reachability.id
|
| 171 |
-
|
| 172 |
-
retry_strategy {
|
| 173 |
-
type = "FIXED"
|
| 174 |
-
max_retries = 2
|
| 175 |
-
}
|
| 176 |
-
|
| 177 |
-
request {
|
| 178 |
-
url = "https://plausible.io/api/event"
|
| 179 |
-
follow_redirects = false
|
| 180 |
-
skip_ssl = false
|
| 181 |
-
method = "POST"
|
| 182 |
-
headers = {
|
| 183 |
-
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"
|
| 184 |
-
}
|
| 185 |
-
body_type = "JSON"
|
| 186 |
-
body = <<EOT
|
| 187 |
-
{
|
| 188 |
-
"name": "pageview",
|
| 189 |
-
"url": "https://internal--checkly.com/",
|
| 190 |
-
"domain": "internal--checkly.com",
|
| 191 |
-
"width": 1666
|
| 192 |
-
}
|
| 193 |
-
EOT
|
| 194 |
-
|
| 195 |
-
assertion {
|
| 196 |
-
source = "STATUS_CODE"
|
| 197 |
-
comparison = "EQUALS"
|
| 198 |
-
target = 202
|
| 199 |
-
}
|
| 200 |
-
assertion {
|
| 201 |
-
source = "TEXT_BODY"
|
| 202 |
-
comparison = "EQUALS"
|
| 203 |
-
target = "ok"
|
| 204 |
-
}
|
| 205 |
-
assertion {
|
| 206 |
-
source = "HEADERS"
|
| 207 |
-
property = "x-plausible-dropped"
|
| 208 |
-
comparison = "IS_EMPTY"
|
| 209 |
-
}
|
| 210 |
-
}
|
| 211 |
-
|
| 212 |
-
alert_channel_subscription {
|
| 213 |
-
channel_id = checkly_alert_channel.instatus_ingestion.id
|
| 214 |
-
activated = true
|
| 215 |
-
}
|
| 216 |
-
|
| 217 |
-
}
|
| 218 |
-
|
| 219 |
-
resource "checkly_check" "plausible-io-tracker-script" {
|
| 220 |
-
name = "Check plausible.io/js/script.js"
|
| 221 |
-
type = "API"
|
| 222 |
-
activated = true
|
| 223 |
-
frequency = 1
|
| 224 |
-
|
| 225 |
-
group_id = checkly_check_group.reachability.id
|
| 226 |
-
|
| 227 |
-
retry_strategy {
|
| 228 |
-
type = "FIXED"
|
| 229 |
-
max_retries = 2
|
| 230 |
-
}
|
| 231 |
-
|
| 232 |
-
request {
|
| 233 |
-
url = "https://plausible.io/js/script.js"
|
| 234 |
-
follow_redirects = false
|
| 235 |
-
skip_ssl = false
|
| 236 |
-
assertion {
|
| 237 |
-
source = "STATUS_CODE"
|
| 238 |
-
comparison = "EQUALS"
|
| 239 |
-
target = "200"
|
| 240 |
-
}
|
| 241 |
-
assertion {
|
| 242 |
-
source = "TEXT_BODY"
|
| 243 |
-
comparison = "CONTAINS"
|
| 244 |
-
target = "window.plausible"
|
| 245 |
-
}
|
| 246 |
-
}
|
| 247 |
-
}
|
| 248 |
-
|
| 249 |
-
resource "checkly_check" "ingest-plausible-io-ingestion" {
|
| 250 |
-
name = "Check ingest.plausible.io/api/event"
|
| 251 |
-
type = "API"
|
| 252 |
-
activated = true
|
| 253 |
-
frequency = 0
|
| 254 |
-
frequency_offset = 30
|
| 255 |
-
group_id = checkly_check_group.reachability.id
|
| 256 |
-
|
| 257 |
-
retry_strategy {
|
| 258 |
-
type = "FIXED"
|
| 259 |
-
max_retries = 2
|
| 260 |
-
}
|
| 261 |
-
|
| 262 |
-
request {
|
| 263 |
-
url = "https://ingest.plausible.io/api/event"
|
| 264 |
-
follow_redirects = false
|
| 265 |
-
skip_ssl = false
|
| 266 |
-
method = "POST"
|
| 267 |
-
headers = {
|
| 268 |
-
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"
|
| 269 |
-
}
|
| 270 |
-
body_type = "JSON"
|
| 271 |
-
body = <<EOT
|
| 272 |
-
{
|
| 273 |
-
"name": "pageview",
|
| 274 |
-
"url": "https://internal--checkly.com/",
|
| 275 |
-
"domain": "internal--checkly.com",
|
| 276 |
-
"width": 1666
|
| 277 |
-
}
|
| 278 |
-
EOT
|
| 279 |
-
|
| 280 |
-
assertion {
|
| 281 |
-
source = "STATUS_CODE"
|
| 282 |
-
comparison = "EQUALS"
|
| 283 |
-
target = 202
|
| 284 |
-
}
|
| 285 |
-
assertion {
|
| 286 |
-
source = "TEXT_BODY"
|
| 287 |
-
comparison = "EQUALS"
|
| 288 |
-
target = "ok"
|
| 289 |
-
}
|
| 290 |
-
assertion {
|
| 291 |
-
source = "HEADERS"
|
| 292 |
-
property = "x-plausible-dropped"
|
| 293 |
-
comparison = "IS_EMPTY"
|
| 294 |
-
}
|
| 295 |
-
}
|
| 296 |
-
}
|
| 297 |
-
|
| 298 |
-
resource "checkly_check_group" "reachability" {
|
| 299 |
-
name = "Reachability probes - via automation"
|
| 300 |
-
activated = true
|
| 301 |
-
muted = false
|
| 302 |
-
tags = ["terraform"]
|
| 303 |
-
|
| 304 |
-
locations = [
|
| 305 |
-
"us-east-1",
|
| 306 |
-
"us-west-1",
|
| 307 |
-
"eu-central-1",
|
| 308 |
-
"eu-west-2",
|
| 309 |
-
"eu-north-1",
|
| 310 |
-
"eu-south-1",
|
| 311 |
-
"ap-southeast-2"
|
| 312 |
-
]
|
| 313 |
-
concurrency = 3
|
| 314 |
-
use_global_alert_settings = false
|
| 315 |
-
|
| 316 |
-
retry_strategy {
|
| 317 |
-
type = "FIXED"
|
| 318 |
-
max_retries = 2
|
| 319 |
-
}
|
| 320 |
-
|
| 321 |
-
alert_channel_subscription {
|
| 322 |
-
channel_id = checkly_alert_channel.pagerduty.id
|
| 323 |
-
activated = true
|
| 324 |
-
}
|
| 325 |
-
|
| 326 |
-
alert_settings {
|
| 327 |
-
escalation_type = "TIME_BASED"
|
| 328 |
-
|
| 329 |
-
time_based_escalation {
|
| 330 |
-
minutes_failing_threshold = 5
|
| 331 |
-
}
|
| 332 |
-
}
|
| 333 |
-
}
|
| 334 |
-
|
| 335 |
-
resource "checkly_alert_channel" "pagerduty" {
|
| 336 |
-
pagerduty {
|
| 337 |
-
account = "plausible"
|
| 338 |
-
service_key = var.checkly_alert_channel_pagerduty_service_key
|
| 339 |
-
service_name = "Plausible application"
|
| 340 |
-
}
|
| 341 |
-
}
|
| 342 |
-
|
| 343 |
-
resource "checkly_alert_channel" "instatus" {
|
| 344 |
-
webhook {
|
| 345 |
-
name = "Instatus integration"
|
| 346 |
-
method = "POST"
|
| 347 |
-
template = <<EOT
|
| 348 |
-
{"alert": "{{ALERT_TYPE}}"}
|
| 349 |
-
EOT
|
| 350 |
-
url = var.checkly_alert_channel_instatus_webhook_url
|
| 351 |
-
}
|
| 352 |
-
}
|
| 353 |
-
|
| 354 |
-
resource "checkly_alert_channel" "instatus_ingestion" {
|
| 355 |
-
webhook {
|
| 356 |
-
name = "Instatus integration - ingestion"
|
| 357 |
-
method = "POST"
|
| 358 |
-
template = <<EOT
|
| 359 |
-
{"alert": "{{ALERT_TYPE}}"}
|
| 360 |
-
EOT
|
| 361 |
-
url = var.checkly_alert_channel_instatus_webhook_url_ingestion
|
| 362 |
-
}
|
| 363 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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