all: fix golangci-lint issues (#3064)
This commit is contained in:
parent
bfb6fd80df
commit
ce580f8245
131 changed files with 3131 additions and 1560 deletions
|
|
@ -9655,7 +9655,7 @@ func TestTailscaleCompatErrorCases(t *testing.T) {
|
|||
{"action": "accept", "src": ["tag:nonexistent"], "dst": ["tag:server:22"]}
|
||||
]
|
||||
}`,
|
||||
wantErr: `Tag "tag:nonexistent" is not defined in the Policy`,
|
||||
wantErr: `tag not defined in policy: "tag:nonexistent"`,
|
||||
reference: "Test 6.4: tag:nonexistent → tag:server:22",
|
||||
},
|
||||
|
||||
|
|
@ -9674,7 +9674,7 @@ func TestTailscaleCompatErrorCases(t *testing.T) {
|
|||
{"action": "accept", "src": ["autogroup:self"], "dst": ["tag:server:22"]}
|
||||
]
|
||||
}`,
|
||||
wantErr: `"autogroup:self" used in source, it can only be used in ACL destinations`,
|
||||
wantErr: `autogroup:self can only be used in ACL destinations`,
|
||||
reference: "Test 13.41: autogroup:self as SOURCE",
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue