mirror of
https://github.com/juanfont/headscale.git
synced 2025-09-20 17:53:11 +02:00
update cli and oauth tests for users with email
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
d8adb728c0
commit
1e224d4a9f
@ -132,6 +132,7 @@ func TestOIDCAuthenticationPingAll(t *testing.T) {
|
||||
{
|
||||
Id: 1,
|
||||
Name: "user1",
|
||||
Email: "user1@test.no",
|
||||
},
|
||||
{
|
||||
Id: 2,
|
||||
@ -143,6 +144,7 @@ func TestOIDCAuthenticationPingAll(t *testing.T) {
|
||||
{
|
||||
Id: 3,
|
||||
Name: "user2",
|
||||
Email: "user2@test.no",
|
||||
},
|
||||
{
|
||||
Id: 4,
|
||||
@ -262,6 +264,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 1,
|
||||
Name: "user1",
|
||||
Email: "user1@test.no",
|
||||
},
|
||||
{
|
||||
Id: 2,
|
||||
@ -273,6 +276,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 3,
|
||||
Name: "user2",
|
||||
Email: "user2@test.no",
|
||||
},
|
||||
{
|
||||
Id: 4,
|
||||
@ -297,6 +301,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 1,
|
||||
Name: "user1",
|
||||
Email: "user1@test.no",
|
||||
},
|
||||
{
|
||||
Id: 2,
|
||||
@ -307,6 +312,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 3,
|
||||
Name: "user2",
|
||||
Email: "user2@test.no",
|
||||
},
|
||||
{
|
||||
Id: 4,
|
||||
@ -359,6 +365,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 1,
|
||||
Name: "user1",
|
||||
Email: "user1@test.no",
|
||||
},
|
||||
{
|
||||
Id: 2,
|
||||
@ -369,6 +376,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 3,
|
||||
Name: "user2",
|
||||
Email: "user2@test.no",
|
||||
},
|
||||
{
|
||||
Id: 4,
|
||||
@ -423,6 +431,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 1,
|
||||
Name: "user1.headscale.net",
|
||||
Email: "user1.headscale.net@test.no",
|
||||
},
|
||||
{
|
||||
Id: 2,
|
||||
@ -433,6 +442,7 @@ func TestOIDC024UserCreation(t *testing.T) {
|
||||
{
|
||||
Id: 3,
|
||||
Name: "user2.headscale.net",
|
||||
Email: "user2.headscale.net@test.no",
|
||||
},
|
||||
{
|
||||
Id: 4,
|
||||
|
@ -137,6 +137,7 @@ func TestUserCommand(t *testing.T) {
|
||||
{
|
||||
Id: 1,
|
||||
Name: "user1",
|
||||
Email: "user1@test.no",
|
||||
},
|
||||
}
|
||||
|
||||
@ -163,6 +164,7 @@ func TestUserCommand(t *testing.T) {
|
||||
{
|
||||
Id: 1,
|
||||
Name: "user1",
|
||||
Email: "user1@test.no",
|
||||
},
|
||||
}
|
||||
|
||||
@ -201,6 +203,7 @@ func TestUserCommand(t *testing.T) {
|
||||
{
|
||||
Id: 2,
|
||||
Name: "newname",
|
||||
Email: "user2@test.no",
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user