fix(test): add tenant-in-path storage test (#11292)

part of kestra-io/storage-s3#166
This commit is contained in:
brian-mulier-p
2025-09-15 16:49:02 +02:00
committed by GitHub
parent a315bd0e1c
commit 7feb571fb3

View File

@@ -663,6 +663,14 @@ public abstract class StorageTestSuite {
put(tenantId, prefix);
}
@Test
void put_PathWithTenantStringInIt() throws Exception {
String tenantId = IdUtils.create();
String prefix = tenantId + "/" + IdUtils.create();
put(tenantId, prefix);
}
@Test
void putFromAnotherFile() throws Exception {
String prefix = IdUtils.create();
@@ -982,6 +990,14 @@ public abstract class StorageTestSuite {
deleteByPrefix(prefix, tenantId);
}
@Test
void deleteByPrefix_PathWithTenantStringInIt() throws Exception {
String tenantId = IdUtils.create();
String prefix = tenantId + "/" + IdUtils.create();
deleteByPrefix(prefix, tenantId);
}
@Test
void deleteByPrefixNotFound() throws URISyntaxException, IOException {
String prefix = IdUtils.create();