CLI to take days as a unit of time (#20477)

* CLI to take days as a unit of time

* CL
This commit is contained in:
Hamid Ghaf
2023-05-04 08:03:37 -07:00
committed by GitHub
parent b81a94b80c
commit fb9324c3c9
3 changed files with 11 additions and 2 deletions

View File

@@ -71,6 +71,12 @@ func TestTokenCreateCommand_Run(t *testing.T) {
"not present in secret",
1,
},
{
"ttl",
[]string{"-ttl", "1d", "-explicit-max-ttl", "2d"},
"token",
0,
},
}
t.Run("validations", func(t *testing.T) {