1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-09-20 17:53:11 +02:00

index by test email

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2024-12-18 16:46:35 +01:00
parent 1e224d4a9f
commit 3ffc826461
No known key found for this signature in database

View File

@ -119,8 +119,8 @@ func TestACLHostsInNetMapTable(t *testing.T) {
}, },
}, },
}, want: map[string]int{ }, want: map[string]int{
"user1": 3, // ns1 + ns2 "user1@test.no": 3, // ns1 + ns2
"user2": 3, // ns2 + ns1 "user2@test.no": 3, // ns2 + ns1
}, },
}, },
// Test that when we have two users, which cannot see // Test that when we have two users, which cannot see
@ -145,8 +145,8 @@ func TestACLHostsInNetMapTable(t *testing.T) {
}, },
}, },
}, want: map[string]int{ }, want: map[string]int{
"user1": 1, "user1@test.no": 1,
"user2": 1, "user2@test.no": 1,
}, },
}, },
// Test that when we have two users, with ACLs and they // Test that when we have two users, with ACLs and they
@ -181,8 +181,8 @@ func TestACLHostsInNetMapTable(t *testing.T) {
}, },
}, },
}, want: map[string]int{ }, want: map[string]int{
"user1": 3, "user1@test.no": 3,
"user2": 3, "user2@test.no": 3,
}, },
}, },
// Test that when we have two users, that are isolated, // Test that when we have two users, that are isolated,
@ -213,8 +213,8 @@ func TestACLHostsInNetMapTable(t *testing.T) {
}, },
}, },
}, want: map[string]int{ }, want: map[string]int{
"user1": 3, // ns1 + ns2 "user1@test.no": 3, // ns1 + ns2
"user2": 3, // ns1 + ns2 (return path) "user2@test.no": 3, // ns1 + ns2 (return path)
}, },
}, },
"very-large-destination-prefix-1372": { "very-large-destination-prefix-1372": {
@ -241,8 +241,8 @@ func TestACLHostsInNetMapTable(t *testing.T) {
}, },
}, },
}, want: map[string]int{ }, want: map[string]int{
"user1": 3, // ns1 + ns2 "user1@test.no": 3, // ns1 + ns2
"user2": 3, // ns1 + ns2 (return path) "user2@test.no": 3, // ns1 + ns2 (return path)
}, },
}, },
"ipv6-acls-1470": { "ipv6-acls-1470": {
@ -259,8 +259,8 @@ func TestACLHostsInNetMapTable(t *testing.T) {
}, },
}, },
}, want: map[string]int{ }, want: map[string]int{
"user1": 3, // ns1 + ns2 "user1@test.no": 3, // ns1 + ns2
"user2": 3, // ns2 + ns1 "user2@test.no": 3, // ns2 + ns1
}, },
}, },
} }