Skip to content

Commit

Permalink
Merge pull request #8766 from OpenMined/aziz/integration_tests_local
Browse files Browse the repository at this point in the history
enable local folder in integration tests
  • Loading branch information
abyesilyurt authored Apr 30, 2024
2 parents 9a3b4d7 + b8a64d1 commit a6ce0a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions tests/integration/local/twin_api_sync_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# stdlib
from secrets import token_hex
import sys

# third party
import pytest
Expand Down Expand Up @@ -100,6 +101,8 @@ def private_function(context) -> str:
return 42


@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
@pytest.mark.local_node
def test_twin_api_integration(full_high_worker, full_low_worker):
low_client = full_low_worker.login(
email="[email protected]", password="changethis"
Expand Down Expand Up @@ -165,6 +168,8 @@ def compute(query):
), "Should not be able to access private function on low side."


@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
@pytest.mark.local_node
def test_function_error(full_low_worker) -> None:
root_domain_client = full_low_worker.login(
email="[email protected]", password="changethis"
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ setenv =
EMULATION = {env:EMULATION:false}
HAGRID_ART = false
PYTHONIOENCODING = utf-8
PYTEST_MODULES = {env:PYTEST_MODULES:frontend container_workload network}
PYTEST_MODULES = {env:PYTEST_MODULES:frontend container_workload network local}
commands =
bash -c "whoami; id;"

Expand Down Expand Up @@ -620,7 +620,7 @@ setenv =
ORCHESTRA_DEPLOYMENT_TYPE = {env:ORCHESTRA_DEPLOYMENT_TYPE:k8s}
NODE_PORT = {env:NODE_PORT:9082}
GITHUB_CI = {env:GITHUB_CI:false}
PYTEST_MODULES = {env:PYTEST_MODULES:frontend container_workload}
PYTEST_MODULES = {env:PYTEST_MODULES:frontend container_workload local}
SYFT_BASE_IMAGE_REGISTRY = {env:SYFT_BASE_IMAGE_REGISTRY:k3d-registry.localhost:5800}
ASSOCIATION_REQUEST_AUTO_APPROVAL = {env:ASSOCIATION_REQUEST_AUTO_APPROVAL:true}
commands =
Expand Down

0 comments on commit a6ce0a7

Please sign in to comment.