ci: run plugin tests on Windows (#8314)

Plugin package tests previously ran only on Linux, so Windows-
specific failures were never caught. Run them in CI and make the
affected tests portable across platforms.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
Ville Vesilehto
2026-07-19 13:52:23 +03:00
committed by GitHub
parent 96ec17d5c6
commit 077774e0cd
11 changed files with 124 additions and 99 deletions

View File

@@ -30,10 +30,10 @@ func TestSetupAutoPath(t *testing.T) {
{`autopath example.org @kubernetes`, false, "example.org.", "kubernetes", nil, ""},
{`autopath 10.0.0.0/8 @kubernetes`, false, "10.in-addr.arpa.", "kubernetes", nil, ""},
{`autopath ` + resolv, false, "", "", []string{"bar.com.", "baz.com.", ""}, ""},
// negative
{`autopath kubernetes`, true, "", "", nil, "open kubernetes: no such file or directory"},
// negative (OS error text differs; match the portable prefix)
{`autopath kubernetes`, true, "", "", nil, "open kubernetes:"},
{`autopath`, true, "", "", nil, "no resolv-conf"},
{`autopath ""`, true, "", "", nil, "no such file"},
{`autopath ""`, true, "", "", nil, "failed to parse"},
}
for i, test := range tests {