diff --git a/ddspipe_participants/test/blackbox/participants_creation/CMakeLists.txt b/ddspipe_participants/test/blackbox/participants_creation/CMakeLists.txt index 834d2ed9..0be40f15 100644 --- a/ddspipe_participants/test/blackbox/participants_creation/CMakeLists.txt +++ b/ddspipe_participants/test/blackbox/participants_creation/CMakeLists.txt @@ -19,6 +19,7 @@ set(TEST_SOURCES ) set(TEST_LIST + default_configuration creation_trivial ddspipe_all_creation_builtin_topic ) diff --git a/ddspipe_participants/test/blackbox/participants_creation/ParticipantsCreationgTest.cpp b/ddspipe_participants/test/blackbox/participants_creation/ParticipantsCreationgTest.cpp index a49c3b17..6cbe0818 100644 --- a/ddspipe_participants/test/blackbox/participants_creation/ParticipantsCreationgTest.cpp +++ b/ddspipe_participants/test/blackbox/participants_creation/ParticipantsCreationgTest.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +40,21 @@ constexpr const unsigned int N_THREADS = 2; } // test +/** + * Test to check default participant configuration values. + */ +TEST(ParticipantsCreationgTest, default_configuration) +{ + // Common configuration + { + participants::ParticipantConfiguration conf; + EXPECT_EQ(conf.app_id, "UNKNOWN_APP"); + EXPECT_EQ(conf.app_metadata, ""); + EXPECT_TRUE(conf.id.empty()); + EXPECT_FALSE(conf.is_repeater); + } +} + /** * Test to create a participant of each kind and check it does not fail. *