prometheus/discovery/aws
Ogulcan Aydogan 1d1b670c40
discovery/aws: run tests in parallel
Each test function creates its own mock AWS client and operates on
independent data stores with no shared global state between them.
Adding t.Parallel() to the 33 top-level test functions across the
six test files (aws, ec2, ecs, elasticache, msk, rds) allows the
Go test runner to overlap their execution, cutting wall-clock time.

TestLoadRegion is excluded because its subtests use t.Setenv, which
panics when a parallel ancestor is detected (Go 1.25+).

Refs: #15185
Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>
2026-05-15 13:45:20 +01:00
..
aws.go [ENHANCEMENT] AWS SD: Add optional external_id field 2026-04-26 18:34:56 +01:00
aws_test.go discovery/aws: run tests in parallel 2026-05-15 13:45:20 +01:00
ec2.go Use a default IPv6 address for IPv6 only instances 2026-04-29 19:58:17 +01:00
ec2_test.go discovery/aws: run tests in parallel 2026-05-15 13:45:20 +01:00
ecs.go [ENHANCEMENT] AWS SD: Add optional external_id field 2026-04-26 18:34:56 +01:00
ecs_test.go discovery/aws: run tests in parallel 2026-05-15 13:45:20 +01:00
elasticache.go [ENHANCEMENT] AWS SD: Add optional external_id field 2026-04-26 18:34:56 +01:00
elasticache_test.go discovery/aws: run tests in parallel 2026-05-15 13:45:20 +01:00
lightsail.go AWS SD: Set Directory 2026-04-25 14:18:53 +01:00
metrics_aws.go feat: AWS ECS Service Discovery 2025-11-06 22:48:07 +00:00
metrics_ec2.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
metrics_ecs.go feat: AWS ECS Service Discovery 2025-11-06 22:48:07 +00:00
metrics_elasticache.go [FEATURE] AWS SD: Add Elasticache Role (#18099) 2026-02-22 15:56:03 +01:00
metrics_lightsail.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
metrics_msk.go prw2: Move Remote Write 2.0 CT to be per Sample; Rename to ST (start timestamp) (#17411) (#17600) 2026-02-05 10:40:45 +01:00
metrics_rds.go AWS SD: RDS Role (#18206) 2026-03-04 12:17:38 +01:00
msk.go [ENHANCEMENT] AWS SD: Add optional external_id field 2026-04-26 18:34:56 +01:00
msk_test.go discovery/aws: run tests in parallel 2026-05-15 13:45:20 +01:00
rds.go [ENHANCEMENT] AWS SD: Add optional external_id field 2026-04-26 18:34:56 +01:00
rds_test.go discovery/aws: run tests in parallel 2026-05-15 13:45:20 +01:00