saving secrets in keyvault (#2200)

This commit is contained in:
Cheick Keita
2022-07-28 12:12:47 -07:00
committed by GitHub
parent 25242f1ab9
commit 36d36cdfaa
5 changed files with 31 additions and 11 deletions

View File

@ -43,11 +43,11 @@ namespace Tests {
public static Gen<ISecret<T>> ISecret<T>() {
if (typeof(T) == typeof(string)) {
return Arb.Generate<string>().Select(s => (ISecret<T>)new SecretValue<string>(s));
return Arb.Generate<string>().Select(s => (ISecret<T>)new SecretAddress<string>(new Uri("http://test")));
}
if (typeof(T) == typeof(GithubAuth)) {
return Arb.Generate<GithubAuth>().Select(s => (ISecret<T>)new SecretValue<GithubAuth>(s));
return Arb.Generate<GithubAuth>().Select(s => (ISecret<T>)new SecretAddress<T>(new Uri("http://test")));
} else {
throw new Exception($"Unsupported secret type {typeof(T)}");
}