Skip to content

Commit 7d009bd

Browse files
authored
Merge pull request #80 from PostHog/alert-acceptance-test-fix
test(alert): align acceptance helpers with current PostHog spec
2 parents 6e79112 + 0fa0535 commit 7d009bd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

testacc/alert_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ resource "posthog_alert" "test" {
404404
subscribed_users = []
405405
threshold_type = "absolute"
406406
threshold_upper = 100
407+
condition_type = "absolute_value"
408+
series_index = 0
407409
408410
depends_on = [posthog_insight.test]
409411
}
@@ -448,6 +450,8 @@ resource "posthog_alert" "test" {
448450
threshold_type = "absolute"
449451
threshold_lower = %d
450452
threshold_upper = %d
453+
condition_type = "absolute_value"
454+
series_index = 0
451455
452456
depends_on = [posthog_insight.test]
453457
}
@@ -467,6 +471,8 @@ resource "posthog_alert" "test" {
467471
enabled = %t
468472
threshold_type = "absolute"
469473
threshold_upper = 100
474+
condition_type = "absolute_value"
475+
series_index = 0
470476
471477
depends_on = [posthog_insight.test]
472478
}
@@ -486,6 +492,7 @@ resource "posthog_alert" "test" {
486492
threshold_type = "absolute"
487493
threshold_upper = 100
488494
condition_type = %q
495+
series_index = 0
489496
490497
depends_on = [posthog_insight.test]
491498
}
@@ -505,6 +512,8 @@ resource "posthog_alert" "test" {
505512
threshold_type = "absolute"
506513
threshold_upper = 100
507514
calculation_interval = %q
515+
condition_type = "absolute_value"
516+
series_index = 0
508517
509518
depends_on = [posthog_insight.test]
510519
}
@@ -524,6 +533,8 @@ resource "posthog_alert" "test" {
524533
threshold_type = "absolute"
525534
threshold_upper = 100
526535
check_ongoing_interval = %t
536+
condition_type = "absolute_value"
537+
series_index = 0
527538
528539
depends_on = [posthog_insight.test]
529540
}

0 commit comments

Comments
 (0)