Update ActionS loding from CSV

This commit is contained in:
TeoV
2021-02-09 10:28:18 +02:00
committed by Dan Christian Bogos
parent a82c3c5f83
commit fd658aeb01
3 changed files with 59 additions and 71 deletions

View File

@@ -1491,44 +1491,39 @@ func TestLoadActionProfiles(t *testing.T) {
},
Actions: []*utils.TPAPAction{
{
ID: "TOPUP",
FilterIDs: []string{},
TTL: "0s",
Type: "*topup",
Path: "~*balance.TestBalance.Value",
Value: "10",
ID: "TOPUP",
TTL: "0s",
Type: "*topup",
Path: "~*balance.TestBalance.Value",
Value: "10",
},
{
ID: "SET_BALANCE_TEST_DATA",
FilterIDs: []string{},
TTL: "0s",
Type: "*set_balance",
Path: "~*balance.TestDataBalance.Type",
Value: "*data",
ID: "SET_BALANCE_TEST_DATA",
TTL: "0s",
Type: "*set_balance",
Path: "~*balance.TestDataBalance.Type",
Value: "*data",
},
{
ID: "TOPUP_TEST_DATA",
FilterIDs: []string{},
TTL: "0s",
Type: "*topup",
Path: "~*balance.TestDataBalance.Value",
Value: "1024",
ID: "TOPUP_TEST_DATA",
TTL: "0s",
Type: "*topup",
Path: "~*balance.TestDataBalance.Value",
Value: "1024",
},
{
ID: "SET_BALANCE_TEST_VOICE",
FilterIDs: []string{},
TTL: "0s",
Type: "*set_balance",
Path: "~*balance.TestVoiceBalance.Type",
Value: "*voice",
ID: "SET_BALANCE_TEST_VOICE",
TTL: "0s",
Type: "*set_balance",
Path: "~*balance.TestVoiceBalance.Type",
Value: "*voice",
},
{
ID: "TOPUP_TEST_VOICE",
FilterIDs: []string{},
TTL: "0s",
Type: "*topup",
Path: "~*balance.TestVoiceBalance.Value",
Value: "15m15s",
ID: "TOPUP_TEST_VOICE",
TTL: "0s",
Type: "*topup",
Path: "~*balance.TestVoiceBalance.Value",
Value: "15m15s",
},
},
}