diff --git a/python/python/tests/test_namespace_integration.py b/python/python/tests/test_namespace_integration.py index 4a7380526..b59c8e29a 100644 --- a/python/python/tests/test_namespace_integration.py +++ b/python/python/tests/test_namespace_integration.py @@ -147,7 +147,12 @@ class TrackingNamespace(LanceNamespace): This simulates a credential rotation system where each call returns new credentials that expire after credential_expires_in_seconds. """ - modified = copy.deepcopy(storage_options) if storage_options else {} + # Start from base storage options (endpoint, region, allow_http, etc.) + # because DirectoryNamespace returns None for storage_options from + # describe_table/declare_table when no credential vendor is configured. + modified = copy.deepcopy(self.base_storage_options) + if storage_options: + modified.update(storage_options) # Increment credentials to simulate rotation modified["aws_access_key_id"] = f"AKID_{count}"