aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_cps.py
diff options
context:
space:
mode:
authorAlexey Aleynikov <alexey.aleynikov@telekom.com>2023-06-12 17:32:56 +0300
committerMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-06-14 13:34:09 +0000
commit97562cf882ad33813ce047038ada44eec9813f58 (patch)
tree77b4ad06c93a77c05edb528e182c88e4179aaa5b /tests/test_cps.py
parente05c376573b67f72a5b8df931ecce0b18841f540 (diff)
added CPS changes in anchor
Issue-ID: TEST-395 Signed-off-by: Alexey Aleynikov <alexey.aleynikov@telekom.com> Change-Id: I425550bcbfa0b7a3aaba32ecce9c11b9556148a1
Diffstat (limited to 'tests/test_cps.py')
-rw-r--r--tests/test_cps.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_cps.py b/tests/test_cps.py
index 2e0d0e4..a62b53f 100644
--- a/tests/test_cps.py
+++ b/tests/test_cps.py
@@ -185,21 +185,21 @@ def test_anchor_get_node(mock_send_message_json):
mock_send_message_json.assert_called_once()
url = mock_send_message_json.call_args[0][2]
assert "xpath=test-xpath" in url
- assert "include-descendants=False" in url
+ assert "descendants=0" in url
mock_send_message_json.reset_mock()
- anchor.get_node("test-xpath-2", include_descendants=True)
+ anchor.get_node("test-xpath-2", descendants=-1)
mock_send_message_json.assert_called_once()
url = mock_send_message_json.call_args[0][2]
assert "xpath=test-xpath-2" in url
- assert "include-descendants=True" in url
+ assert "descendants=-1" in url
mock_send_message_json.reset_mock()
- anchor.get_node("test-xpath-3", include_descendants=False)
+ anchor.get_node("test-xpath-3", descendants=2)
mock_send_message_json.assert_called_once()
url = mock_send_message_json.call_args[0][2]
assert "xpath=test-xpath-3" in url
- assert "include-descendants=False" in url
+ assert "descendants=2" in url
@mock.patch("onapsdk.cps.Anchor.send_message")
def test_anchor_update_node(mock_send_message):