diff --git a/apier/v1/tplcrrules.go b/apier/v1/tplcrrules.go index 5ab708619..444339f2f 100644 --- a/apier/v1/tplcrrules.go +++ b/apier/v1/tplcrrules.go @@ -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) diff --git a/test.sh b/test.sh index 8e92ec038..48c9fa8d4 100755 --- a/test.sh +++ b/test.sh @@ -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