We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6081647 commit b44a622Copy full SHA for b44a622
test/service-test-utils/src/main/java/software/amazon/awssdk/testutils/service/S3BucketUtils.java
@@ -64,7 +64,8 @@ public static String temporaryBucketName(Class<?> clz) {
64
* @return an s3 bucket name
65
*/
66
public static String temporaryBucketName(String prefix) {
67
- String bucketName = lowerCase(prefix) + "-" + lowerCase(USER_NAME.getStringValueOrThrow()) + "-" + RANDOM.nextInt(10000);
+ String bucketName =
68
+ lowerCase(prefix) + "-" + lowerCase(USER_NAME.getStringValueOrThrow()).replace("_", "-") + "-" + RANDOM.nextInt(10000);
69
if (bucketName.length() > 63) {
70
throw new RuntimeException("S3 buckets can only be 63 chars in length, try a shorter prefix");
71
}
0 commit comments