Fix in CgrTester to properly reflect TOR and Category

This commit is contained in:
DanB
2014-08-04 13:48:22 +02:00
parent b28b8a60dd
commit 6e94842539
2 changed files with 6 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ import (
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/engine"
"github.com/cgrates/cgrates/utils"
)
var (
@@ -52,7 +53,8 @@ var (
accountdb_pass = flag.String("accountdb_passwd", cgrConfig.AccountDBPass, "The AccountingDb user's password.")
dbdata_encoding = flag.String("dbdata_encoding", cgrConfig.DBDataEncoding, "The encoding used to store object data in strings.")
raterAddress = flag.String("rater_address", "", "Rater address for remote tests. Empty for internal rater.")
tor = flag.String("tor", "call", "The type of record to use in queries.")
tor = flag.String("category", utils.VOICE, "The type of record to use in queries.")
category = flag.String("category", "call", "The Record category to test.")
tenant = flag.String("tenant", "cgrates.org", "The type of record to use in queries.")
subject = flag.String("subject", "1001", "The rating subject to use in queries.")
destination = flag.String("destination", "1002", "The destination to use in queries.")
@@ -155,6 +157,7 @@ func main() {
DurationIndex: 60 * time.Second,
Direction: "*out",
TOR: *tor,
Category: *category,
Tenant: *tenant,
Subject: *subject,
Destination: *destination,

View File

@@ -44,7 +44,8 @@ class JSONClient(object):
rpc =JSONClient(("127.0.0.1", 2012))
cd = {"Direction":"*out",
"TOR":"call",
"TOR":"*voice",
"Category": "call"
"Tenant": "cgrates.org",
"Subject": "1001",
"Destination": "1002",