mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 00:58:45 +05:00
Add integration tests for resource apis final
This commit is contained in:
committed by
Dan Christian Bogos
parent
ae7fcf3910
commit
1eb68fe1a2
34
data/conf/samples/resources_internal/cgrates.json
Normal file
34
data/conf/samples/resources_internal/cgrates.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
// will be used in apis/resources_it_test.go
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
"db_type": "*internal",
|
||||
},
|
||||
|
||||
"stor_db": {
|
||||
"db_type": "*internal",
|
||||
},
|
||||
|
||||
"actions": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
"thresholds": {
|
||||
"enabled": true,
|
||||
"actions_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"resources": {
|
||||
"enabled": true,
|
||||
"thresholds_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"admins": {
|
||||
"enabled": true,
|
||||
},
|
||||
}
|
||||
38
data/conf/samples/resources_mongo/cgrates.json
Normal file
38
data/conf/samples/resources_mongo/cgrates.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
// will be used in apis/resources_it_test.go
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
"db_type": "mongo",
|
||||
"db_name": "10",
|
||||
"db_port": 27017,
|
||||
},
|
||||
|
||||
"stor_db": {
|
||||
"db_type": "mongo",
|
||||
"db_name": "cgrates",
|
||||
"db_port": 27017,
|
||||
},
|
||||
|
||||
"actions": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
"thresholds": {
|
||||
"enabled": true,
|
||||
"actions_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"resources": {
|
||||
"enabled": true,
|
||||
"thresholds_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"admins": {
|
||||
"enabled": true,
|
||||
}
|
||||
}
|
||||
35
data/conf/samples/resources_mysql/cgrates.json
Normal file
35
data/conf/samples/resources_mysql/cgrates.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
// CGRateS Configuration file
|
||||
// will be used in apis/resources_it_test.go
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
},
|
||||
|
||||
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
|
||||
"db_type": "redis", // data_db type: <redis|mongo>
|
||||
"db_port": 6379, // data_db port to reach the database
|
||||
"db_name": "10", // data_db database name to connect to
|
||||
},
|
||||
|
||||
"stor_db": {
|
||||
"db_password": "CGRateS.org",
|
||||
},
|
||||
|
||||
"actions": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
"thresholds": {
|
||||
"enabled": true,
|
||||
"actions_conns": ["*localhost"],
|
||||
},
|
||||
|
||||
"resources": {
|
||||
"enabled": true,
|
||||
"thresholds_conns": ["*internal"],
|
||||
},
|
||||
|
||||
"admins": {
|
||||
"enabled": true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user