Added the file not found test
This commit is contained in:
@@ -23,6 +23,16 @@ namespace k8s.Tests
|
||||
/// </summary>
|
||||
private static readonly string kubeConfigUserPassword = "assets/kubeconfig.user-pass.yml";
|
||||
|
||||
/// <summary>
|
||||
/// The configuration file is not present. An KubeConfigException should be thrown
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ConfigurationFileNotFound()
|
||||
{
|
||||
var fi = new FileInfo("/path/to/nowhere");
|
||||
Assert.Throws<k8s.Exceptions.KubeConfigException>(() => new KubernetesClientConfiguration(fi));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks Host is loaded from the default configuration file
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user