fixed mandatory data for settplcrrule api

This commit is contained in:
Radu Ioan Fericean
2015-09-18 14:45:29 +03:00
parent 4c7e6b7b77
commit 33bb801340
2 changed files with 1 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ import (
// Creates a new LcrRules profile within a tariff plan
func (self *ApierV1) SetTPLcrRule(attrs utils.TPLcrRules, reply *string) error {
if missing := utils.MissingStructFields(&attrs, []string{"TPid", "LcrRulesId", "Identifier", "Weight"}); len(missing) != 0 {
if missing := utils.MissingStructFields(&attrs, []string{"TPid", "Direction", "Tenant", "Category", "Account", "Subject"}); len(missing) != 0 {
return utils.NewErrMandatoryIeMissing(missing...)
}
tm := engine.APItoModelLcrRule(&attrs)

View File

@@ -1,8 +1,5 @@
#! /usr/bin/env sh
export GO15VENDOREXPERIMENT=1
glide up
go test -i github.com/cgrates/cgrates/apier/v1
go test -i github.com/cgrates/cgrates/apier/v2
go test -i github.com/cgrates/cgrates/engine