fix: real AP id tests, exact poster key check, exists port, list_movies fake

This commit is contained in:
2026-10-26 01:33:29 +01:00
parent 4cb2972f63
commit 818ab893a1
13 changed files with 395 additions and 80 deletions

View File

@@ -82,6 +82,14 @@ impl ObjectStorage for ObjectStorageAdapter {
Ok(Box::pin(stream))
}
async fn exists(&self, key: &str) -> Result<bool, DomainError> {
match self.store.head(&Path::from(key)).await {
Ok(_) => Ok(true),
Err(object_store::Error::NotFound { .. }) => Ok(false),
Err(e) => Err(DomainError::InfrastructureError(e.to_string())),
}
}
async fn delete(&self, key: &str) -> Result<(), DomainError> {
let path = Path::from(key);
match self.store.delete(&path).await {