mirror of https://github.com/status-im/consul.git
parent
fbc2a58733
commit
443461318a
|
@ -566,8 +566,8 @@ func (suite *controllerTestSuite) TestController() {
|
|||
// Run the controller manager
|
||||
var (
|
||||
// Create proxy state template IDs to check against in this test.
|
||||
apiProxyStateTemplateID = resourcetest.ResourceWithTenancy(pbmesh.ProxyStateTemplateType, "api-abc", tenancy).ID()
|
||||
webProxyStateTemplateID = resourcetest.ResourceWithTenancy(pbmesh.ProxyStateTemplateType, "web-def", tenancy).ID()
|
||||
apiProxyStateTemplateID = resourcetest.Resource(pbmesh.ProxyStateTemplateType, "api-abc").WithTenancy(tenancy).ID()
|
||||
webProxyStateTemplateID = resourcetest.Resource(pbmesh.ProxyStateTemplateType, "web-def").WithTenancy(tenancy).ID()
|
||||
|
||||
apiComputedRoutesID = resource.ReplaceType(pbmesh.ComputedRoutesType, suite.apiService.Id)
|
||||
dbComputedRoutesID = resource.ReplaceType(pbmesh.ComputedRoutesType, suite.dbService.Id)
|
||||
|
|
|
@ -43,22 +43,6 @@ func Resource(rtype *pbresource.Type, name string) *resourceBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
func ResourceWithTenancy(rtype *pbresource.Type, name string, tenancy *pbresource.Tenancy) *resourceBuilder {
|
||||
return &resourceBuilder{
|
||||
resource: &pbresource.Resource{
|
||||
Id: &pbresource.ID{
|
||||
Type: &pbresource.Type{
|
||||
Group: rtype.Group,
|
||||
GroupVersion: rtype.GroupVersion,
|
||||
Kind: rtype.Kind,
|
||||
},
|
||||
Name: name,
|
||||
Tenancy: tenancy,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func ResourceID(id *pbresource.ID) *resourceBuilder {
|
||||
return &resourceBuilder{
|
||||
resource: &pbresource.Resource{
|
||||
|
|
Loading…
Reference in New Issue