Skip to content

Commit

Permalink
netopeer FEATURE sorting of data nodes
Browse files Browse the repository at this point in the history
The Netopeer should now be adapted to work with sorted data nodes.
  • Loading branch information
lePici authored and michalvasko committed Feb 27, 2024
1 parent c06ee5a commit f2a956d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
48 changes: 24 additions & 24 deletions tests/test_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,11 @@ test_xpath_namespaces(void **state)
" </desktops>\n"
" <servers>\n"
" <server>\n"
" <name>Fifth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>443</port>\n"
" </server>\n"
" <server>\n"
" <name>First</name>\n"
" <address>192.168.0.4</address>\n"
" <port>80</port>\n"
Expand All @@ -617,19 +622,14 @@ test_xpath_namespaces(void **state)
" </attributes>\n"
" </server>\n"
" <server>\n"
" <name>Second</name>\n"
" <address>192.168.0.12</address>\n"
" <port>80</port>\n"
" </server>\n"
" <server>\n"
" <name>Fourth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>22</port>\n"
" </server>\n"
" <server>\n"
" <name>Fifth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>443</port>\n"
" <name>Second</name>\n"
" <address>192.168.0.12</address>\n"
" <port>80</port>\n"
" </server>\n"
" <server>\n"
" <name>Sixth</name>\n"
Expand Down Expand Up @@ -808,6 +808,11 @@ test_subtree_selection_node(void **state)
" <devices>\n"
" <servers>\n"
" <server>\n"
" <name>Fifth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>443</port>\n"
" </server>\n"
" <server>\n"
" <name>First</name>\n"
" <address>192.168.0.4</address>\n"
" <port>80</port>\n"
Expand All @@ -816,19 +821,14 @@ test_subtree_selection_node(void **state)
" </attributes>\n"
" </server>\n"
" <server>\n"
" <name>Second</name>\n"
" <address>192.168.0.12</address>\n"
" <port>80</port>\n"
" </server>\n"
" <server>\n"
" <name>Fourth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>22</port>\n"
" </server>\n"
" <server>\n"
" <name>Fifth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>443</port>\n"
" <name>Second</name>\n"
" <address>192.168.0.12</address>\n"
" <port>80</port>\n"
" </server>\n"
" <server>\n"
" <name>Sixth</name>\n"
Expand Down Expand Up @@ -947,6 +947,11 @@ test_subtree_no_namespace(void **state)
" </desktops>\n"
" <servers>\n"
" <server>\n"
" <name>Fifth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>443</port>\n"
" </server>\n"
" <server>\n"
" <name>First</name>\n"
" <address>192.168.0.4</address>\n"
" <port>80</port>\n"
Expand All @@ -955,19 +960,14 @@ test_subtree_no_namespace(void **state)
" </attributes>\n"
" </server>\n"
" <server>\n"
" <name>Second</name>\n"
" <address>192.168.0.12</address>\n"
" <port>80</port>\n"
" </server>\n"
" <server>\n"
" <name>Fourth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>22</port>\n"
" </server>\n"
" <server>\n"
" <name>Fifth</name>\n"
" <address>192.168.0.50</address>\n"
" <port>443</port>\n"
" <name>Second</name>\n"
" <address>192.168.0.12</address>\n"
" <port>80</port>\n"
" </server>\n"
" <server>\n"
" <name>Sixth</name>\n"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_nacm.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,16 +385,16 @@ test_filter_key_list(void **state)
"<get-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n"
" <data>\n"
" <people xmlns=\"urn:nt2\">\n"
" <name>Arnold</name>\n"
" </people>\n"
" <people xmlns=\"urn:nt2\">\n"
" <name>John</name>\n"
" <weight>75</weight>\n"
" </people>\n"
" <people xmlns=\"urn:nt2\">\n"
" <name>Thomas</name>\n"
" <weight>100</weight>\n"
" </people>\n"
" <people xmlns=\"urn:nt2\">\n"
" <name>Arnold</name>\n"
" </people>\n"
" </data>\n"
"</get-config>\n";
assert_string_equal(st->str, expected);
Expand Down

0 comments on commit f2a956d

Please sign in to comment.