set up ent and CE specific DNS tests to be able to run v1 and v2 (#20571)

pull/20582/head
John Murret 10 months ago committed by GitHub
parent 01001f630e
commit c8e4cea69c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {

Loading…
Cancel
Save