mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-29 05:32:01 +02:00
integration: update CLI tests for ID-based preauthkey commands
Remove --user flag from list commands. Change expire command to use --id flag instead of --user and key.
This commit is contained in:
committed by
Kristoffer Dalby
parent
db6882b5f5
commit
4dd1b49a35
@@ -446,10 +446,9 @@ func TestAuthKeyLogoutAndReloginSameUserExpiredKey(t *testing.T) {
|
||||
[]string{
|
||||
"headscale",
|
||||
"preauthkeys",
|
||||
"--user",
|
||||
strconv.FormatUint(userMap[userName].GetId(), 10),
|
||||
"expire",
|
||||
key.GetKey(),
|
||||
"--id",
|
||||
strconv.FormatUint(key.GetId(), 10),
|
||||
})
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user