Fix integration tests in apis after changing GetAttrForEvent reply type

This commit is contained in:
ionutboangiu
2021-06-02 16:57:39 +03:00
committed by Dan Christian Bogos
parent c7619a604e
commit bfa3fb7a4c
10 changed files with 442 additions and 451 deletions

View File

@@ -231,7 +231,7 @@ func (alS *AttributeService) processEvent(ctx *context.Context, tnt string, args
// V1GetAttributeForEvent returns the AttributeProfile that matches the event
func (alS *AttributeService) V1GetAttributeForEvent(ctx *context.Context, args *AttrArgsProcessEvent,
attrPrfl *AttributeProfile) (err error) {
attrPrfl *APIAttributeProfile) (err error) {
if args.CGREvent == nil {
return utils.NewErrMandatoryIeMissing(utils.CGREventString)
}
@@ -252,7 +252,7 @@ func (alS *AttributeService) V1GetAttributeForEvent(ctx *context.Context, args *
}
return err
}
*attrPrfl = *attrPrf
*attrPrfl = *(NewAPIAttributeProfile(attrPrf))
return
}