From f9cdb9eb348279c4be875118e9e376e16aa28fea Mon Sep 17 00:00:00 2001 From: Alexandre Rulleau Date: Mon, 28 Oct 2024 14:16:41 +0100 Subject: [PATCH] test(libddwaf): bump to 1.20.1 Signed-off-by: Alexandre Rulleau --- appsec/tests/helper/client_test.cpp | 4 ++-- appsec/tests/helper/waf_test.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/appsec/tests/helper/client_test.cpp b/appsec/tests/helper/client_test.cpp index 62095be19a..b12cf89e16 100644 --- a/appsec/tests/helper/client_test.cpp +++ b/appsec/tests/helper/client_test.cpp @@ -155,7 +155,7 @@ TEST(ClientTest, ClientInit) EXPECT_STREQ(msg_res->status.c_str(), "ok"); EXPECT_EQ(msg_res->meta.size(), 2); EXPECT_STREQ( - msg_res->meta[std::string(tag::waf_version)].c_str(), "1.20.0"); + msg_res->meta[std::string(tag::waf_version)].c_str(), "1.20.1"); EXPECT_STREQ( msg_res->meta[std::string(tag::event_rules_errors)].c_str(), "{}"); @@ -264,7 +264,7 @@ TEST(ClientTest, ClientInitInvalidRules) EXPECT_STREQ(msg_res->status.c_str(), "ok"); EXPECT_EQ(msg_res->meta.size(), 2); EXPECT_STREQ( - msg_res->meta[std::string(tag::waf_version)].c_str(), "1.20.0"); + msg_res->meta[std::string(tag::waf_version)].c_str(), "1.20.1"); rapidjson::Document doc; doc.Parse(msg_res->meta[std::string(tag::event_rules_errors)]); diff --git a/appsec/tests/helper/waf_test.cpp b/appsec/tests/helper/waf_test.cpp index a4eb340aa0..a78f5476a7 100644 --- a/appsec/tests/helper/waf_test.cpp +++ b/appsec/tests/helper/waf_test.cpp @@ -48,7 +48,7 @@ TEST(WafTest, InitWithInvalidRules) waf::instance::from_settings(cs, ruleset, meta, metrics)}; EXPECT_EQ(meta.size(), 2); - EXPECT_STREQ(meta[std::string(tag::waf_version)].c_str(), "1.20.0"); + EXPECT_STREQ(meta[std::string(tag::waf_version)].c_str(), "1.20.1"); rapidjson::Document doc; doc.Parse(meta[std::string(tag::event_rules_errors)]);