feat: add publisher metadata (#3080)
This commit is contained in:
parent
c9f853dc09
commit
6593fa5d61
21 changed files with 279 additions and 39 deletions
18
tests/unit/test_entry_handler.cpp
Normal file
18
tests/unit/test_entry_handler.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* @file tests/unit/test_entry_handler.cpp
|
||||
* @brief Test src/entry_handler.*.
|
||||
*/
|
||||
#include <src/entry_handler.h>
|
||||
|
||||
#include "../tests_common.h"
|
||||
#include "../tests_log_checker.h"
|
||||
|
||||
TEST(EntryHandlerTests, LogPublisherDataTest) {
|
||||
// call log_publisher_data
|
||||
log_publisher_data();
|
||||
|
||||
// check if specific log messages exist
|
||||
ASSERT_TRUE(log_checker::line_starts_with("test_sunshine.log", "Info: Package Publisher: "));
|
||||
ASSERT_TRUE(log_checker::line_starts_with("test_sunshine.log", "Info: Publisher Website: "));
|
||||
ASSERT_TRUE(log_checker::line_starts_with("test_sunshine.log", "Info: Get support: "));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue