Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@pytest.fixture(scope="session")
def test_config():
return TestConfig(
image_name="strangebee/thehive:5.5.13",
image_name="strangebee/thehive:5.7.0",
container_name="thehive4py-integration-tester",
user="admin@thehive.local",
password="secret",
Expand Down
12 changes: 8 additions & 4 deletions tests/test_procedure_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ def test_bulk_create_in_alert_and_find(
alert_id=test_alert["_id"], procedures=procedures
)

# TODO: changed the query field from `_id` to `occurDate` because since TheHive version 5.7.0
# the `procedure._id` does not work within queries
fetched_procedures = thehive.procedure.find(
filters=In(
field="_id",
values=[procedure["_id"] for procedure in created_procedures],
field="occurDate",
values=[procedure["occurDate"] for procedure in created_procedures],
)
)
assert sorted(
Expand Down Expand Up @@ -99,10 +101,12 @@ def test_bulk_create_in_case_and_find(
created_procedures = thehive.procedure.bulk_create_in_case(
case_id=test_case["_id"], procedures=procedures
)
# TODO: changed the query field from `_id` to `occurDate` because since TheHive version 5.7.0
# the `procedure._id` does not work within queries
fetched_procedures = thehive.procedure.find(
filters=In(
field="_id",
values=[procedure["_id"] for procedure in created_procedures],
field="occurDate",
values=[procedure["occurDate"] for procedure in created_procedures],
)
)
assert sorted(
Expand Down
Loading