Skip to content

Commit

Permalink
tests: move apps/metrics_tester to tests/unit
Browse files Browse the repository at this point in the history
so that we can reuse metrics_tester for unit test -- we will add
tests exercising the query parameters supported by the exporter
httpd server, like `__name__` and `__aggregate__`.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed May 12, 2024
1 parent 04edaae commit 00a448e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 29 deletions.
1 change: 0 additions & 1 deletion apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ endmacro ()
add_subdirectory (httpd)
add_subdirectory (io_tester)
add_subdirectory (rpc_tester)
add_subdirectory(metrics_tester)
add_subdirectory (iotune)
add_subdirectory (memcached)
add_subdirectory (seawreck)
27 changes: 0 additions & 27 deletions apps/metrics_tester/CMakeLists.txt

This file was deleted.

7 changes: 7 additions & 0 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -757,3 +757,10 @@ add_test (
set_tests_properties (Seastar.unit.json2code
PROPERTIES
TIMEOUT ${Seastar_TEST_TIMEOUT})

add_executable (metrics_tester
metrics_tester.cc)
target_link_libraries (metrics_tester
PRIVATE
seastar_private
yaml-cpp::yaml-cpp)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <seastar/core/relabel_config.hh>
#include <seastar/core/internal/estimated_histogram.hh>
#include <seastar/util/defer.hh>
#include "../lib/stop_signal.hh"
#include "../../apps/lib/stop_signal.hh"
#include <map>
#include <vector>
#include <yaml-cpp/yaml.h>
Expand Down
File renamed without changes.

0 comments on commit 00a448e

Please sign in to comment.