mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
fix(test): add tenant-in-path storage test (#11292)
part of kestra-io/storage-s3#166
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user