From 5bc8457ba9456a5d1526f053b3af2a3a52115a82 Mon Sep 17 00:00:00 2001 From: roman Date: Thu, 2 Nov 2023 13:12:16 +0100 Subject: [PATCH] test_nacm BUGFIX add filter --- tests/test_nacm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_nacm.c b/tests/test_nacm.c index 2f0bc50f..fe0b98ba 100644 --- a/tests/test_nacm.c +++ b/tests/test_nacm.c @@ -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 = "\n" " \n" @@ -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 = "\n \n\n"; assert_string_equal(st->str, expected); FREE_TEST_VARS(st); @@ -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 = "\n" " \n" @@ -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 = "\n" " \n"