Update tc0002_sync_list_validation.py

* Update test case for when 'sync_root_files' override is being used when 'sync_list' is in use
This commit is contained in:
abraunegg 2026-03-13 13:37:18 +11:00
commit 6dd4dba852

View file

@ -161,6 +161,12 @@ class TestCase0002SyncListValidation(E2ETestCase):
r"^(?:DEBUG:\s+)?Local parent directory should be retained due to 'sync_list' inclusion: (.+)$"
),
),
(
"retain_sync_root_file",
re.compile(
r"^(?:DEBUG:\s+)?Path retained due to 'sync_root_files' override for logical root file: (.+)$"
),
),
(
"upload_file",
re.compile(r"^(?:DEBUG:\s+)?Uploading new file: (.+?) \.\.\."),
@ -1457,24 +1463,28 @@ class TestCase0002SyncListValidation(E2ETestCase):
),
SyncListScenario(
scenario_id="SL-0023",
description="sync_root_files true does not retain non-root sibling files under fixture when only Projects is included",
description="sync_root_files true retains logical root files alongside included Projects subtree",
sync_list=[
f"!/{FIXTURE_ROOT_NAME}/Projects/Audio",
f"!/{FIXTURE_ROOT_NAME}/Projects/Video",
f"/{FIXTURE_ROOT_NAME}/Projects",
],
allowed_exact=[
f"{FIXTURE_ROOT_NAME}/README.txt",
f"{FIXTURE_ROOT_NAME}/loose.bin",
],
allowed_prefixes=[f"{FIXTURE_ROOT_NAME}/Projects"],
forbidden_prefixes=[
f"{FIXTURE_ROOT_NAME}/Projects/Audio",
f"{FIXTURE_ROOT_NAME}/Projects/Video",
],
required_processed=[
f"{FIXTURE_ROOT_NAME}/README.txt",
f"{FIXTURE_ROOT_NAME}/loose.bin",
f"{FIXTURE_ROOT_NAME}/Projects/Code/JOBXYZ/Exports/file.wav",
f"{FIXTURE_ROOT_NAME}/Projects/Code/JOBXYZ/Source/main.txt",
],
required_skipped=[
f"{FIXTURE_ROOT_NAME}/README.txt",
f"{FIXTURE_ROOT_NAME}/loose.bin",
f"{FIXTURE_ROOT_NAME}/Projects/Audio",
f"{FIXTURE_ROOT_NAME}/Projects/Video",
f"{FIXTURE_ROOT_NAME}/Backup",