File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 2424env :
2525 REGISTRY : ghcr.io
2626 REPO : ghcr.io/datadog/dd-trace-rb
27- # Broken system-test: https://github.com/DataDog/system-tests/pull/3904
28- SYSTEM_TESTS_REF : 239c3eba6de0473817d3d88ebbc025c9d0c9574b
29- # SYSTEM_TESTS_REF: main # This must always be set to `main` on dd-trace-rb's master branch
27+ # TODO: remove this change before merging to master
28+ SYSTEM_TESTS_REF : enable-ip-blocking-for-ruby
3029
3130jobs :
3231 build-harness :
Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ def receivers(telemetry)
104104 )
105105
106106 Datadog ::AppSec . reconfigure ( ruleset : ruleset , telemetry : telemetry )
107+
108+ repository . contents . each do |content |
109+ content . applied if ASM_PRODUCTS . include? ( content . path . product )
110+ end
107111 end
108112
109113 [ receiver ]
Original file line number Diff line number Diff line change 173173 receiver . call ( repository , changes )
174174 end
175175
176+ it 'sets apply_state to ACKNOWLEDGED on content' do
177+ receiver . call ( repository , transaction )
178+
179+ expect ( content . apply_state ) . to eq ( Datadog ::Core ::Remote ::Configuration ::Content ::ApplyState ::ACKNOWLEDGED )
180+ end
181+
176182 context 'content product' do
177183 before do
178184 # Stub the reconfigure method, so we do not trigger background reconfiguration
290296
291297 context 'ASM' do
292298 let ( :path ) { 'datadog/603646/ASM/whatevername/config' }
299+ let ( :data ) { { } }
300+
301+ it 'sets apply_state to ACKNOWLEDGED on content' do
302+ receiver . call ( repository , transaction )
303+
304+ expect ( content . apply_state ) . to eq ( Datadog ::Core ::Remote ::Configuration ::Content ::ApplyState ::ACKNOWLEDGED )
305+ end
293306
294307 context 'overrides' do
295308 let ( :data ) do
405418
406419 context 'ASM_DATA' do
407420 let ( :path ) { 'datadog/603646/ASM_DATA/whatevername/config' }
421+ let ( :data ) { { } }
422+
423+ it 'sets apply_state to ACKNOWLEDGED on content' do
424+ receiver . call ( repository , transaction )
425+
426+ expect ( content . apply_state ) . to eq ( Datadog ::Core ::Remote ::Configuration ::Content ::ApplyState ::ACKNOWLEDGED )
427+ end
408428
409429 context 'with rules_data information' do
410430 let ( :data ) do
You can’t perform that action at this time.
0 commit comments