diff options
author | Piotrek Zadroga <piotrek@isc.org> | 2023-05-26 15:19:55 +0200 |
---|---|---|
committer | Piotrek Zadroga <piotrek@isc.org> | 2023-05-26 15:22:55 +0200 |
commit | a45fb0f0dc5980143a355ef1074b7848eae23845 (patch) | |
tree | c2e04d2d65f16c3498411efd98dddb5b139e7edf /src/bin/perfdhcp | |
parent | [#2834] Addressed review comments (diff) | |
download | kea-a45fb0f0dc5980143a355ef1074b7848eae23845.tar.xz kea-a45fb0f0dc5980143a355ef1074b7848eae23845.zip |
[#2834] Addressed review comments
Diffstat (limited to 'src/bin/perfdhcp')
-rw-r--r-- | src/bin/perfdhcp/tests/command_options_unittest.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/perfdhcp/tests/command_options_unittest.cc b/src/bin/perfdhcp/tests/command_options_unittest.cc index c37a775d89..db4254a22b 100644 --- a/src/bin/perfdhcp/tests/command_options_unittest.cc +++ b/src/bin/perfdhcp/tests/command_options_unittest.cc @@ -1005,3 +1005,13 @@ TEST_F(CommandOptionsTest, UseRelayV6OptionsWithEncapsulationLevelValueTwo) { EXPECT_THROW(process(opt, "perfdhcp -6 -A1 --or 2:32,00000E10 -l ethx all"), isc::InvalidParameter); } +TEST_F(CommandOptionsTest, UseRelayV6OptionsDuplicated) { + CommandOptions opt; + + // multiple relayed options with the same option code are supported. + EXPECT_NO_THROW(process(opt, "perfdhcp -6 -A1 --or 1:32,00000E10 --or 32,00000E11 -l ethx all")); + EXPECT_TRUE(opt.isUseRelayedV6()); + EXPECT_EQ(2, opt.getRelayOpts().size()); +} + + |