You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the @EnableKubeAPIServer and @KubeConfig in a parent class, the server does not start and the configuration is also not injected when running a test in a child class. Is this behavior expected?
Minimal reproducible example (see "NOTE" comments)
package com.example;
import io.fabric8.kubeapitest.junit.EnableKubeAPIServer;
import io.fabric8.kubeapitest.junit.KubeConfig;
import org.junit.jupiter.api.Test;
@EnableKubeAPIServer
public class KubeAPIServerTestBase {
@KubeConfig
static String kubeConfigYaml;
@Test
void testBase() {
// NOTE: prints true, logs show that the server is started
System.out.println(kubeConfigYaml != null);
}
}
package com.example;
import org.junit.jupiter.api.Test;
public class KubeAPIServerTest extends KubeAPIServerTestBase {
@Test
void test() {
// NOTE: prints false, logs show that server is NOT started
System.out.println(kubeConfigYaml != null);
}
}