mirror of https://github.com/status-im/consul.git
Register the multicluster types for the catalogtest integration tests (#20516)
In particular the failover controller needs these in Consul Enterprise
This commit is contained in:
parent
ab8f23478a
commit
3ca4f39fa1
|
@ -8,6 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/hashicorp/consul/internal/catalog"
|
"github.com/hashicorp/consul/internal/catalog"
|
||||||
"github.com/hashicorp/consul/internal/controller/controllertest"
|
"github.com/hashicorp/consul/internal/controller/controllertest"
|
||||||
|
"github.com/hashicorp/consul/internal/multicluster"
|
||||||
"github.com/hashicorp/consul/internal/resource/reaper"
|
"github.com/hashicorp/consul/internal/resource/reaper"
|
||||||
rtest "github.com/hashicorp/consul/internal/resource/resourcetest"
|
rtest "github.com/hashicorp/consul/internal/resource/resourcetest"
|
||||||
"github.com/hashicorp/consul/proto-public/pbresource"
|
"github.com/hashicorp/consul/proto-public/pbresource"
|
||||||
|
@ -21,7 +22,7 @@ func runInMemResourceServiceAndControllers(t *testing.T) pbresource.ResourceServ
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
||||||
return controllertest.NewControllerTestBuilder().
|
return controllertest.NewControllerTestBuilder().
|
||||||
WithResourceRegisterFns(catalog.RegisterTypes).
|
WithResourceRegisterFns(catalog.RegisterTypes, multicluster.RegisterTypes).
|
||||||
WithControllerRegisterFns(
|
WithControllerRegisterFns(
|
||||||
reaper.RegisterControllers,
|
reaper.RegisterControllers,
|
||||||
catalog.RegisterControllers,
|
catalog.RegisterControllers,
|
||||||
|
|
Loading…
Reference in New Issue