From 6de0bb287da1f331b27f4ba7721e3d62bf6d33d9 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Sun, 18 Aug 2019 13:37:54 +0800 Subject: [PATCH] don't load swagger during tests --- .../gotson/komga/infrastructure/swagger/SwaggerConfiguration.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/swagger/SwaggerConfiguration.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/swagger/SwaggerConfiguration.kt index ec8e874d8..533e580d6 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/swagger/SwaggerConfiguration.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/swagger/SwaggerConfiguration.kt @@ -2,11 +2,13 @@ package org.gotson.komga.infrastructure.swagger import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration +import org.springframework.context.annotation.Profile import org.springframework.security.core.annotation.AuthenticationPrincipal import springfox.documentation.spi.DocumentationType import springfox.documentation.spring.web.plugins.Docket import springfox.documentation.swagger2.annotations.EnableSwagger2 +@Profile("!test") @Configuration @EnableSwagger2 class SwaggerConfiguration {