Updated dispatcher integration tests

This commit is contained in:
Tripon Alexandru-Ionut
2019-04-02 10:08:37 +03:00
committed by Dan Christian Bogos
parent c94dfb6484
commit 2f8cfaf5d7
4 changed files with 7 additions and 25 deletions

View File

@@ -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 {

View File

@@ -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": {

View File

@@ -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"},
],
},
},

View 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
1 #Tenant[0] ID[1] Address[2] Transport[3] TLS[4]
2 cgrates.org AttributeS1 127.0.0.1:5012 *json false
3 cgrates.org ALL 127.0.0.1:6012 *json false
4 cgrates.org ALL2 127.0.0.1:7012 *json false