mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
ID and UniqueID for action trigger
This commit is contained in:
@@ -1013,7 +1013,8 @@ func TestLoadActionTriggers(t *testing.T) {
|
||||
}
|
||||
atr := csvr.actionsTriggers["STANDARD_TRIGGER"][0]
|
||||
expected := &ActionTrigger{
|
||||
Id: "STANDARD_TRIGGER",
|
||||
ID: "STANDARD_TRIGGER",
|
||||
UniqueID: "st0",
|
||||
BalanceType: utils.VOICE,
|
||||
BalanceDirections: utils.NewStringMap(utils.OUT),
|
||||
ThresholdType: utils.TRIGGER_MIN_EVENT_COUNTER,
|
||||
@@ -1031,7 +1032,8 @@ func TestLoadActionTriggers(t *testing.T) {
|
||||
}
|
||||
atr = csvr.actionsTriggers["STANDARD_TRIGGER"][1]
|
||||
expected = &ActionTrigger{
|
||||
Id: "STANDARD_TRIGGER",
|
||||
ID: "STANDARD_TRIGGER",
|
||||
UniqueID: "st1",
|
||||
BalanceType: utils.VOICE,
|
||||
BalanceDirections: utils.NewStringMap(utils.OUT),
|
||||
ThresholdType: utils.TRIGGER_MAX_BALANCE,
|
||||
@@ -1077,7 +1079,7 @@ func TestLoadAccountActions(t *testing.T) {
|
||||
}
|
||||
// set propper uuid
|
||||
for i, atr := range aa.ActionTriggers {
|
||||
csvr.actionsTriggers["STANDARD_TRIGGER"][i].Id = atr.Id
|
||||
csvr.actionsTriggers["STANDARD_TRIGGER"][i].ID = atr.ID
|
||||
}
|
||||
for i, b := range aa.UnitCounters[0].Balances {
|
||||
expected.UnitCounters[0].Balances[i].Id = b.Id
|
||||
|
||||
Reference in New Issue
Block a user