Download this file
| 1 | package fichas |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | func TestReleaseTeamBinding(t *testing.T) { |
| 6 | for _, origin := range []string{"https://other.docs.oficina.works", "https://other.docs.OFICINA.WORKS", "https://other.docs.oficina.works."} { |
| 7 | if releaseTeam(origin, "ours") { |
| 8 | t.Errorf("accepted different team: %s", origin) |
| 9 | } |
| 10 | } |
| 11 | if !releaseTeam("https://ours.docs.oficina.works", "ours") || !releaseTeam("https://docs.oficina.works", "standalone") { |
| 12 | t.Fatal("valid explicit binding refused") |
| 13 | } |
| 14 | } |
| 15 | |