#2177 Added conversion of 'Hostname' to 'givenName' in a node with FQDN rules applied (#2198)
Build / build (push) Has been cancelled
Build documentation / build (push) Has been cancelled
Tests / test (push) Has been cancelled
Build documentation / deploy (push) Has been cancelled

This commit is contained in:
hopleus authored and GitHub committed 2024-10-15 18:33:03 +02:00
1 parent 52a3b54ba2
commit cc42fc394a
5 files changed
+64

No files matched your search

+9
View File
@@ -392,6 +392,15 @@ func TestHeadscale_generateGivenName(t *testing.T) {
want: regexp.MustCompile("^testnode$"),
wantErr: false,
},
{
name: "UPPERCASE node name generation",
args: args{
suppliedName: "TestNode",
randomSuffix: false,
},
want: regexp.MustCompile("^testnode$"),
wantErr: false,
},
{
name: "node name with 53 chars",
args: args{