Perfetto tracing for /ok. Header parsing not complete
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
#include "arena_allocator.hpp"
|
||||
#include "http_handler.hpp"
|
||||
#include "perfetto_categories.hpp"
|
||||
#include <atomic>
|
||||
#include <doctest/doctest.h>
|
||||
|
||||
// Perfetto static storage for tests
|
||||
PERFETTO_TRACK_EVENT_STATIC_STORAGE();
|
||||
|
||||
// Global variable needed by Connection
|
||||
std::atomic<int> activeConnections{0};
|
||||
|
||||
@@ -34,6 +38,7 @@ TEST_CASE("HttpHandler route parsing") {
|
||||
CHECK(HttpHandler::parseRoute("GET", "/v1/retention") ==
|
||||
HttpRoute::GET_retention);
|
||||
CHECK(HttpHandler::parseRoute("GET", "/metrics") == HttpRoute::GET_metrics);
|
||||
CHECK(HttpHandler::parseRoute("GET", "/ok") == HttpRoute::GET_ok);
|
||||
}
|
||||
|
||||
SUBCASE("POST routes") {
|
||||
|
||||
Reference in New Issue
Block a user