1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-08-14 13:51:01 +02:00

capver: regen

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2025-08-06 08:39:59 +02:00
parent da641c42d8
commit b3704da311
No known key found for this signature in database
2 changed files with 9 additions and 7 deletions

View File

@ -5,8 +5,6 @@ package capver
import "tailscale.com/tailcfg"
var tailscaleToCapVer = map[string]tailcfg.CapabilityVersion{
"v1.64.0": 90,
"v1.64.1": 90,
"v1.64.2": 90,
"v1.66.0": 95,
"v1.66.1": 95,
@ -35,11 +33,13 @@ var tailscaleToCapVer = map[string]tailcfg.CapabilityVersion{
"v1.84.0": 116,
"v1.84.1": 116,
"v1.84.2": 116,
"v1.86.0": 122,
"v1.86.2": 123,
}
var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
90: "v1.64.0",
90: "v1.64.2",
95: "v1.66.0",
97: "v1.68.0",
102: "v1.70.0",
@ -49,4 +49,6 @@ var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
113: "v1.80.0",
115: "v1.82.0",
116: "v1.84.0",
122: "v1.86.0",
123: "v1.86.2",
}

View File

@ -13,11 +13,10 @@ func TestTailscaleLatestMajorMinor(t *testing.T) {
stripV bool
expected []string
}{
{3, false, []string{"v1.80", "v1.82", "v1.84"}},
{2, true, []string{"1.82", "1.84"}},
{3, false, []string{"v1.82", "v1.84", "v1.86"}},
{2, true, []string{"1.84", "1.86"}},
// Lazy way to see all supported versions
{10, true, []string{
"1.66",
"1.68",
"1.70",
"1.72",
@ -27,6 +26,7 @@ func TestTailscaleLatestMajorMinor(t *testing.T) {
"1.80",
"1.82",
"1.84",
"1.86",
}},
{0, false, nil},
}
@ -46,7 +46,7 @@ func TestCapVerMinimumTailscaleVersion(t *testing.T) {
input tailcfg.CapabilityVersion
expected string
}{
{90, "v1.64.0"},
{90, "v1.64.2"},
{95, "v1.66.0"},
{106, "v1.74.0"},
{109, "v1.78.0"},