mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
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:
parent
f87b1f4839
commit
6dd4dba852
1 changed files with 13 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue