From 2095b0b410ff562bde6a1cf3a645650f019d3bf4 Mon Sep 17 00:00:00 2001 From: Ken Zangelin Date: Thu, 11 Jan 2024 13:43:14 +0100 Subject: [PATCH] DELETE => HTTP_DELETE in unittests --- test/unittests/mongoBackend/mongoCreateSubscription_test.cpp | 2 +- test/unittests/rest/restReply_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unittests/mongoBackend/mongoCreateSubscription_test.cpp b/test/unittests/mongoBackend/mongoCreateSubscription_test.cpp index 541190e5c5..050204f229 100644 --- a/test/unittests/mongoBackend/mongoCreateSubscription_test.cpp +++ b/test/unittests/mongoBackend/mongoCreateSubscription_test.cpp @@ -183,7 +183,7 @@ TEST(mongoCreateSubscriptions, createSubscriptionCustomOK) sub.notification.attributes.push_back("D"); sub.notification.httpInfo.url = "http://foo.bar"; sub.notification.httpInfo.custom = true; - sub.notification.httpInfo.verb = PUT; + sub.notification.httpInfo.verb = HTTP_PUT; sub.notification.httpInfo.headers.insert(std::pair("X-My-Header", "foo")); sub.notification.httpInfo.headers.insert(std::pair("Content-Type", "text/plain")); sub.notification.httpInfo.qs.insert(std::pair("p1", "param1")); diff --git a/test/unittests/rest/restReply_test.cpp b/test/unittests/rest/restReply_test.cpp index d6f078b6c8..13f6961a82 100644 --- a/test/unittests/rest/restReply_test.cpp +++ b/test/unittests/rest/restReply_test.cpp @@ -50,7 +50,7 @@ TEST(restReply, MHD_create_response_from_data_error) utInit(); - orionldState.verb = GET; + orionldState.verb = HTTP_GET; if (answer != NULL) { @@ -76,7 +76,7 @@ TEST(restReply, json) utInit(); - orionldState.verb = GET; + orionldState.verb = HTTP_GET; restReply(&ci, "123");