Skip to content

Commit 7195315

Browse files
committed
Additional unit tests with ingres and egress directions
1 parent d4c351c commit 7195315

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

collector/test/ConfigLoaderTest.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,27 @@ TEST(CollectorConfigTest, TestYamlConfigToConfigMultiple) {
316316
enabled: enabled
317317
)",
318318
Direction::BOTH},
319+
{R"(
320+
networking:
321+
externalIps:
322+
enabled: enabled
323+
direction: ingress
324+
)",
325+
Direction::INGRESS},
326+
{R"(
327+
networking:
328+
externalIps:
329+
enabled: enabled
330+
direction: egress
331+
)",
332+
Direction::EGRESS},
333+
{R"(
334+
networking:
335+
externalIps:
336+
enabled: enabled
337+
direction: both
338+
)",
339+
Direction::BOTH},
319340
{R"(
320341
networking:
321342
externalIps:

0 commit comments

Comments
 (0)