Skip to content

Commit

Permalink
test_nacm BUGFIX add filter
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Nov 2, 2023
1 parent 28fc82a commit 8ed2c48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_nacm.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ test_edit_config_update(void **state)
ASSERT_OK_REPLY(st);
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"
" <data>\n"
Expand Down Expand Up @@ -745,7 +745,7 @@ test_edit_config_when(void **state)
SEND_EDIT_RPC(st, data);
ASSERT_OK_REPLY(st);
FREE_TEST_VARS(st);
GET_CONFIG(st);
GET_CONFIG_FILTER(st, "/nacm-test1:*");
expected = "<get-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n <data/>\n</get-config>\n";
assert_string_equal(st->str, expected);
FREE_TEST_VARS(st);
Expand Down Expand Up @@ -957,7 +957,7 @@ test_commit(void **state)
ASSERT_OK_REPLY(st);
FREE_TEST_VARS(st);

GET_CONFIG(st);
GET_CONFIG_FILTER(st, "/nacm-test1:*");
expected =
"<get-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n"
" <data>\n"
Expand Down Expand Up @@ -1013,7 +1013,7 @@ test_discard_changes(void **state)
ASSERT_OK_REPLY(st);
FREE_TEST_VARS(st);

GET_CONFIG_DS_FILTER(st, NC_DATASTORE_CANDIDATE, NULL);
GET_CONFIG_DS_FILTER(st, NC_DATASTORE_CANDIDATE, "/edit1:*");
expected =
"<get-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n"
" <data/>\n"
Expand Down

0 comments on commit 8ed2c48

Please sign in to comment.