API key generator, using YAML format instead of hand rolled parser

This commit is contained in:
David Zhao
2020-12-27 00:01:19 -08:00
parent c489ca570b
commit 353f35443a
7 changed files with 105 additions and 27 deletions
+3 -3
View File
@@ -22,10 +22,10 @@ func TestFileBasedKeyProvider(t *testing.T) {
os.Remove(f.Name())
}()
f.WriteString("key1:secret1\n")
f.WriteString(" key2: secret2 \r\n")
f.WriteString("key1: secret1\n")
f.WriteString("key2: secret2 \r\n")
f.WriteString("\n")
f.WriteString("key3 : secret3")
f.WriteString("key3: secret3")
f.Close()