From bd1a01947533495d16b2169debbbf6b99df79c41 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Wed, 6 Mar 2024 09:51:04 +0100 Subject: [PATCH] Fix: Paths to fake data were broken by refactoring This fixes the relative paths to the fake data files and directories. --- src/aleph/vm/conf.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/aleph/vm/conf.py b/src/aleph/vm/conf.py index 698379930..497e22ff8 100644 --- a/src/aleph/vm/conf.py +++ b/src/aleph/vm/conf.py @@ -257,13 +257,15 @@ class Settings(BaseSettings): # Tests on programs - FAKE_DATA_PROGRAM: Optional[Path] = None - BENCHMARK_FAKE_DATA_PROGRAM = Path(abspath(join(__file__, "../../examples/example_fastapi"))) - - FAKE_DATA_MESSAGE = Path(abspath(join(__file__, "../../examples/program_message_from_aleph.json"))) - FAKE_DATA_DATA: Optional[Path] = Path(abspath(join(__file__, "../../examples/data/"))) - FAKE_DATA_RUNTIME = Path(abspath(join(__file__, "../../runtimes/aleph-debian-11-python/rootfs.squashfs"))) - FAKE_DATA_VOLUME: Optional[Path] = Path(abspath(join(__file__, "../../examples/volumes/volume-venv.squashfs"))) + FAKE_DATA_PROGRAM: Optional[Path] = Path(abspath(join(__file__, "../../../../examples/example_fastapi"))) + BENCHMARK_FAKE_DATA_PROGRAM = Path(abspath(join(__file__, "../../../../examples/example_fastapi"))) + + FAKE_DATA_MESSAGE = Path(abspath(join(__file__, "../../../../examples/program_message_from_aleph.json"))) + FAKE_DATA_DATA: Optional[Path] = Path(abspath(join(__file__, "../../../../examples/data/"))) + FAKE_DATA_RUNTIME = Path(abspath(join(__file__, "../../../../runtimes/aleph-debian-12-python/rootfs.squashfs"))) + FAKE_DATA_VOLUME: Optional[Path] = Path( + abspath(join(__file__, "../../../../examples/volumes/volume-venv.squashfs")) + ) # Tests on instances @@ -279,7 +281,7 @@ class Settings(BaseSettings): description="Identifier used for the 'fake instance' message defined in " "examples/instance_message_from_aleph.json", ) - FAKE_INSTANCE_MESSAGE = Path(abspath(join(__file__, "../../examples/instance_message_from_aleph.json"))) + FAKE_INSTANCE_MESSAGE = Path(abspath(join(__file__, "../../../../examples/instance_message_from_aleph.json"))) CHECK_FASTAPI_VM_ID = "3fc0aa9569da840c43e7bd2033c3c580abb46b007527d6d20f2d4e98e867f7af" LEGACY_CHECK_FASTAPI_VM_ID = "67705389842a0a1b95eaa408b009741027964edc805997475e95c505d642edd8"