-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f487d1d
commit fb3c612
Showing
9 changed files
with
258 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 93 additions & 12 deletions
105
backup-s3/src/test/scala/io/aiven/guardian/kafka/backup/s3/BackupClientSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
backup-s3/src/test/scala/io/aiven/guardian/kafka/backup/s3/MinioBackupClientSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.aiven.guardian.kafka.backup.s3 | ||
|
||
import akka.actor.ActorSystem | ||
import io.aiven.guardian.akka.AnyPropTestKit | ||
import io.aiven.guardian.kafka.s3.MinioS3Test | ||
|
||
class MinioBackupClientSpec | ||
extends AnyPropTestKit(ActorSystem("MinioS3BackupClientSpec")) | ||
with BackupClientSpec | ||
with MinioS3Test { | ||
|
||
/** Since Minio doesn't do DNS name verification we can enable this | ||
*/ | ||
override lazy val useVirtualDotHost: Boolean = true | ||
} |
19 changes: 19 additions & 0 deletions
19
backup-s3/src/test/scala/io/aiven/guardian/kafka/backup/s3/RealS3BackupClientSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.aiven.guardian.kafka.backup.s3 | ||
|
||
import akka.actor.ActorSystem | ||
import akka.stream.alpakka.s3.S3Settings | ||
import io.aiven.guardian.akka.AnyPropTestKit | ||
|
||
import scala.concurrent.duration._ | ||
import scala.language.postfixOps | ||
|
||
class RealS3BackupClientSpec extends AnyPropTestKit(ActorSystem("RealS3BackupClientSpec")) with BackupClientSpec { | ||
override lazy val s3Settings: S3Settings = S3Settings() | ||
|
||
/** Virtual Dot Host in bucket names are disabled because you need an actual DNS certificate otherwise AWS will fail | ||
* on bucket creation | ||
*/ | ||
override lazy val useVirtualDotHost: Boolean = false | ||
override lazy val bucketPrefix: Option[String] = Some("guardian-") | ||
override lazy val enableCleanup: Option[FiniteDuration] = Some(5 seconds) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<configuration> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
<logger name="org.testcontainers" level="INFO"/> | ||
<logger name="com.github.dockerjava" level="WARN"/> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.