Skip to content

Commit 5fa1cb1

Browse files
committed
Use fixed list of StorageClass values in tests
Exclusion is brittle as new StorageClass values may break tests.
1 parent 82d9b63 commit 5fa1cb1

File tree

1 file changed

+8
-10
lines changed
  • integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its

1 file changed

+8
-10
lines changed

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/S3TestBase.kt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -627,16 +627,14 @@ internal abstract class S3TestBase {
627627

628628
@JvmStatic
629629
protected fun storageClasses(): Stream<StorageClass> {
630-
return StorageClass
631-
.entries
632-
.filter { it != StorageClass.UNKNOWN_TO_SDK_VERSION }
633-
.filter { it != StorageClass.SNOW }
634-
.filter { it != StorageClass.EXPRESS_ONEZONE }
635-
.filter { it != StorageClass.GLACIER }
636-
.filter { it != StorageClass.DEEP_ARCHIVE }
637-
.filter { it != StorageClass.OUTPOSTS }
638-
.map { it }
639-
.stream()
630+
return listOf(
631+
StorageClass.STANDARD,
632+
StorageClass.REDUCED_REDUNDANCY,
633+
StorageClass.STANDARD_IA,
634+
StorageClass.ONEZONE_IA,
635+
StorageClass.INTELLIGENT_TIERING,
636+
StorageClass.GLACIER,
637+
).stream()
640638
}
641639

642640
@JvmStatic

0 commit comments

Comments
 (0)