mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Merge branch 'master' of https://github.com/hashicorp/vault into vishalvault
This commit is contained in:
commit
3a3270028b
@ -80,6 +80,8 @@ func TestCopy_response(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHash(t *testing.T) {
|
||||
now := time.Now().UTC()
|
||||
|
||||
cases := []struct {
|
||||
Input interface{}
|
||||
Output interface{}
|
||||
@ -116,6 +118,24 @@ func TestHash(t *testing.T) {
|
||||
"foo",
|
||||
"foo",
|
||||
},
|
||||
{
|
||||
&logical.Auth{
|
||||
LeaseOptions: logical.LeaseOptions{
|
||||
Lease: 1 * time.Hour,
|
||||
LeaseIssue: now,
|
||||
},
|
||||
|
||||
ClientToken: "foo",
|
||||
},
|
||||
&logical.Auth{
|
||||
LeaseOptions: logical.LeaseOptions{
|
||||
Lease: 1 * time.Hour,
|
||||
LeaseIssue: now,
|
||||
},
|
||||
|
||||
ClientToken: "sha1:0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user