diff --git a/config/erscfg_test.go b/config/erscfg_test.go index a4ce4d238..42f0eebb4 100644 --- a/config/erscfg_test.go +++ b/config/erscfg_test.go @@ -149,7 +149,8 @@ func TestEventReaderLoadFromJSON(t *testing.T) { Timezone: utils.EmptyString, Filters: nil, Flags: utils.FlagsWithParams{}, - + Fields: []*FCTemplate{ + {Tag: "TOR", FieldId: "ToR", Type: utils.MetaVariable, Value: NewRSRParsersMustCompile("~*req.2", true, utils.INFIELD_SEP), Mandatory: true}, {Tag: "OriginID", FieldId: "OriginID", Type: utils.MetaVariable, Value: NewRSRParsersMustCompile("~*req.3", true, utils.INFIELD_SEP), Mandatory: true}, diff --git a/integration_test.sh b/integration_test.sh index d49e5407d..c40837e62 100755 --- a/integration_test.sh +++ b/integration_test.sh @@ -32,33 +32,33 @@ echo 'go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=* go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*internal dis_internal=$? # SQL -echo 'go test github.com/cgrates/cgrates/apier/v1 -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/apier/v1 -tags=integration -dbtype=*sql -ap1_sql=$? -echo 'go test github.com/cgrates/cgrates/apier/v2 -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/apier/v2 -tags=integration -dbtype=*sql -ap2_sql=$? -echo 'go test github.com/cgrates/cgrates/engine -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/engine -tags=integration -dbtype=*sql -en_sql=$? -echo 'go test github.com/cgrates/cgrates/ers -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/ers -tags=integration -dbtype=*sql -ers_sql=$? -echo 'go test github.com/cgrates/cgrates/loaders -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/loaders -tags=integration -dbtype=*sql -lds_sql=$? -echo 'go test github.com/cgrates/cgrates/general_tests -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/general_tests -tags=integration -dbtype=*sql -gnr_sql=$? -echo 'go test github.com/cgrates/cgrates/agents -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/agents -tags=integration -dbtype=*sql -agts_sql=$? -echo 'go test github.com/cgrates/cgrates/sessions -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/sessions -tags=integration -dbtype=*sql -smg_sql=$? -echo 'go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*sql' -go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*sql -dis_sql=$? +echo 'go test github.com/cgrates/cgrates/apier/v1 -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/apier/v1 -tags=integration -dbtype=*mysql +ap1_mysql=$? +echo 'go test github.com/cgrates/cgrates/apier/v2 -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/apier/v2 -tags=integration -dbtype=*mysql +ap2_mysql=$? +echo 'go test github.com/cgrates/cgrates/engine -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/engine -tags=integration -dbtype=*mysql +en_mysql=$? +echo 'go test github.com/cgrates/cgrates/ers -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/ers -tags=integration -dbtype=*mysql +ers_mysql=$? +echo 'go test github.com/cgrates/cgrates/loaders -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/loaders -tags=integration -dbtype=*mysql +lds_mysql=$? +echo 'go test github.com/cgrates/cgrates/general_tests -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/general_tests -tags=integration -dbtype=*mysql +gnr_mysql=$? +echo 'go test github.com/cgrates/cgrates/agents -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/agents -tags=integration -dbtype=*mysql +agts_mysql=$? +echo 'go test github.com/cgrates/cgrates/sessions -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/sessions -tags=integration -dbtype=*mysql +smg_mysql=$? +echo 'go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*mysql' +go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*mysql +dis_mysql=$? # Mongo echo 'go test github.com/cgrates/cgrates/apier/v1 -tags=integration -dbtype=*mongo' go test github.com/cgrates/cgrates/apier/v1 -tags=integration -dbtype=*mongo