public class S3PackageStorageTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
A_BUCKET |
static String |
A_PATH |
private static String |
PACKAGE_DESCRIPTOR |
private static String |
PACKAGE_NAME |
static String |
PACKAGE_PATH |
static String |
PREFIX |
| Constructor and Description |
|---|
S3PackageStorageTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
getDownloadUrl_withValidUrl_returnsUrl()
Tests that getting a download URL with a valid URL returns an URL.
|
void |
getPrefix_shouldBeSetToPrefix()
Tests whether the prefix is correct.
|
void |
list_withMixedContent_onlyListsPackages()
Tests listing mixed content.
|
private Iterable<io.minio.Result<io.minio.messages.Item>> |
setToResultIterable(Set<String> objects)
Turns a result set to an iterable.
|
private Set<String> |
validPackageListing()
Returns a set of valid package names.
|
private Set<String> |
validPackageReducedListing()
Returns a reduced set of valid package names.
|
public static final String A_BUCKET
public static final String PREFIX
public static final String A_PATH
private static final String PACKAGE_NAME
public static final String PACKAGE_PATH
private static final String PACKAGE_DESCRIPTOR
public void getPrefix_shouldBeSetToPrefix()
public void list_withMixedContent_onlyListsPackages()
public void getDownloadUrl_withValidUrl_returnsUrl()
throws Exception
Exception - shall not occurprivate Iterable<io.minio.Result<io.minio.messages.Item>> setToResultIterable(Set<String> objects)
objects - the objects to be turned to an iterableprivate Set<String> validPackageListing()
Copyright © 2022. All rights reserved.