Add integration tests for actions apis (incomplete)

This commit is contained in:
ionutboangiu
2021-06-09 16:56:59 +03:00
committed by Dan Christian Bogos
parent 35b2de5a20
commit b240d82eac
5 changed files with 420 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
{
// CGRateS Configuration file
// will be used in apis/actions_it_test.go
"general": {
"log_level": 7,
},
"data_db": {
"db_type": "*internal",
},
"stor_db": {
"db_type": "*internal",
},
"actions": {
"enabled": true,
"thresholds_conns": ["*internal"],
},
"stats": {
"enabled": true,
"store_interval": "-1",
"thresholds_conns": ["*internal"],
},
"thresholds": {
"enabled": true,
"store_interval": "-1",
"actions_conns": ["*internal"],
},
"admins": {
"enabled": true,
},
}

View File

@@ -0,0 +1,41 @@
{
// CGRateS Configuration file
// will be used in apis/actions_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_conns": ["*internal"],
},
"stats": {
"enabled": true,
"store_interval": "-1",
"thresholds_conns": ["*internal"],
},
"thresholds": {
"enabled": true,
"store_interval": "-1",
"actions_conns": ["*internal"],
},
"admins": {
"enabled": true,
}
}

View File

@@ -0,0 +1,38 @@
{
// CGRateS Configuration file
// will be used in apis/actions_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_conns": ["*internal"],
},
"stats": {
"enabled": true,
"store_interval": "-1",
"thresholds_conns": ["*internal"],
},
"thresholds": {
"enabled": true,
"store_interval": "-1",
"actions_conns": ["*internal"],
},
"admins": {
"enabled": true,
}
}