-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
324 - Use the official thehive v5.3.0 for integration tests
- Loading branch information
Showing
6 changed files
with
86 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
import pytest | ||
|
||
from tests.utils import TestConfig, reinit_hive_container, spawn_hive_container | ||
from tests.utils import TestConfig, reset_hive_instance, spawn_hive_container | ||
from thehive4py.client import TheHiveApi | ||
from thehive4py.helpers import now_to_ts | ||
from thehive4py.types.alert import InputAlert, OutputAlert | ||
|
@@ -23,8 +23,8 @@ | |
@pytest.fixture(scope="session") | ||
def test_config(): | ||
return TestConfig( | ||
image_name="kamforka/thehive4py-integrator:thehive-5.2.11", | ||
container_name="thehive4py-integration-tests", | ||
image_name="strangebee/thehive:5.3.0", | ||
container_name="thehive4py-integration-tester", | ||
user="[email protected]", | ||
password="secret", | ||
admin_org="admin", | ||
|
@@ -34,8 +34,8 @@ def test_config(): | |
|
||
|
||
@pytest.fixture(scope="function", autouse=True) | ||
def init_hive_container(test_config: TestConfig): | ||
reinit_hive_container(test_config=test_config) | ||
def auto_reset_hive_instance(thehive: TheHiveApi, test_config: TestConfig): | ||
reset_hive_instance(hive_url=thehive.session.hive_url, test_config=test_config) | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters