mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-02 14:07:47 +09:00
types/authkey: include user object in response (#2542)
* types/authkey: include user object, not string Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * make preauthkeys use id Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * changelog Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * integration: wire up user id for auth keys Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> --------- Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
@@ -51,7 +51,7 @@ func TestHeadscale(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("create-user", func(t *testing.T) {
|
||||
err := scenario.CreateUser(user)
|
||||
_, err := scenario.CreateUser(user)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create user: %s", err)
|
||||
}
|
||||
@@ -62,7 +62,7 @@ func TestHeadscale(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("create-auth-key", func(t *testing.T) {
|
||||
_, err := scenario.CreatePreAuthKey(user, true, false)
|
||||
_, err := scenario.CreatePreAuthKey(1, true, false)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create preauthkey: %s", err)
|
||||
}
|
||||
@@ -100,7 +100,7 @@ func TestTailscaleNodesJoiningHeadcale(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("create-user", func(t *testing.T) {
|
||||
err := scenario.CreateUser(user)
|
||||
_, err := scenario.CreateUser(user)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create user: %s", err)
|
||||
}
|
||||
@@ -122,7 +122,7 @@ func TestTailscaleNodesJoiningHeadcale(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("join-headscale", func(t *testing.T) {
|
||||
key, err := scenario.CreatePreAuthKey(user, true, false)
|
||||
key, err := scenario.CreatePreAuthKey(1, true, false)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create preauthkey: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user