ADD: added guid usage to identify a pod

This commit is contained in:
hwinkel
2023-08-07 21:30:53 +02:00
parent bc6617e100
commit 1c4c883648
11 changed files with 126 additions and 17 deletions

View File

@@ -12,6 +12,7 @@ IF(NOT TARGET Catch2)
add_compile_definitions(LOGURU_WITH_STREAMS SQLITE_THREADSAFE=2)
IF(NOT TARGET loguru)
set(LOGURU_STACKTRACES 0 CACHE BOOL "disable testing")
add_subdirectory(libs/loguru EXCLUDE_FROM_ALL)
ENDIF()
@@ -40,6 +41,10 @@ ENDIF()
add_subdirectory(libs/curlcpp EXCLUDE_FROM_ALL)
ENDIF()
IF(NOT TARGET crossguid)
set(CROSSGUID_TESTS OFF CACHE INTERNAL "")
add_subdirectory(libs/crossguid EXCLUDE_FROM_ALL)
ENDIF()
# IF (NOT TARGET rest-client)
# set(BUILD_SHARED_LIBS OFF CACHE BOOL "disable testing")
# add_subdirectory(libs/rest-client EXCLUDE_FROM_ALL)
@@ -57,12 +62,16 @@ ENDIF()
include/kubecontrol/KubePod.hpp
src/kubecontrol/KubePod.cpp
include/kubecontrol/PodController.hpp
src/kubecontrol/PodController.cpp
include/kubecontrol/WriterMemoryClass.hpp
)
target_link_libraries(kubecontrol
crossguid
yaml-cpp
curl
curlpp
@@ -90,13 +99,16 @@ IF (${TEST_KUBECONTROL_LIBRARY})
add_executable(test_kubecontrol tests/test_kubecontrol.cpp)
target_link_libraries(test_kubecontrol Catch2::Catch2 kubecontrol loguru)
target_link_libraries(test_kubecontrol Catch2::Catch2 kubecontrol )
catch_discover_tests(test_kubecontrol)
add_executable(test_KubePod tests/test_KubePod.cpp)
target_link_libraries(test_KubePod Catch2::Catch2 kubecontrol loguru)
target_link_libraries(test_KubePod Catch2::Catch2 kubecontrol )
catch_discover_tests(test_KubePod)
add_executable(test_podcontroller tests/test_podcontroller.cpp)
target_link_libraries(test_podcontroller Catch2::Catch2 kubecontrol )
catch_discover_tests(test_podcontroller)
ENDIF()