|
|
|
@ -17,12 +17,15 @@ import (
|
|
|
|
|
"github.com/hashicorp/consul/testrpc"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// TODO(v2-dns): NET-7910 - Fix ENT and CE variants of DNS v1 compatibility tests
|
|
|
|
|
func TestDNS_CE_PeeredServices(t *testing.T) {
|
|
|
|
|
if testing.Short() {
|
|
|
|
|
t.Skip("too slow for testing.Short")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a := StartTestAgent(t, TestAgent{HCL: ``, Overrides: `peering = { test_allow_peer_registrations = true }`})
|
|
|
|
|
for name, experimentsHCL := range getVersionHCL(false) {
|
|
|
|
|
t.Run(name, func(t *testing.T) {
|
|
|
|
|
a := StartTestAgent(t, TestAgent{HCL: ``, Overrides: `peering = { test_allow_peer_registrations = true } ` + experimentsHCL})
|
|
|
|
|
defer a.Shutdown()
|
|
|
|
|
testrpc.WaitForTestAgent(t, a.RPC, "dc1")
|
|
|
|
|
|
|
|
|
@ -128,6 +131,8 @@ func TestDNS_CE_PeeredServices(t *testing.T) {
|
|
|
|
|
require.Len(t, q.Extra, 0)
|
|
|
|
|
assertARec(t, q.Answer[0], "web-proxy.service.peer1.peer.consul.", "199.0.0.1")
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func getTestCasesParseLocality() []testCaseParseLocality {
|
|
|
|
|