From 33bb80134052a9e3597372d96fc3928720b98576 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Fri, 18 Sep 2015 14:45:29 +0300 Subject: [PATCH] fixed mandatory data for settplcrrule api --- apier/v1/tplcrrules.go | 2 +- test.sh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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