mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated dispatcher integration tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
c94dfb6484
commit
2f8cfaf5d7
@@ -165,9 +165,9 @@ func testDispatcherSUpdateDispatcherProfile(t *testing.T) {
|
||||
ActivationTime: time.Date(2019, 3, 1, 0, 0, 0, 0, time.UTC),
|
||||
ExpiryTime: time.Date(2019, 4, 1, 0, 0, 0, 0, time.UTC),
|
||||
}
|
||||
dispatcherProfile.Conns = []*engine.DispatcherConn{
|
||||
{ID: "HOST1", Weight: 20.0},
|
||||
{ID: "HOST2", Weight: 10.0},
|
||||
dispatcherProfile.Hosts = engine.DispatcherHostProfiles{
|
||||
&engine.DispatcherHostProfile{ID: "HOST1", Weight: 20.0},
|
||||
&engine.DispatcherHostProfile{ID: "HOST2", Weight: 10.0},
|
||||
}
|
||||
if err := dispatcherRPC.Call(utils.ApierV1SetDispatcherProfile,
|
||||
dispatcherProfile, &result); err != nil {
|
||||
|
||||
@@ -41,17 +41,6 @@
|
||||
"attributes_conns": [
|
||||
{"address": "127.0.0.1:5012", "transport": "*json"},
|
||||
],
|
||||
"conns": {
|
||||
"AttributeS1": [
|
||||
{"address": "127.0.0.1:5012", "transport": "*json"},
|
||||
],
|
||||
"ALL": [
|
||||
{"address": "127.0.0.1:6012", "transport": "*json"},
|
||||
],
|
||||
"ALL2": [
|
||||
{"address": "127.0.0.1:7012", "transport": "*json"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
"apier": {
|
||||
|
||||
@@ -50,17 +50,6 @@
|
||||
"attributes_conns": [
|
||||
{"address": "127.0.0.1:5012", "transport": "*json"},
|
||||
],
|
||||
"conns": {
|
||||
"AttributeS1": [
|
||||
{"address": "127.0.0.1:5012", "transport": "*json"},
|
||||
],
|
||||
"ALL": [
|
||||
{"address": "127.0.0.1:6012", "transport": "*json"},
|
||||
],
|
||||
"ALL2": [
|
||||
{"address": "127.0.0.1:7012", "transport": "*json"},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
4
data/tariffplans/dispatchers/DispatcherHosts.csv
Normal file
4
data/tariffplans/dispatchers/DispatcherHosts.csv
Normal file
@@ -0,0 +1,4 @@
|
||||
#Tenant[0],ID[1],Address[2],Transport[3],TLS[4]
|
||||
cgrates.org,AttributeS1,127.0.0.1:5012,*json,false
|
||||
cgrates.org,ALL,127.0.0.1:6012,*json,false
|
||||
cgrates.org,ALL2,127.0.0.1:7012,*json,false
|
||||
|
Reference in New Issue
Block a user