fix(server): adapt KubernetesClient test
Seems that we need to explicitly load the `Application` configuration,
otherwise Spring Boot auto-configuration doesn't kick in.
@@ -20,6 +20,8 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.ActiveProfiles;
+import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -33,6 +35,12 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
"spring.main.banner-mode = off"
}
)
+@ActiveProfiles("test")
+@ContextConfiguration(
+ classes = {
+ Application.class
+ }
+)
public class KubernetesClientITCase {
