mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Fix integration test in migrator
Generic NOT_FOUND has been replaced by DSP_PROFILE_NOT_FOUND for dispatcher profiles.
This commit is contained in:
committed by
Dan Christian Bogos
parent
9f9b4d3ef1
commit
e449719892
@@ -228,10 +228,10 @@ func testDspITMigrateAndMove(t *testing.T) {
|
||||
if !reflect.DeepEqual(result, dspPrf) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", dspPrf, result)
|
||||
}
|
||||
result, err = dspMigrator.dmIN.DataManager().GetDispatcherProfile("cgrates.org",
|
||||
_, err = dspMigrator.dmIN.DataManager().GetDispatcherProfile("cgrates.org",
|
||||
"Dsp1", false, false, utils.NonTransactional)
|
||||
if err != utils.ErrNotFound {
|
||||
t.Error(err)
|
||||
if err == nil || err.Error() != utils.ErrNotFound.Error() {
|
||||
t.Errorf("expected: %v,\nreceived: %v", utils.ErrDSPProfileNotFound, err)
|
||||
}
|
||||
|
||||
resultHost, err := dspMigrator.dmOut.DataManager().GetDispatcherHost("cgrates.org",
|
||||
@@ -242,7 +242,7 @@ func testDspITMigrateAndMove(t *testing.T) {
|
||||
if !reflect.DeepEqual(resultHost, dspHost) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", dspHost, resultHost)
|
||||
}
|
||||
resultHost, err = dspMigrator.dmIN.DataManager().GetDispatcherHost("cgrates.org",
|
||||
_, err = dspMigrator.dmIN.DataManager().GetDispatcherHost("cgrates.org",
|
||||
"ALL", false, false, utils.NonTransactional)
|
||||
if err != utils.ErrDSPHostNotFound {
|
||||
t.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user