Gitea host renamed (infra ADR-0004); the mcp-chassis dep already migrated
(3329ff3), so the sequencing gate is clear. `go mod edit -module` + bulk import
rewrite across all .go files. gitea-mcp is a server binary (not an imported
library), so no downstream consumers break. build + task check green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 lines
368 B
Go
17 lines
368 B
Go
package allowlist_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.d-ma.be/mathias/gitea-mcp/internal/allowlist"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestAllowlistCheck(t *testing.T) {
|
|
a := allowlist.New([]string{"mathias", "acme"})
|
|
assert.NoError(t, a.Check("mathias"))
|
|
assert.NoError(t, a.Check("acme"))
|
|
assert.Error(t, a.Check("evil"))
|
|
assert.Error(t, a.Check(""))
|
|
}
|