mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fixed TenantIDWithOpts not being replaced everywhere
This commit is contained in:
committed by
Dan Christian Bogos
parent
a6f41adaf9
commit
bdf66c2d6b
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user