Use name@provider instead of provider@name.
This commit is contained in:
parent
1e779f7135
commit
adc9a65ae3
35 changed files with 472 additions and 472 deletions
|
@ -303,9 +303,9 @@ func TestManager_Build(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "Service name with provider",
|
||||
serviceName: "provider-1@serviceName",
|
||||
serviceName: "serviceName@provider-1",
|
||||
configs: map[string]*config.ServiceInfo{
|
||||
"provider-1@serviceName": {
|
||||
"serviceName@provider-1": {
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{},
|
||||
},
|
||||
|
@ -316,7 +316,7 @@ func TestManager_Build(t *testing.T) {
|
|||
desc: "Service name with provider in context",
|
||||
serviceName: "serviceName",
|
||||
configs: map[string]*config.ServiceInfo{
|
||||
"provider-1@serviceName": {
|
||||
"serviceName@provider-1": {
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{},
|
||||
},
|
||||
|
@ -335,7 +335,7 @@ func TestManager_Build(t *testing.T) {
|
|||
|
||||
ctx := context.Background()
|
||||
if len(test.providerName) > 0 {
|
||||
ctx = internal.AddProviderInContext(ctx, test.providerName+"@foobar")
|
||||
ctx = internal.AddProviderInContext(ctx, "foobar@"+test.providerName)
|
||||
}
|
||||
|
||||
_, err := manager.BuildHTTP(ctx, test.serviceName, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue