Added Tenant field to TPstats

This commit is contained in:
edwardro22
2017-09-12 08:45:53 +00:00
parent df31455316
commit 40cd82dc26
15 changed files with 125 additions and 48 deletions

View File

@@ -36,6 +36,7 @@ func (self *ApierV1) SetTPStat(attr utils.TPStats, reply *string) error {
type AttrGetTPStat struct {
TPid string // Tariff plan id
Tenant string
ID string
}
@@ -57,6 +58,7 @@ func (self *ApierV1) GetTPStat(attr AttrGetTPStat, reply *utils.TPStats) error {
type AttrGetTPStatIds struct {
TPid string // Tariff plan id
Tenant string
utils.Paginator
}

View File

@@ -126,6 +126,7 @@ func testTPStatsGetTPStatBeforeSet(t *testing.T) {
func testTPStatsSetTPStat(t *testing.T) {
tpStat = &utils.TPStats{
Tenant: "Tester",
TPid: "TPS1",
ID: "Stat1",
Filters: []*utils.TPRequestFilter{