mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 07:08:45 +05:00
Added explicit test for SessionSv1GetActiveSessions with filters that don't match
This commit is contained in:
@@ -811,6 +811,17 @@ func TestSessionsVoiceSessionTTL(t *testing.T) {
|
||||
}
|
||||
|
||||
var aSessions []*ExternalSession
|
||||
if err := sessionsRPC.Call(utils.SessionSv1GetActiveSessions,
|
||||
utils.SessionFilter{
|
||||
Filters: []string{
|
||||
fmt.Sprintf("*string:~%s:%s", utils.RunID, utils.MetaDefault),
|
||||
fmt.Sprintf("*string:~%s:%s", utils.OriginID, "12372-1"),
|
||||
"*string:~no_field:10",
|
||||
},
|
||||
}, &aSessions); err == nil ||
|
||||
err.Error() != utils.ErrNotFound.Error() {
|
||||
t.Error(err, aSessions)
|
||||
}
|
||||
if err := sessionsRPC.Call(utils.SessionSv1GetActiveSessions,
|
||||
utils.SessionFilter{
|
||||
Filters: []string{
|
||||
|
||||
Reference in New Issue
Block a user