fix route provider name

This commit is contained in:
yusing
2025-01-12 13:49:47 +08:00
parent 2c3672a7ea
commit 6b6dae129f
7 changed files with 45 additions and 31 deletions

View File

@@ -39,6 +39,12 @@ func makeEntries(cont *types.Container, dockerHostIP ...string) route.RawEntries
return entries
}
func TestExplicitOnly(t *testing.T) {
p, err := NewDockerProvider("a!", "")
ExpectNoError(t, err)
ExpectTrue(t, p.IsExplicitOnly())
}
func TestApplyLabel(t *testing.T) {
pathPatterns := `
- /