We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ac5b7 commit 052f597Copy full SHA for 052f597
tests/KubernetesClientConfigurationTests.cs
@@ -23,6 +23,16 @@ public class KubernetesClientConfigurationTests
23
/// </summary>
24
private static readonly string kubeConfigUserPassword = "assets/kubeconfig.user-pass.yml";
25
26
+ /// <summary>
27
+ /// The configuration file is not present. An KubeConfigException should be thrown
28
+ /// </summary>
29
+ [Fact]
30
+ public void ConfigurationFileNotFound()
31
+ {
32
+ var fi = new FileInfo("/path/to/nowhere");
33
+ Assert.Throws<k8s.Exceptions.KubeConfigException>(() => new KubernetesClientConfiguration(fi));
34
+ }
35
+
36
/// <summary>
37
/// Checks Host is loaded from the default configuration file
38
0 commit comments