forked from TrueCloudLab/certificates
Add new test case with a version in the opaque string.
This commit is contained in:
parent
d2581489a3
commit
505b1f3678
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ func Test_parseKeyName(t *testing.T) {
|
|||
wantErr bool
|
||||
}{
|
||||
{"ok", args{"azurekms:name=my-key;vault=my-vault?version=my-version"}, "my-vault", "my-key", "my-version", false},
|
||||
{"ok opaque version", args{"azurekms:name=my-key;vault=my-vault;version=my-version"}, "my-vault", "my-key", "my-version", false},
|
||||
{"ok no version", args{"azurekms:name=my-key;vault=my-vault"}, "my-vault", "my-key", "", false},
|
||||
{"fail scheme", args{"azure:name=my-key;vault=my-vault"}, "", "", "", true},
|
||||
{"fail parse uri", args{"azurekms:name=%ZZ;vault=my-vault"}, "", "", "", true},
|
||||
|
|
Loading…
Reference in a new issue