Skip to content

Commit e382913

Browse files
committed
tests: add coverage for azure blob path templating
Signed-off-by: Nico Berlee <[email protected]>
1 parent 8b50f64 commit e382913

File tree

2 files changed

+483
-0
lines changed

2 files changed

+483
-0
lines changed

tests/internal/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ set(UNIT_TESTS_FILES
5959
storage_dlq.c
6060
)
6161

62+
if(FLB_OUT_AZURE_BLOB)
63+
set(UNIT_TESTS_FILES
64+
${UNIT_TESTS_FILES}
65+
azure_blob_path.c
66+
)
67+
endif()
68+
6269
# TLS helpers
6370
if(FLB_TLS)
6471
set(UNIT_TESTS_FILES
@@ -217,6 +224,10 @@ function(prepare_unit_tests TEST_PREFIX SOURCEFILES)
217224
target_link_libraries(${source_file_we} flb-aws)
218225
endif()
219226

227+
if(FLB_OUT_AZURE_BLOB AND "${source_file_we}" STREQUAL "flb-it-azure_blob_path")
228+
target_link_libraries(${source_file_we} flb-plugin-out_azure_blob)
229+
endif()
230+
220231
if(FLB_STREAM_PROCESSOR)
221232
target_link_libraries(${source_file_we} flb-sp)
222233
endif()

0 commit comments

Comments
 (0)