From f5984b4e77ed7079266a6a7d6b414967999bc0bb Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 11 Dec 2018 19:12:39 +0100 Subject: [PATCH] Tests for AsteriskAgent, FreeSWITCHAgent and KamailioAgents for sessions.SessionSClient implementation --- agents/astagent_test.go | 28 ++++++++++++++++++++++++++++ agents/fsagent_test.go | 28 ++++++++++++++++++++++++++++ agents/kamagent_test.go | 28 ++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 agents/astagent_test.go create mode 100644 agents/fsagent_test.go create mode 100644 agents/kamagent_test.go diff --git a/agents/astagent_test.go b/agents/astagent_test.go new file mode 100644 index 000000000..6fa0cc113 --- /dev/null +++ b/agents/astagent_test.go @@ -0,0 +1,28 @@ +/* +Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments +Copyright (C) ITsysCOM GmbH + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ +package agents + +import ( + "testing" + + "github.com/cgrates/cgrates/sessions" +) + +func TestAAsSessionSClientIface(t *testing.T) { + _ = sessions.SessionSClient(new(AsteriskAgent)) +} diff --git a/agents/fsagent_test.go b/agents/fsagent_test.go new file mode 100644 index 000000000..76b0e03aa --- /dev/null +++ b/agents/fsagent_test.go @@ -0,0 +1,28 @@ +/* +Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments +Copyright (C) ITsysCOM GmbH + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ +package agents + +import ( + "testing" + + "github.com/cgrates/cgrates/sessions" +) + +func TestFAsSessionSClientIface(t *testing.T) { + _ = sessions.SessionSClient(new(FSsessions)) +} diff --git a/agents/kamagent_test.go b/agents/kamagent_test.go new file mode 100644 index 000000000..8cd9729c8 --- /dev/null +++ b/agents/kamagent_test.go @@ -0,0 +1,28 @@ +/* +Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments +Copyright (C) ITsysCOM GmbH + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ +package agents + +import ( + "testing" + + "github.com/cgrates/cgrates/sessions" +) + +func TestKAsSessionSClientIface(t *testing.T) { + _ = sessions.SessionSClient(new(KamailioAgent)) +}