File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
main/java/io/kubernetes/client/util
test/java/io/kubernetes/client/util Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ public static ClientBuilder kubeconfig(KubeConfig config) throws IOException {
278
278
279
279
String server = config .getServer ();
280
280
if (server == null ) {
281
- throw new IllegalArgumentException ("No server in kubeconfig" );
281
+ throw new IllegalArgumentException ("No server in kubeconfig" );
282
282
}
283
283
if (!server .contains ("://" )) {
284
284
if (server .contains (":443" )) {
Original file line number Diff line number Diff line change 32
32
import java .io .IOException ;
33
33
import java .nio .file .Files ;
34
34
import java .nio .file .Paths ;
35
-
36
35
import org .junit .Test ;
37
36
38
37
/** Tests for the ConfigBuilder helper class */
@@ -304,10 +303,13 @@ public void testSettingPassphraseForKubeConfigShouldWork() throws IOException {
304
303
305
304
@ Test
306
305
public void testDetectsServerNotSet () {
307
- assertThrows ("No server in kubeconfig" , IllegalArgumentException .class , () -> {
308
- KubeConfig kubeConfigWithoutServer = mock (KubeConfig .class );
306
+ assertThrows (
307
+ "No server in kubeconfig" ,
308
+ IllegalArgumentException .class ,
309
+ () -> {
310
+ KubeConfig kubeConfigWithoutServer = mock (KubeConfig .class );
309
311
310
- ClientBuilder .kubeconfig (kubeConfigWithoutServer );
311
- });
312
+ ClientBuilder .kubeconfig (kubeConfigWithoutServer );
313
+ });
312
314
}
313
315
}
You can’t perform that action at this time.
0 commit comments