Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastian Schrader
Kea
Commits
01bdd8fb
Commit
01bdd8fb
authored
Oct 17, 2018
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[65-libyang-pd-pool] [non-]empty applies to lists
parent
b848a4b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/lib/yang/tests/translator_pd_pool_unittests.cc
src/lib/yang/tests/translator_pd_pool_unittests.cc
+3
-3
No files found.
src/lib/yang/tests/translator_pd_pool_unittests.cc
View file @
01bdd8fb
...
@@ -67,7 +67,7 @@ TEST_F(TranslatorPdPoolsTest, getEmptyKea) {
...
@@ -67,7 +67,7 @@ TEST_F(TranslatorPdPoolsTest, getEmptyKea) {
EXPECT_EQ
(
0
,
pools
->
size
());
EXPECT_EQ
(
0
,
pools
->
size
());
}
}
// This test verifies that one
non-empty
pd pool can be properly
// This test verifies that one pd pool can be properly
// translated from YANG to JSON using the IETF model.
// translated from YANG to JSON using the IETF model.
TEST_F
(
TranslatorPdPoolsTest
,
getIetf
)
{
TEST_F
(
TranslatorPdPoolsTest
,
getIetf
)
{
useModel
(
IETF_DHCPV6_SERVER
);
useModel
(
IETF_DHCPV6_SERVER
);
...
@@ -108,7 +108,7 @@ TEST_F(TranslatorPdPoolsTest, getIetf) {
...
@@ -108,7 +108,7 @@ TEST_F(TranslatorPdPoolsTest, getIetf) {
EXPECT_TRUE
(
pool
->
equals
(
*
pools
->
get
(
0
)));
EXPECT_TRUE
(
pool
->
equals
(
*
pools
->
get
(
0
)));
}
}
// This test verifies that one
non-empty
pd pool can be properly
// This test verifies that one pd pool can be properly
// translated from YANG to JSON using the Kea ad hoc model.
// translated from YANG to JSON using the Kea ad hoc model.
TEST_F
(
TranslatorPdPoolsTest
,
getKea
)
{
TEST_F
(
TranslatorPdPoolsTest
,
getKea
)
{
useModel
(
KEA_DHCP6_SERVER
);
useModel
(
KEA_DHCP6_SERVER
);
...
@@ -319,7 +319,7 @@ TEST_F(TranslatorPdPoolsTest, setKea) {
...
@@ -319,7 +319,7 @@ TEST_F(TranslatorPdPoolsTest, setKea) {
EXPECT_NO_THROW
(
sess_
->
validate
());
EXPECT_NO_THROW
(
sess_
->
validate
());
}
}
// This test verifies that a
list of
non-empty pd pools can be properly
// This test verifies that a non-empty
list of
pd pools can be properly
// translated from YANG to JSON using the Kea ad hoc model.
// translated from YANG to JSON using the Kea ad hoc model.
TEST_F
(
TranslatorPdPoolsTest
,
getListKea
)
{
TEST_F
(
TranslatorPdPoolsTest
,
getListKea
)
{
useModel
(
KEA_DHCP6_SERVER
);
useModel
(
KEA_DHCP6_SERVER
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment