mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-24 03:17:40 -05:00
capver: update latest (#2774)
This commit is contained in:
39
hscontrol/capver/capver_test_data.go
Normal file
39
hscontrol/capver/capver_test_data.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package capver
|
||||
|
||||
// Generated DO NOT EDIT
|
||||
|
||||
import "tailscale.com/tailcfg"
|
||||
|
||||
var tailscaleLatestMajorMinorTests = []struct {
|
||||
n int
|
||||
stripV bool
|
||||
expected []string
|
||||
}{
|
||||
{3, false, []string{"v1.86", "v1.88", "v1.90"}},
|
||||
{2, true, []string{"1.88", "1.90"}},
|
||||
{9, true, []string{
|
||||
"1.74",
|
||||
"1.76",
|
||||
"1.78",
|
||||
"1.80",
|
||||
"1.82",
|
||||
"1.84",
|
||||
"1.86",
|
||||
"1.88",
|
||||
"1.90",
|
||||
}},
|
||||
{0, false, nil},
|
||||
}
|
||||
|
||||
var capVerMinimumTailscaleVersionTests = []struct {
|
||||
input tailcfg.CapabilityVersion
|
||||
expected string
|
||||
}{
|
||||
{106, "v1.74.0"},
|
||||
{97, "v1.68.1"},
|
||||
{102, "v1.70.0"},
|
||||
{104, "v1.72.0"},
|
||||
{109, "v1.78.0"},
|
||||
{9001, ""}, // Test case for a version higher than any in the map
|
||||
{60, ""}, // Test case for a version lower than any in the map
|
||||
}
|
||||
Reference in New Issue
Block a user