diff --git a/build.sbt b/build.sbt index d488aecd..d47ff64a 100644 --- a/build.sbt +++ b/build.sbt @@ -20,14 +20,14 @@ val scalaLoggingVersion = "3.9.5" val logbackClassicVersion = "1.4.1" val declineVersion = "2.3.0" val pureConfigVersion = "0.17.1" -val scalaTestVersion = "3.2.13" +val scalaTestVersion = "3.2.14" val scalaTestScalaCheckVersion = "3.2.12.0-RC2" val akkaStreamsJson = "0.8.3" val diffxVersion = "0.7.1" val testContainersVersion = "0.40.10" val testContainersJavaVersion = "1.17.3" val scalaCheckVersion = "1.15.5-1-SNAPSHOT" -val scalaCheckOpsVersion = "2.8.1" +val scalaCheckOpsVersion = "2.9.0" val enumeratumVersion = "1.7.0" val organizeImportsVersion = "0.6.0" diff --git a/core-s3/src/test/scala/io/aiven/guardian/kafka/s3/S3Spec.scala b/core-s3/src/test/scala/io/aiven/guardian/kafka/s3/S3Spec.scala index 0bdbb1ad..78fef211 100644 --- a/core-s3/src/test/scala/io/aiven/guardian/kafka/s3/S3Spec.scala +++ b/core-s3/src/test/scala/io/aiven/guardian/kafka/s3/S3Spec.scala @@ -16,6 +16,8 @@ import io.aiven.guardian.akka.AkkaHttpTestKit import io.aiven.guardian.kafka.TestUtils import io.aiven.guardian.kafka.models.ReducedConsumerRecord import org.apache.kafka.clients.producer.ProducerRecord +import org.scalactic.Prettifier +import org.scalactic.SizeLimit import org.scalatest.Ignore import org.scalatest.Tag import org.scalatest.concurrent.ScalaFutures @@ -52,6 +54,11 @@ trait S3Spec implicit override val generatorDrivenConfig: PropertyCheckConfiguration = PropertyCheckConfiguration(minSuccessful = 1) + /** Due to the fact that we have to deal with massively generated collections when testing against S3, we override the + * default prettifier with one that truncates so we don't generate ridiculously large logs + */ + implicit val prettifier: Prettifier = Prettifier.truncateAt(SizeLimit(10)) + val s3Settings: S3Settings implicit lazy val s3Attrs: Attributes = S3Attributes.settings(s3Settings)