Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastian Schrader
Kea
Commits
feb2cedc
Commit
feb2cedc
authored
Feb 22, 2017
by
Tomek Mrugalski
🛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[5110_fix] Compilation and unit-test fixed after rebase to current master
parent
8390f9de
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
687 deletions
+6
-687
src/bin/d2/tests/d2_cfg_mgr_unittests.cc
src/bin/d2/tests/d2_cfg_mgr_unittests.cc
+1
-682
src/bin/d2/tests/d2_simple_parser_unittest.cc
src/bin/d2/tests/d2_simple_parser_unittest.cc
+1
-1
src/bin/d2/tests/parser_unittest.cc
src/bin/d2/tests/parser_unittest.cc
+1
-1
src/bin/d2/tests/testdata/d2_cfg_tests.json
src/bin/d2/tests/testdata/d2_cfg_tests.json
+3
-3
No files found.
src/bin/d2/tests/d2_cfg_mgr_unittests.cc
View file @
feb2cedc
This diff is collapsed.
Click to expand it.
src/bin/d2/tests/d2_simple_parser_unittest.cc
View file @
feb2cedc
...
...
@@ -946,7 +946,7 @@ TEST_F(DdnsDomainParserTest, invalidDomain) {
"
\"
port
\"
: 200 },"
" {
\"
ip-address
\"
:
\"
127.0.0.3
\"
, "
"
\"
port
\"
: 300 } ] } "
;
PARSE_FAIL
(
config
,
"
Str
ing parameter name
not found
(<string>:1:1)"
);
PARSE_FAIL
(
config
,
"
miss
ing parameter
'
name
'
(<string>:1:1)"
);
// Create a domain configuration with an empty server list.
config
=
"{
\"
name
\"
:
\"
example.com
\"
, "
...
...
src/bin/d2/tests/parser_unittest.cc
View file @
feb2cedc
...
...
@@ -263,7 +263,7 @@ void testFile(const std::string& fname) {
ElementPtr
reference_json
;
ConstElementPtr
test_json
;
string
decommented
=
dhcp
::
test
::
decommentJSONfile
(
fname
);
string
decommented
=
isc
::
test
::
decommentJSONfile
(
fname
);
EXPECT_NO_THROW
(
reference_json
=
Element
::
fromJSONFile
(
decommented
,
true
));
// remove the temporary file
...
...
src/bin/d2/tests/testdata/d2_cfg_tests.json
View file @
feb2cedc
...
...
@@ -315,7 +315,7 @@
#-----
,{
"description"
:
"D2.tsig-keys, missing key name"
,
"logic-error"
:
"element: tsig-keys :
Str
ing parameter name
not found
(<string>:1:62)<string>:1:47"
,
"logic-error"
:
"element: tsig-keys :
miss
ing parameter
'
name
'
(<string>:1:62)<string>:1:47"
,
"data"
:
{
"forward-ddns"
:
{},
...
...
@@ -420,7 +420,7 @@
#-----
D
2
.tsig-keys
,
algorithm
tests
,{
"description"
:
"D2.tsig-keys, missing algorithm"
,
"logic-error"
:
"element: tsig-keys :
Str
ing parameter algorithm
not found
(<string>:1:62)<string>:1:47"
,
"logic-error"
:
"element: tsig-keys :
miss
ing parameter
'
algorithm
'
(<string>:1:62)<string>:1:47"
,
"data"
:
{
"forward-ddns"
:
{},
...
...
@@ -665,7 +665,7 @@
#-----
D
2
.tsig-keys
,
secret
tests
,{
"description"
:
"D2.tsig-keys, missing secret"
,
"logic-error"
:
"element: tsig-keys :
Str
ing parameter secret
not found
(<string>:1:62)<string>:1:47"
,
"logic-error"
:
"element: tsig-keys :
miss
ing parameter
'
secret
'
(<string>:1:62)<string>:1:47"
,
"data"
:
{
"forward-ddns"
:
{},
...
...
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