mirror of https://github.com/status-im/consul.git
set up ent and CE specific DNS tests to be able to run v1 and v2 (#20571)
This commit is contained in:
parent
01001f630e
commit
c8e4cea69c
|
@ -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…
Reference in New Issue