mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 22:29:55 +05:00
Active test in migrator
This commit is contained in:
committed by
Dan Christian Bogos
parent
8f0a3b50b8
commit
a5f9dff089
@@ -40,15 +40,13 @@ var (
|
||||
// subtests to be executed for each migrator
|
||||
var sTestsITMigrator = []func(t *testing.T){
|
||||
testFlush,
|
||||
/*
|
||||
testMigratorAccounts,
|
||||
testMigratorActionPlans,
|
||||
testMigratorActionTriggers,
|
||||
testMigratorActions,
|
||||
testMigratorSharedGroups,
|
||||
testMigratorStats,
|
||||
testMigratorTPRatingProfile,
|
||||
*/
|
||||
testMigratorAccounts,
|
||||
testMigratorActionPlans,
|
||||
testMigratorActionTriggers,
|
||||
testMigratorActions,
|
||||
testMigratorSharedGroups,
|
||||
testMigratorStats,
|
||||
testMigratorTPRatingProfile,
|
||||
testMigratorTPSuppliers,
|
||||
testFlush,
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ func (m *Migrator) migrateSupplierProfiles() (err error) {
|
||||
return utils.NewCGRError(utils.Migrator,
|
||||
utils.MandatoryIEMissingCaps,
|
||||
utils.UndefinedVersion,
|
||||
"version number is not defined for ActionTriggers model")
|
||||
"version number is not defined for SupplierProfiles model")
|
||||
}
|
||||
switch vrs[utils.Suppliers] {
|
||||
case current[utils.Suppliers]:
|
||||
|
||||
@@ -32,7 +32,7 @@ func (m *Migrator) migrateCurrentTPSuppliers() (err error) {
|
||||
}
|
||||
|
||||
for _, tpid := range tpids {
|
||||
ids, err := m.InStorDB().GetTpTableIds(tpid, utils.TBLTPSuppliers, utils.TPDistinctIds{}, map[string]string{}, nil)
|
||||
ids, err := m.InStorDB().GetTpTableIds(tpid, utils.TBLTPSuppliers, utils.TPDistinctIds{"id"}, map[string]string{}, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user