1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

add 1.54 and 1.56 to integration tests (#1652)

* add 1.54 and 1.56 to integration tests

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* fix bug where we tested random versions, now sorted

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2024-01-02 10:41:40 +01:00 committed by GitHub
parent 55ca078f22
commit 054b06d45d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import (
"log" "log"
"net/netip" "net/netip"
"os" "os"
"sort"
"sync" "sync"
v1 "github.com/juanfont/headscale/gen/go/headscale/v1" v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
@ -31,6 +32,8 @@ func enabledVersions(vs map[string]bool) []string {
} }
} }
sort.Sort(sort.Reverse(sort.StringSlice(ret)))
return ret return ret
} }
@ -44,7 +47,9 @@ var (
tailscaleVersions2021 = map[string]bool{ tailscaleVersions2021 = map[string]bool{
"head": true, "head": true,
"unstable": true, "unstable": true,
"1.52": true, // CapVer: "1.56": true, // CapVer: 82
"1.54": true, // CapVer: 79
"1.52": true, // CapVer: 79
"1.50": true, // CapVer: 74 "1.50": true, // CapVer: 74
"1.48": true, // CapVer: 68 "1.48": true, // CapVer: 68
"1.46": true, // CapVer: 65 "1.46": true, // CapVer: 65
@ -353,7 +358,7 @@ func (s *Scenario) CreateTailscaleNodesInUser(
return err return err
} }
log.Printf("testing versions %v", lo.Uniq(versions)) log.Printf("testing versions %v, MustTestVersions %v", lo.Uniq(versions), MustTestVersions)
return nil return nil
} }