feat: sync latest ARR implementation
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user