Skip to content

Commit b1111a5

Browse files
committed
WIP: Fix tests with failing downloads
1 parent 88cafdf commit b1111a5

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

tests/supervisor/test_checkpayment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ async def compute_required_flow(executions):
149149
async def test_not_enough_flow(mocker, fake_instance_content):
150150
mocker.patch.object(settings, "ALLOW_VM_NETWORKING", False)
151151
mocker.patch.object(settings, "PAYMENT_RECEIVER_ADDRESS", "0xD39C335404a78E0BDCf6D50F29B86EFd57924288")
152+
mocker.patch.object(settings, "IPFS_SERVER", "https://ipfs.io/ipfs")
152153
mock_community_wallet_address = "0x23C7A99d7AbebeD245d044685F1893aeA4b5Da90"
153154
mocker.patch("aleph.vm.orchestrator.tasks.get_community_wallet_address", return_value=mock_community_wallet_address)
154155

tests/supervisor/test_execution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ async def test_create_execution(mocker):
3333
mock_settings.FAKE_DATA_PROGRAM = mock_settings.BENCHMARK_FAKE_DATA_PROGRAM
3434
mock_settings.ALLOW_VM_NETWORKING = False
3535
mock_settings.USE_JAILER = False
36+
mock_settings.IPFS_SERVER = "https://ipfs.io/ipfs"
3637

3738
logging.basicConfig(level=logging.DEBUG)
3839
mock_settings.PRINT_SYSTEM_LOGS = True
@@ -78,6 +79,7 @@ async def test_create_execution_online(vm_hash: ItemHash = None):
7879
"""
7980

8081
vm_hash = vm_hash or settings.CHECK_FASTAPI_VM_ID
82+
settings.IPFS_SERVER = "https://ipfs.io/ipfs"
8183

8284
# Ensure that the settings are correct and required files present.
8385
settings.setup()

tests/supervisor/test_instance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ async def test_create_instance():
5555
# settings.FAKE_INSTANCE_MESSAGE
5656
settings.ALLOW_VM_NETWORKING = True
5757
settings.USE_JAILER = True
58+
settings.IPFS_SERVER = "https://ipfs.io/ipfs"
5859

5960
logging.basicConfig(level=logging.DEBUG)
6061
settings.PRINT_SYSTEM_LOGS = True

tests/supervisor/test_qemu_instance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ async def test_create_qemu_instance_online():
112112
settings.ENABLE_CONFIDENTIAL_COMPUTING = False
113113
settings.ALLOW_VM_NETWORKING = True
114114
settings.USE_JAILER = False
115+
settings.IPFS_SERVER = "https://ipfs.io/ipfs"
115116

116117
logging.basicConfig(level=logging.DEBUG)
117118

0 commit comments

Comments
 (0)