Merge branch 'main' into kradalby-patch-2
This commit is contained in:
commit
ef81845deb
3 changed files with 12 additions and 9 deletions
|
@ -426,7 +426,12 @@ func (s *IntegrationCLITestSuite) TestPreAuthKeyCommandWithoutExpiry() {
|
|||
assert.Nil(s.T(), err)
|
||||
|
||||
assert.Len(s.T(), listedPreAuthKeys, 1)
|
||||
assert.True(s.T(), time.Time{}.Equal(listedPreAuthKeys[0].Expiration.AsTime()))
|
||||
|
||||
assert.True(s.T(), listedPreAuthKeys[0].Expiration.AsTime().After(time.Now()))
|
||||
assert.True(
|
||||
s.T(),
|
||||
listedPreAuthKeys[0].Expiration.AsTime().Before(time.Now().Add(time.Minute*70)),
|
||||
)
|
||||
}
|
||||
|
||||
func (s *IntegrationCLITestSuite) TestPreAuthKeyCommandReusableEphemeral() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue