File tree 3 files changed +26
-3
lines changed
3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 24
24
env :
25
25
REGISTRY : ghcr.io
26
26
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
30
29
31
30
jobs :
32
31
build-harness :
Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ def receivers(telemetry)
104
104
)
105
105
106
106
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
107
111
end
108
112
109
113
[ receiver ]
Original file line number Diff line number Diff line change 173
173
receiver . call ( repository , changes )
174
174
end
175
175
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
+
176
182
context 'content product' do
177
183
before do
178
184
# Stub the reconfigure method, so we do not trigger background reconfiguration
290
296
291
297
context 'ASM' do
292
298
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
293
306
294
307
context 'overrides' do
295
308
let ( :data ) do
405
418
406
419
context 'ASM_DATA' do
407
420
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
408
428
409
429
context 'with rules_data information' do
410
430
let ( :data ) do
You can’t perform that action at this time.
0 commit comments