|
4 | 4 | import com.github.containersolutions.operator.sample.TestCustomResourceSpec;
|
5 | 5 | import io.fabric8.kubernetes.api.model.ConfigMap;
|
6 | 6 | import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
|
7 |
| -import io.fabric8.kubernetes.client.utils.Serialization; |
8 | 7 | import org.junit.jupiter.api.*;
|
9 | 8 | import org.slf4j.Logger;
|
10 | 9 | import org.slf4j.LoggerFactory;
|
11 | 10 |
|
12 |
| -import java.io.IOException; |
13 |
| -import java.io.InputStream; |
14 | 11 | import java.util.concurrent.TimeUnit;
|
15 | 12 |
|
16 | 13 | import static com.github.containersolutions.operator.IntegrationTestSupport.TEST_NAMESPACE;
|
17 | 14 | import static org.assertj.core.api.Assertions.assertThat;
|
18 | 15 | import static org.awaitility.Awaitility.await;
|
19 | 16 |
|
20 | 17 | @TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
21 |
| -public class IntegrationTest { |
| 18 | +public class ControllerExecutionIT { |
22 | 19 |
|
23 |
| - private final static Logger log = LoggerFactory.getLogger(IntegrationTest.class); |
| 20 | + private final static Logger log = LoggerFactory.getLogger(ControllerExecutionIT.class); |
24 | 21 | private IntegrationTestSupport integrationTestSupport = new IntegrationTestSupport();
|
25 | 22 |
|
26 | 23 | @BeforeAll
|
@@ -67,12 +64,4 @@ public void configMapGetsCreatedForTestCustomResource() {
|
67 | 64 | assertThat(cr.getStatus().getConfigMapStatus()).isEqualTo("ConfigMap Ready");
|
68 | 65 | });
|
69 | 66 | }
|
70 |
| - |
71 |
| - private <T> T loadYaml(Class<T> clazz, String yaml) { |
72 |
| - try (InputStream is = getClass().getResourceAsStream(yaml)) { |
73 |
| - return Serialization.unmarshal(is, clazz); |
74 |
| - } catch (IOException ex) { |
75 |
| - throw new IllegalStateException("Cannot find yaml on classpath: " + yaml); |
76 |
| - } |
77 |
| - } |
78 | 67 | }
|
0 commit comments