Skip to content

Commit 3508066

Browse files
authored
Merge branch 'main' into dudik/add-di-capabilities
2 parents a6384f0 + ee1c176 commit 3508066

14 files changed

+40
-142
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
/manifests/ruby.yml @DataDog/ruby-guild @DataDog/asm-ruby
3535
/manifests/rust.yml @DataDog/apm-rust
3636

37-
37+
/chainguard/** @DataDog/system-tests-core # Security sensitive

.github/workflows/run-end-to-end.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,6 @@ jobs:
297297
- name: Run APPSEC_BLOCKING_FULL_DENYLIST scenario
298298
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"APPSEC_BLOCKING_FULL_DENYLIST"')
299299
run: ./run.sh APPSEC_BLOCKING_FULL_DENYLIST
300-
- name: Run APPSEC_AND_RC_ENABLED scenario
301-
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"APPSEC_AND_RC_ENABLED"')
302-
run: ./run.sh APPSEC_AND_RC_ENABLED
303300
- name: Run APPSEC_RUNTIME_ACTIVATION scenario
304301
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"APPSEC_RUNTIME_ACTIVATION"')
305302
run: ./run.sh APPSEC_RUNTIME_ACTIVATION
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Docs: https://datadoghq.atlassian.net/wiki/spaces/SECENG/pages/5138645099/User+guide+dd-octo-sts
2+
issuer: https://token.actions.githubusercontent.com
3+
4+
subject: repo:DataDog/system-tests-dashboard:ref:refs/heads/main
5+
claim_pattern:
6+
event_name: workflow_dispatch
7+
ref: refs/heads/main
8+
ref_protected: "true"
9+
job_workflow_ref: DataDog/system-tests-dashboard/\.github/workflows/test-activation-tmp\.yml@refs/heads/main
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write

tests/appsec/test_automated_login_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ def validate_iden(meta):
19681968

19691969
@rfc("https://docs.google.com/document/d/1RT38U6dTTcB-8muiYV4-aVDCsT_XrliyakjtAPyjUpw")
19701970
@features.user_monitoring
1971-
@scenarios.appsec_and_rc_enabled
1971+
@scenarios.appsec_api_security_rc
19721972
class Test_V3_Login_Events_Blocking:
19731973
def setup_login_event_blocking_auto_id(self):
19741974
rc.rc_state.reset().apply()

tests/appsec/test_automated_user_and_session_tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_user_tracking_sdk_overwrite(self):
138138

139139
@rfc("https://docs.google.com/document/d/1RT38U6dTTcB-8muiYV4-aVDCsT_XrliyakjtAPyjUpw")
140140
@features.user_monitoring
141-
@scenarios.appsec_and_rc_enabled
141+
@scenarios.appsec_api_security_rc
142142
class Test_Automated_User_Blocking:
143143
def setup_user_blocking_auto(self):
144144
rc.rc_state.reset().apply()
@@ -228,7 +228,7 @@ def test_user_blocking_sdk(self):
228228

229229
@rfc("https://docs.google.com/document/d/1RT38U6dTTcB-8muiYV4-aVDCsT_XrliyakjtAPyjUpw")
230230
@features.user_monitoring
231-
@scenarios.appsec_and_rc_enabled
231+
@scenarios.appsec_api_security_rc
232232
class Test_Automated_Session_Blocking:
233233
def setup_session_blocking(self):
234234
rc.rc_state.reset().apply()

tests/appsec/test_extended_data_collection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747

4848
@features.appsec_extended_data_collection
49-
@scenarios.appsec_and_rc_enabled
49+
@scenarios.appsec_api_security_rc
5050
class Test_ExtendedDataCollectionCapability:
5151
"""Validate that ASM_EXTENDED_DATA_COLLECTION (44) capability is sent"""
5252

@@ -55,7 +55,7 @@ def test_extended_data_collection_capability(self):
5555

5656

5757
@features.appsec_extended_data_collection
58-
@scenarios.appsec_and_rc_enabled
58+
@scenarios.appsec_api_security_rc
5959
class Test_ExtendedRequestHeadersDataCollection:
6060
"""Test extended data collection using remote config rules and actions"""
6161

@@ -254,7 +254,7 @@ def test_extended_data_collection_with_rc_and_authentication_headers(self):
254254

255255

256256
@features.appsec_extended_data_collection
257-
@scenarios.appsec_and_rc_enabled
257+
@scenarios.appsec_api_security_rc
258258
class Test_ExtendedResponseHeadersDataCollection:
259259
"""Test extended response headers data collection using remote config rules and actions"""
260260

@@ -418,7 +418,7 @@ def test_extended_data_collection_with_rc_and_authentication_headers(self):
418418

419419

420420
@features.appsec_extended_data_collection
421-
@scenarios.appsec_and_rc_enabled
421+
@scenarios.appsec_api_security_rc
422422
class Test_ExtendedRequestBodyCollection:
423423
"""Test extended request body data collection using remote config rules and actions"""
424424

tests/appsec/test_remote_config_rule_changes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def validate_waf_rule_version_tag_by_rc(span, appsec_data): # noqa: ARG001
319319
@rfc(
320320
"https://docs.google.com/document/d/1t6U7WXko_QChhoNIApn0-CRNe6SAKuiiAQIyCRPUXP4/edit?tab=t.0#heading=h.uw8qbgyhhb47"
321321
)
322-
@scenarios.appsec_and_rc_enabled
322+
@scenarios.appsec_api_security_rc
323323
@features.appsec_rc_asm_dd_multiconfig
324324
@features.appsec_trace_tagging_rules
325325
class Test_AsmDdMultiConfiguration:

tests/appsec/test_trace_tagging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def validate(span):
108108
interfaces.library.validate_spans(self.r_tt4, validator=validate)
109109

110110

111-
@scenarios.appsec_and_rc_enabled
111+
@scenarios.appsec_api_security_rc
112112
@features.appsec_trace_tagging_rules
113113
class Test_TraceTaggingRulesRcCapability:
114114
"""A library with support for trace-tagging rules must provide the

tests/remote_config/test_remote_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def validate(data):
471471

472472
# XXX: This test can run in any scenario with rc_api_enabled=True. Default will not work, as /v0.7/config is not reported by the agent,
473473
# which will make some tracers (e.g. Ruby) not use RC.
474-
@scenarios.appsec_and_rc_enabled
474+
@scenarios.appsec_api_security_rc
475475
@features.remote_config_semantic_versioning
476476
class Test_RemoteConfigurationSemVer:
477477
"""Tests that semantic versioning is reported in remote config"""

tests/test_the_test/test_minimal_number_of_scenarios.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@
1212
# You don't need to add B/A if A/B exists
1313
# Structure: {("SCENARIO_A", "SCENARIO_B"): "reason"}
1414
SKIP_MERGE_SCENARIOS: dict[tuple[str, str], str] = {
15-
("APPSEC_AND_RC_ENABLED", "APPSEC_API_SECURITY_RC"): "TODO",
16-
("APPSEC_AND_RC_ENABLED", "APPSEC_AUTO_EVENTS_RC"): "TODO",
17-
("APPSEC_AND_RC_ENABLED", "APPSEC_BLOCKING_FULL_DENYLIST"): "TODO",
18-
("APPSEC_AND_RC_ENABLED", "APPSEC_REQUEST_BLOCKING"): "TODO",
19-
("APPSEC_AND_RC_ENABLED", "APPSEC_RUNTIME_ACTIVATION"): "TODO",
20-
("APPSEC_AND_RC_ENABLED", "REMOTE_CONFIG_MOCKED_BACKEND_ASM_DD"): "TODO",
21-
("APPSEC_AND_RC_ENABLED", "REMOTE_CONFIG_MOCKED_BACKEND_ASM_DD_NOCACHE"): "TODO",
22-
("APPSEC_AND_RC_ENABLED", "REMOTE_CONFIG_MOCKED_BACKEND_LIVE_DEBUGGING"): "TODO",
23-
("APPSEC_AND_RC_ENABLED", "TRACING_CONFIG_NONDEFAULT_4"): "TODO",
2415
("APPSEC_API_SECURITY_RC", "APPSEC_RUNTIME_ACTIVATION"): "TODO",
2516
("APPSEC_API_SECURITY_RC", "REMOTE_CONFIG_MOCKED_BACKEND_ASM_DD_NOCACHE"): "TODO",
2617
("APPSEC_AUTO_EVENTS_RC", "APPSEC_RUNTIME_ACTIVATION"): "TODO",

0 commit comments

Comments
 (0)