Skip to content

Commit

Permalink
Fix: Paths to fake data were broken by refactoring
Browse files Browse the repository at this point in the history
This fixes the relative paths to the fake data files and directories.
  • Loading branch information
hoh committed Mar 6, 2024
1 parent c7a2bf9 commit bd1a019
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/aleph/vm/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit bd1a019

Please sign in to comment.