mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add new unit tests on agents
This commit is contained in:
committed by
Dan Christian Bogos
parent
a945fccad6
commit
37161e8ea4
@@ -99,3 +99,23 @@ func TestAstAgentV1WarnDisconnect(t *testing.T) {
|
||||
t.Errorf("Expected error: %v, got: %v", utils.ErrNotImplemented, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAsteriskAgentV1DisconnectPeer(t *testing.T) {
|
||||
tAsteriskAgent := &AsteriskAgent{}
|
||||
tDPRArgs := &utils.DPRArgs{}
|
||||
tString := ""
|
||||
err := tAsteriskAgent.V1DisconnectPeer(nil, tDPRArgs, &tString)
|
||||
if err != utils.ErrNotImplemented {
|
||||
t.Errorf("Expected error: %v, got: %v", utils.ErrNotImplemented, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAsteriskAgentV1AlterSession(t *testing.T) {
|
||||
tAsteriskAgent := &AsteriskAgent{}
|
||||
tCGREvent := utils.CGREvent{}
|
||||
tString := ""
|
||||
err := tAsteriskAgent.V1AlterSession(nil, tCGREvent, &tString)
|
||||
if err != utils.ErrNotImplemented {
|
||||
t.Errorf("Expected error: %v, got: %v", utils.ErrNotImplemented, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user