feat: sync latest ARR implementation

This commit is contained in:
Wyndham ARR
2026-07-31 15:11:42 +08:00
parent d6f8a747fa
commit bf7939dd1a
185 changed files with 17527 additions and 2260 deletions

View File

@@ -145,6 +145,18 @@ class ObjectKeyPolicyTests(unittest.TestCase):
with self.subTest(prefix=prefix), self.assertRaises(ValueError):
ObjectKeyPolicy(prefix)
def test_booking_source_uses_a_canonical_private_xlsx_key(self):
policy = ObjectKeyPolicy("arr/test")
address = ObjectAddress("booking-job-1", 1, "committed", "booking_source")
key = policy.build(address)
self.assertEqual(
key,
"arr/test/jobs/booking-job-1/attempts/0001/committed/booking_source/booking-source.xlsx",
)
self.assertEqual(policy.parse(key), address)
class ManagedObjectStoreTests(unittest.TestCase):
def setUp(self):