@@ -156,8 +156,8 @@ void testDefaultConfiguration(K3sContainer container) {
156156
157157 String healthResult = healthClient .method (HttpMethod .GET ).retrieve ().bodyToMono (String .class )
158158 .retryWhen (retrySpec ()).block ();
159- String infoResult = infoClient .method (HttpMethod .GET ).retrieve ().bodyToMono (String .class )
160- . retryWhen ( retrySpec ()) .block ();
159+ String infoResult = infoClient .method (HttpMethod .GET ).retrieve ().bodyToMono (String .class ). retryWhen ( retrySpec ())
160+ .block ();
161161
162162 Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
163163 .extractingJsonPathStringValue ("$.components.discoveryComposite.status" ).isEqualTo ("UP" );
@@ -188,55 +188,56 @@ void testDefaultConfiguration(K3sContainer container) {
188188 }
189189
190190 private void assertHealth (String healthResult ) {
191- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathStringValue (
192- "$.components.kubernetes.status" ).isEqualTo ("UP" );
191+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
192+ . extractingJsonPathStringValue ( "$.components.kubernetes.status" ).isEqualTo ("UP" );
193193
194- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathStringValue (
195- "$.components.kubernetes.details.hostIp" ).isNotEmpty ();
194+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
195+ . extractingJsonPathStringValue ( "$.components.kubernetes.details.hostIp" ).isNotEmpty ();
196196
197- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathBooleanValue (
198- "$.components.kubernetes.details.inside" ).isEqualTo (true );
197+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
198+ . extractingJsonPathBooleanValue ( "$.components.kubernetes.details.inside" ).isEqualTo (true );
199199
200- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )).extractingJsonPathStringValue (
201- "$.components.kubernetes.details.labels.app" ).isEqualTo ("spring-cloud-kubernetes-client-discovery-it" );
200+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
201+ .extractingJsonPathStringValue ("$.components.kubernetes.details.labels.app" )
202+ .isEqualTo ("spring-cloud-kubernetes-client-discovery-it" );
202203
203- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathStringValue (
204- "$.components.kubernetes.details.namespace" ).isNotEmpty ();
204+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
205+ . extractingJsonPathStringValue ( "$.components.kubernetes.details.namespace" ).isNotEmpty ();
205206
206- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathStringValue (
207- "$.components.kubernetes.details.nodeName" ).isNotEmpty ();
207+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
208+ . extractingJsonPathStringValue ( "$.components.kubernetes.details.nodeName" ).isNotEmpty ();
208209
209- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathStringValue (
210- "$.components.kubernetes.details.podIp" ).isNotEmpty ();
210+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
211+ . extractingJsonPathStringValue ( "$.components.kubernetes.details.podIp" ).isNotEmpty ();
211212
212- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathStringValue (
213- "$.components.kubernetes.details.podName" ).isNotEmpty ();
213+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
214+ . extractingJsonPathStringValue ( "$.components.kubernetes.details.podName" ).isNotEmpty ();
214215
215- Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult )). extractingJsonPathStringValue (
216- "$.components.kubernetes.details.serviceAccount" ).isNotEmpty ();
216+ Assertions .assertThat (BASIC_JSON_TESTER .from (healthResult ))
217+ . extractingJsonPathStringValue ( "$.components.kubernetes.details.serviceAccount" ).isNotEmpty ();
217218 }
218219
219220 private void assertInfo (String infoResult ) {
220- Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue (
221- "$.kubernetes.hostIp" ) .isNotEmpty ();
221+ Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue ("$.kubernetes.hostIp" )
222+ .isNotEmpty ();
222223
223- Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathBooleanValue (
224- "$.kubernetes.inside" ) .isEqualTo (true );
224+ Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathBooleanValue ("$.kubernetes.inside" )
225+ .isEqualTo (true );
225226
226- Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )). extractingJsonPathStringValue (
227- "$.kubernetes.namespace" ).isNotEmpty ();
227+ Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult ))
228+ . extractingJsonPathStringValue ( "$.kubernetes.namespace" ).isNotEmpty ();
228229
229- Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue (
230- "$.kubernetes.nodeName" ) .isNotEmpty ();
230+ Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue ("$.kubernetes.nodeName" )
231+ .isNotEmpty ();
231232
232- Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue (
233- "$.kubernetes.podIp" ) .isNotEmpty ();
233+ Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue ("$.kubernetes.podIp" )
234+ .isNotEmpty ();
234235
235- Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue (
236- "$.kubernetes.podName" ) .isNotEmpty ();
236+ Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )).extractingJsonPathStringValue ("$.kubernetes.podName" )
237+ .isNotEmpty ();
237238
238- Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult )). extractingJsonPathStringValue (
239- "$.kubernetes.serviceAccount" ).isNotEmpty ();
239+ Assertions .assertThat (BASIC_JSON_TESTER .from (infoResult ))
240+ . extractingJsonPathStringValue ( "$.kubernetes.serviceAccount" ).isNotEmpty ();
240241 }
241242
242243 private WebClient .Builder builder () {
0 commit comments