Skip to content

Commit

Permalink
test_url BUGFIX expect netconf-server config
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Nov 2, 2023
1 parent 9f0c4d8 commit 28fc82a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_url.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ test_copy_config(void **state)

FREE_TEST_VARS(st);

GET_CONFIG(st);
GET_CONFIG_FILTER(st, "/edit1:*");

expected =
"<get-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n"
Expand Down Expand Up @@ -288,6 +288,10 @@ test_copy_config_into_file(void **state)
" </rule>\n"
" </rule-list>\n"
" </nacm>\n"
" <netconf-server xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-server\">\n"
" <hello-timeout xmlns=\"urn:cesnet:libnetconf2-netconf-server\">60</hello-timeout>\n"
" <idle-timeout xmlns=\"urn:cesnet:libnetconf2-netconf-server\">0</idle-timeout>\n"
" </netconf-server>\n"
"</config>\n";

assert_int_not_equal(-1, asprintf(&expected, template, np_get_user()) == -1);
Expand Down Expand Up @@ -415,6 +419,10 @@ test_edit_config(void **state)
" </rule>\n"
" </rule-list>\n"
" </nacm>\n"
" <netconf-server xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-server\">\n"
" <hello-timeout xmlns=\"urn:cesnet:libnetconf2-netconf-server\">60</hello-timeout>\n"
" <idle-timeout xmlns=\"urn:cesnet:libnetconf2-netconf-server\">0</idle-timeout>\n"
" </netconf-server>\n"
" </data>\n"
"</get-config>\n";

Expand Down

0 comments on commit 28fc82a

Please sign in to comment.