From 618c84d51e250652869bb777ad36766bba7fc5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wieczorek?= Date: Thu, 16 Jan 2025 20:37:34 +0100 Subject: [PATCH 1/2] tests/unit_tests: sync unit tests after model changes (processed_by_kcidb_bridge field) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes [0] to the model caused unit tests to get out-of-sync with its new state. Tests adjusted in this patch should be kept in sync with Node class from "kernelci/api/models.py" in "kernelci/kernelci-core" repo [1]. [0] https://github.com/kernelci/kernelci-core/pull/2746 [1] https://github.com/kernelci/kernelci-core/blob/ee64d7e4cdaeef2176d9755c9112ff97c8ad8e3a/kernelci/api/models.py#L184 Signed-off-by: Paweł Wieczorek --- tests/unit_tests/test_node_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit_tests/test_node_handler.py b/tests/unit_tests/test_node_handler.py index 51fa97c7..c475fdfd 100644 --- a/tests/unit_tests/test_node_handler.py +++ b/tests/unit_tests/test_node_handler.py @@ -87,6 +87,7 @@ def test_create_node_endpoint(mock_db_create, mock_publish_cloudevent, 'treeid', 'updated', 'user_groups', + 'processed_by_kcidb_bridge', } @@ -247,6 +248,7 @@ def test_get_node_by_id_endpoint(mock_db_find_by_id, 'treeid', 'updated', 'user_groups', + 'processed_by_kcidb_bridge', } From a72965f0537ecbb502abdae4288b53d764c90ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wieczorek?= Date: Wed, 13 Aug 2025 11:14:31 +0200 Subject: [PATCH 2/2] tests/unit_tests: sync unit tests after model changes (retry_counter field) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes [0] to the model caused unit tests to get out-of-sync with its new state. Tests adjusted in this patch should be kept in sync with Node class from "kernelci/api/models.py" in "kernelci/kernelci-core" repo [1]. [0] https://github.com/kernelci/kernelci-core/pull/2927 [1] https://github.com/kernelci/kernelci-core/blob/ee64d7e4cdaeef2176d9755c9112ff97c8ad8e3a/kernelci/api/models.py#L184 Signed-off-by: Paweł Wieczorek --- tests/unit_tests/test_node_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit_tests/test_node_handler.py b/tests/unit_tests/test_node_handler.py index c475fdfd..80ffd219 100644 --- a/tests/unit_tests/test_node_handler.py +++ b/tests/unit_tests/test_node_handler.py @@ -88,6 +88,7 @@ def test_create_node_endpoint(mock_db_create, mock_publish_cloudevent, 'updated', 'user_groups', 'processed_by_kcidb_bridge', + 'retry_counter', } @@ -249,6 +250,7 @@ def test_get_node_by_id_endpoint(mock_db_find_by_id, 'updated', 'user_groups', 'processed_by_kcidb_bridge', + 'retry_counter', }