Skip to content

Commit

Permalink
Truncate excessively large log output in large collections
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Aug 8, 2022
1 parent 09b849e commit 90a84f3
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -52,6 +54,11 @@ trait S3Spec
implicit override val generatorDrivenConfig: PropertyCheckConfiguration =
PropertyCheckConfiguration(minSuccessful = 1, minSize = 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)
Expand Down

0 comments on commit 90a84f3

Please sign in to comment.