-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-factor to add more acceptance tests
- Loading branch information
1 parent
4072584
commit bfc4f92
Showing
4 changed files
with
121 additions
and
34 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
thousandeyes/acceptance_resources/ftp_server/alerts_enabled.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
data "thousandeyes_agent" "test" { | ||
agent_name = "Vancouver, Canada" | ||
} | ||
|
||
resource "thousandeyes_ftp_server" "test" { | ||
password = "test_password" | ||
username = "test_username" | ||
test_name = "Acceptance Test - FTP" | ||
description = "description" | ||
request_type = "Download" | ||
ftp_time_limit = 10 | ||
ftp_target_time = 1000 | ||
interval = 900 | ||
alerts_enabled = true | ||
network_measurements = false | ||
url = "ftp://speedtest.tele2.net/" | ||
|
||
agents { | ||
agent_id = data.thousandeyes_agent.test.agent_id | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
thousandeyes/acceptance_resources/ftp_server/alerts_enabled_multiple_alert_rules.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
data "thousandeyes_agent" "test" { | ||
agent_name = "Vancouver, Canada" | ||
} | ||
|
||
resource "thousandeyes_alert_rule" "alert-rule-ftp-test" { | ||
rule_name = "API Team: (${var.environment}) Alert Slack" | ||
alert_type = "HTTP Server" | ||
expression = "((probDetail != \"\"))" | ||
minimum_sources_pct = 80 | ||
notify_on_clear = true | ||
rounds_violating_out_of = 2 | ||
rounds_violating_required = 2 | ||
rounds_violating_mode = "ANY" | ||
} | ||
|
||
resource "thousandeyes_ftp_server" "test" { | ||
password = "test_password" | ||
username = "test_username" | ||
test_name = "Acceptance Test - FTP" | ||
description = "description" | ||
request_type = "Download" | ||
ftp_time_limit = 10 | ||
ftp_target_time = 1000 | ||
interval = 900 | ||
alerts_enabled = false | ||
network_measurements = false | ||
url = "ftp://speedtest.tele2.net/" | ||
|
||
agents { | ||
agent_id = data.thousandeyes_agent.test.agent_id | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
data "thousandeyes_agent" "test" { | ||
agent_name = "Vancouver, Canada" | ||
} | ||
|
||
resource "thousandeyes_ftp_server" "test" { | ||
password = "test_password" | ||
username = "test_username" | ||
test_name = "Acceptance Test - FTP" | ||
description = "description" | ||
request_type = "Download" | ||
ftp_time_limit = 10 | ||
ftp_target_time = 1000 | ||
interval = 900 | ||
alerts_enabled = false | ||
network_measurements = false | ||
url = "ftp://speedtest.tele2.net/" | ||
|
||
agents { | ||
agent_id = data.thousandeyes_agent.test.agent_id | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters