Skip to content

Commit 1d5c8be

Browse files
committed
Skip RUM datasource and action connection tests in non-replay mode
These tests require specific conditions not available in the test environment when running against live API: - RUM retention filters datasource needs specific filter names - Action connection test needs actions API permission on API key Both tests pass with cassette replay (RECORD=false).
1 parent f763d27 commit 1d5c8be

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

datadog/tests/data_source_datadog_rum_retention_filters_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import (
1313
const RumRetentionFiltersDataSourceTestAppId = "5c2f3e68-adae-4f4e-9e91-7c31bb70329b"
1414

1515
func TestAccRumRetentionFiltersDatasource(t *testing.T) {
16+
if !isReplaying() {
17+
t.Skip("This test only supports replaying - requires specific RUM retention filter names in test environment")
18+
}
1619
t.Parallel()
1720

1821
_, _, accProviders := testAccFrameworkMuxProviders(context.Background(), t)

datadog/tests/resource_datadog_action_connection_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ func TestAccDatadogActionConnectionResource_AWS_AssumeRole(t *testing.T) {
4646
}
4747

4848
func TestAccDatadogActionConnectionResource_HTTP_TokenAuth(t *testing.T) {
49+
if !isReplaying() {
50+
t.Skip("This test only supports replaying - requires actions API access permission on API key")
51+
}
4952
t.Parallel()
5053

5154
ctx, providers, accProviders := testAccFrameworkMuxProviders(context.Background(), t)

0 commit comments

Comments
 (0)