Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 6bb0510

Browse files
committed
docs: improved readme
1 parent 1bbc8f8 commit 6bb0510

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,30 +64,19 @@ it's [usage in a test](https://github.com/java-operator-sdk/jenvtest/blob/main/c
6464

6565
```java
6666
class KubeApiServerTest {
67-
67+
6868
@Test
69-
void trivialCase() {
70-
testWithAPIServer(new KubeAPIServer());
71-
}
72-
73-
@Test
74-
void apiServerWithSpecificVersion() {
75-
testWithAPIServer(new KubeAPIServer(
76-
KubeAPIServerConfigBuilder.anAPIServerConfig()
77-
.withApiServerVersion("1.26.0")
78-
.build()));
79-
}
80-
81-
82-
void testWithAPIServer(KubeAPIServer kubeApi) {
69+
void apiServerTest() {
70+
var kubeApi = new KubeAPIServer();
8371
kubeApi.start();
8472

85-
var client = new KubernetesClientBuilder().build();
73+
var client = createClient(kubeApi.getKubeConfigYaml());
74+
8675
client.resource(TestUtils.testConfigMap()).create();
76+
8777
var cm = client.resource(TestUtils.testConfigMap()).get();
88-
8978
Assertions.assertThat(cm).isNotNull();
90-
79+
9180
kubeApi.stop();
9281
}
9382
}

0 commit comments

Comments
 (0)