-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
253 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Real-time Charging System for Telecom & ISP environments | ||
Copyright (C) ITsysCOM GmbH | ||
This program is free software: you can Storagetribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITH*out ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/> | ||
*/ | ||
|
||
package config | ||
|
||
import ( | ||
"flag" | ||
"testing" | ||
) | ||
|
||
var testLocal = flag.Bool("local", false, "Perform the tests only on local test environment, disabled by default.") // This flag will be passed here via "go test -local" args | ||
|
||
var mfCgrCfg *CGRConfig | ||
|
||
func TestInitConfig(t *testing.T) { | ||
if !*testLocal { | ||
return | ||
} | ||
var err error | ||
if mfCgrCfg, err = NewCGRConfigFromFolder("/usr/share/cgrates/conf/samples/multifiles"); err != nil { | ||
t.Fatal("Got config error: ", err.Error()) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
// CGRateS Configuration file | ||
// | ||
// Used in apier_local_tests | ||
// Starts rater, cdrs and mediator connecting over internal channel | ||
|
||
"rater": { | ||
"enabled": true, // enable Rater service: <true|false> | ||
}, | ||
|
||
"cdrs": { | ||
"enabled": true, // start the CDR Server service: <true|false> | ||
"mediator": "internal", // address where to reach the Mediator. Empty for disabling mediation. <""|internal> | ||
"store_disable": true, // when true, CDRs will not longer be saved in stordb, useful for cdrstats only scenario | ||
}, | ||
|
||
"mediator": { | ||
"enabled": true, // starts Mediator service: <true|false>. | ||
"cdrstats": "internal", // address where to reach the cdrstats service. Empty to disable stats gathering out of mediated CDRs <""|internal|x.y.z.y:1234> | ||
"store_disable": true, // when true, CDRs will not longer be saved in stordb, useful for cdrstats only scenario | ||
}, | ||
|
||
"cdrstats": { | ||
"enabled": true, // starts the cdrstats service: <true|false> | ||
"queue_length": 5, // number of items in the stats buffer | ||
"time_window": "0", // will only keep the CDRs who's call setup time is not older than time.Now()-TimeWindow | ||
}, | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
// CGRateS Configuration file | ||
// | ||
// Used in apier_local_tests | ||
// Starts rater, cdrs and mediator connecting over internal channel | ||
|
||
"rater": { | ||
"enabled": true, // enable Rater service: <true|false> | ||
}, | ||
|
||
"cdrs": { | ||
"enabled": true, // start the CDR Server service: <true|false> | ||
"mediator": "internal", // address where to reach the Mediator. Empty for disabling mediation. <""|internal> | ||
}, | ||
|
||
"mediator": { | ||
"enabled": true, // starts Mediator service: <true|false>. | ||
|
||
}, | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
// CGRateS Configuration file | ||
// | ||
// Used in apier_local_tests | ||
// Starts rater, cdrs and mediator connecting over internal channel | ||
|
||
"stor_db": { | ||
"db_type": "postgres", // stor database type to use: <mysql|postgres> | ||
"db_port": 5432, // the port to reach the stordb | ||
}, | ||
|
||
|
||
"rater": { | ||
"enabled": true, // enable Rater service: <true|false> | ||
}, | ||
|
||
"cdrs": { | ||
"enabled": true, // start the CDR Server service: <true|false> | ||
"mediator": "internal", // address where to reach the Mediator. Empty for disabling mediation. <""|internal> | ||
}, | ||
|
||
"mediator": { | ||
"enabled": true, // starts Mediator service: <true|false>. | ||
|
||
}, | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.