mirror of
https://github.com/juanfont/headscale.git
synced 2025-07-22 13:48:40 +02:00
db: update test with v1 removal
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
10e79d3cfa
commit
d2fc059357
@ -435,8 +435,7 @@ func TestAutoApproveRoutes(t *testing.T) {
|
|||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
pmfs := policy.PolicyManagerFuncsForTest([]byte(tt.acl))
|
pmfs := policy.PolicyManagerFuncsForTest([]byte(tt.acl))
|
||||||
for i, pmf := range pmfs {
|
for i, pmf := range pmfs {
|
||||||
version := i + 1
|
t.Run(fmt.Sprintf("%s-policy-index%d", tt.name, i), func(t *testing.T) {
|
||||||
t.Run(fmt.Sprintf("%s-policyv%d", tt.name, version), func(t *testing.T) {
|
|
||||||
adb, err := newSQLiteTestDB()
|
adb, err := newSQLiteTestDB()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ func Test_fullMapResponse(t *testing.T) {
|
|||||||
// {
|
// {
|
||||||
// name: "empty-node",
|
// name: "empty-node",
|
||||||
// node: types.Node{},
|
// node: types.Node{},
|
||||||
// pol: &policyv1.ACLPolicy{},
|
// pol: &policyv2.Policy{},
|
||||||
// dnsConfig: &tailcfg.DNSConfig{},
|
// dnsConfig: &tailcfg.DNSConfig{},
|
||||||
// baseDomain: "",
|
// baseDomain: "",
|
||||||
// want: nil,
|
// want: nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user