Add integration tests for resource apis final

This commit is contained in:
ionutboangiu
2021-06-04 13:25:08 +03:00
committed by Dan Christian Bogos
parent ae7fcf3910
commit 1eb68fe1a2
4 changed files with 276 additions and 131 deletions

View 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,
},
}

View 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,
}
}

View 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,
}
}