Skip to content

Commit a3d6288

Browse files
smolarobertomonteromiguel
authored andcommitted
Remove testing of RC request_sample_rate for API Security (#4235)
1 parent 58ea0a6 commit a3d6288

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/appsec/api_security/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def setup_scenario(self):
121121
)
122122
rc_state.set_config(
123123
"datadog/2/ASM_FEATURES/ASM_FEATURES-base/config",
124-
{"asm": {"enabled": True}, "api_security": {"request_sample_rate": 1.0}},
124+
{"asm": {"enabled": True}},
125125
)
126126

127127
BaseAppsecApiSecurityRcTest.states = rc_state.apply()

utils/_context/_scenarios/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,12 @@ class _Scenarios:
272272

273273
appsec_api_security_rc = EndToEndScenario(
274274
"APPSEC_API_SECURITY_RC",
275-
weblog_env={"DD_EXPERIMENTAL_API_SECURITY_ENABLED": "true", "DD_API_SECURITY_SAMPLE_DELAY": "0.0"},
275+
weblog_env={
276+
"DD_EXPERIMENTAL_API_SECURITY_ENABLED": "true",
277+
"DD_API_SECURITY_ENABLED": "true",
278+
"DD_API_SECURITY_REQUEST_SAMPLE_RATE": "1.0",
279+
"DD_API_SECURITY_SAMPLE_DELAY": "0.0",
280+
},
276281
rc_api_enabled=True,
277282
doc="""
278283
Scenario to test API Security Remote config

0 commit comments

Comments
 (0)