Skip to content

Commit ecf3e6a

Browse files
authored
feat: upgrade libddwaf v1.28.1 -> v1.29.0 (#152)
1 parent 43e55d4 commit ecf3e6a

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

builder_test.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,12 @@ func TestBuilder(t *testing.T) {
295295
res, err = ctx.Run(runData)
296296
require.NoError(t, err)
297297
require.NotEmpty(t, res.Events)
298-
require.Equal(t,
299-
map[string]any{"block_request": map[string]any{
300-
"grpc_status_code": uint64(10),
301-
"status_code": uint64(403),
302-
"type": "auto",
303-
}},
304-
res.Actions,
305-
)
298+
299+
action, _ := res.Actions["block_request"].(map[string]any)
300+
require.NotNil(t, action)
301+
require.Equal(t, action["grpc_status_code"], uint64(10))
302+
require.Equal(t, action["status_code"], uint64(403))
303+
require.Equal(t, action["type"], "auto")
306304
})
307305

308306
t.Run("DataDog/appsec-event-rules", func(t *testing.T) {

internal/lib/.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.28.1
1+
1.29.0
5.88 KB
Binary file not shown.
3.58 KB
Binary file not shown.
5.28 KB
Binary file not shown.
4.96 KB
Binary file not shown.

0 commit comments

Comments
 (0)