Fixed TenantIDWithOpts not being replaced everywhere

This commit is contained in:
andronache
2021-03-17 17:04:15 +02:00
committed by Dan Christian Bogos
parent a6f41adaf9
commit bdf66c2d6b
2 changed files with 3 additions and 3 deletions

View File

@@ -1812,7 +1812,7 @@ func testV1FISetRateProfileRatesIndexes(t *testing.T) {
//there are not any rates in db
var reply *engine.RateProfile
if err := tFIdxRpc.Call(utils.APIerSv1GetRateProfile,
&utils.TenantIDWithOpts{TenantID: &utils.TenantID{Tenant: tenant, ID: "RP1"}}, &reply); err == nil ||
&utils.TenantIDWithAPIOpts{TenantID: &utils.TenantID{Tenant: tenant, ID: "RP1"}}, &reply); err == nil ||
err.Error() != utils.ErrNotFound.Error() {
t.Error(err)
}

View File

@@ -106,7 +106,7 @@ func testDspApierGetAttributes(t *testing.T) {
}
alsPrf.Compile()
if err := dispEngine.RPC.Call(utils.APIerSv1GetAttributeProfile,
utils.TenantIDWithOpts{
utils.TenantIDWithAPIOpts{
TenantID: &utils.TenantID{Tenant: "cgrates.org", ID: "ATTR_Dispatcher"},
ArgDispatcher: &utils.ArgDispatcher{APIKey: utils.StringPointer("apier12345")},
}, &reply); err != nil {
@@ -122,7 +122,7 @@ func testDspApierGetAttributes(t *testing.T) {
func testDspApierUnkownAPiKey(t *testing.T) {
var reply *engine.AttributeProfile
if err := dispEngine.RPC.Call(utils.APIerSv1GetAttributeProfile,
utils.TenantIDWithOpts{
utils.TenantIDWithAPIOpts{
TenantID: &utils.TenantID{Tenant: "cgrates.org", ID: "ATTR_Dispatcher"},
ArgDispatcher: &utils.ArgDispatcher{APIKey: utils.StringPointer("RandomApiKey")},
}, &reply); err == nil || err.Error() != utils.ErrUnknownApiKey.Error() {