From f41acfc9661ac6e7ef6e660d8d031babec3d3333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20L=C3=A9onardi?= Date: Fri, 6 Oct 2023 13:44:55 +0000 Subject: [PATCH] library sync tests --- tests/data/sample_module/connector.json | 26 +++++++++++++++++++++++++ tests/scripts/test_sync_library.py | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/data/sample_module/connector.json diff --git a/tests/data/sample_module/connector.json b/tests/data/sample_module/connector.json new file mode 100644 index 0000000..fe78793 --- /dev/null +++ b/tests/data/sample_module/connector.json @@ -0,0 +1,26 @@ +{ + "arguments": { + "$schema": "https://json-schema.org/draft-07/schema#", + "properties": { + "rule_filter": { + "type": "string", + "description": "Some description" + } + }, + "type": "object", + "title": "Connector configuration" + }, + "description": "Sekoia: connecting... things", + "docker_parameters": "connector", + "name": "Connector", + "results": { + "$schema": "https://json-schema.org/draft-07/schema#", + "properties": { + }, + "required": [ + ], + "title": "Results", + "type": "object" + }, + "uuid": "667f7e89-d907-4086-a578-a2324c9a277a" +} diff --git a/tests/scripts/test_sync_library.py b/tests/scripts/test_sync_library.py index 8a2f961..11ed1c9 100644 --- a/tests/scripts/test_sync_library.py +++ b/tests/scripts/test_sync_library.py @@ -39,7 +39,7 @@ def trigger(): @pytest.fixture def connector(): - with open("tests/data/sample_module/connector_sekoiaio_.json") as f: + with open("tests/data/sample_module/connector.json") as f: connector = json.load(f) return connector