Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove Honeycomb acceptance tests #403

Merged
merged 4 commits into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions nobl9/resource_slo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func TestAcc_Nobl9SLO(t *testing.T) {
{"test-google-cloud-monitoring", testGoogleCloudMonitoringPromQLSLO},
{"test-grafanaloki", testGrafanaLokiSLO},
{"test-graphite", testGraphiteSLO},
{"test-honeycomb", testHoneycombSLO},
{"test-influxdb", testInfluxDBSLO},
{"test-instana-infra", testInstanaInfrastructureSLO},
{"test-instana-app", testInstanaApplicationSLO},
Expand Down Expand Up @@ -1516,65 +1515,6 @@ resource "nobl9_slo" ":name" {
return config
}

func testHoneycombSLO(name string) string {
var serviceName = name + "-tf-service"
var agentName = name + "-tf-agent"
config := testService(serviceName) +
testHoneycombAgent(agentName) + `
resource "nobl9_slo" ":name" {
name = ":name"
display_name = ":name"
project = ":project"
service = nobl9_service.:serviceName.name

label {
key = "team"
values = ["green","sapphire"]
}

label {
key = "env"
values = ["dev", "staging", "prod"]
}

budgeting_method = "Occurrences"

objective {
display_name = "obj1"
name = "tf-objective-1"
target = 0.7
value = 1
op = "lt"
raw_metric {
query {
honeycomb {
calculation = "SUM"
attribute = "test-column"
}
}
}
}

time_window {
count = 10
is_rolling = true
unit = "Minute"
}

indicator {
name = nobl9_agent.:agentName.name
project = ":project"
kind = "Agent"
}
}
`
config = strings.ReplaceAll(config, ":name", name)
config = strings.ReplaceAll(config, ":serviceName", serviceName)
config = strings.ReplaceAll(config, ":agentName", agentName)
config = strings.ReplaceAll(config, ":project", testProject)
return config
}

func testInfluxDBSLO(name string) string {
var serviceName = name + "-tf-service"
var agentName = name + "-tf-agent"
Expand Down
Loading