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:
Kristoffer Dalby
2026-01-07 13:45:00 +01:00
committed by Kristoffer Dalby
parent db6882b5f5
commit 4dd1b49a35
2 changed files with 6 additions and 16 deletions

View File

@@ -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)