Skip to content

Commit

Permalink
library sync tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a-leonardi committed Oct 6, 2023
1 parent cffb8ea commit f41acfc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions tests/data/sample_module/connector.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion tests/scripts/test_sync_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f41acfc

Please sign in to comment.