[asterisk-scf-commits] asterisk-scf/integration/testsuite.git branch "review" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Jun 6 09:48:01 CDT 2011
branch "review" has been updated
via 7a7962b372b266acbae022a918b0dfd831d45730 (commit)
via 1db003777dff1d99ede812fd30317d38d0326047 (commit)
from 614647a86ea1b0467d9d5cc0325d8fc65adc2859 (commit)
Summary of changes:
events/shutdown.yaml | 10 +++
events/startup.yaml | 10 +++
plugins/testsuite-shutdown.py | 15 +++++
plugins/testsuite-startup.py | 15 +++++
.../testcase.yaml | 2 +-
tests/failover/tests.yaml | 2 +-
.../testcase.yaml | 2 +-
.../testcase.yaml | 60 ++++++++++++++++++++
.../Functional_Phones_PolycomIP430/testcase.yaml | 60 ++++++++++++++++++++
tests/sip/tests.yaml | 4 +-
10 files changed, 175 insertions(+), 5 deletions(-)
create mode 100644 events/shutdown.yaml
create mode 100644 events/startup.yaml
create mode 100644 plugins/testsuite-shutdown.py
create mode 100644 plugins/testsuite-startup.py
copy tests/failover/{SysTest_Functional_Basic_Call_Setup_w_Failover => Functional_Basic_Call_Setup_w_Failover}/testcase.yaml (90%)
copy tests/sip/{SysTest_Functional_Basic_CallSetup => Functional_Basic_CallSetup}/testcase.yaml (99%)
create mode 100644 tests/sip/Functional_Basic_CallSetup_Phones_Cisco79xx/testcase.yaml
create mode 100644 tests/sip/Functional_Basic_CallSetup_Phones_PolycomIP430/testcase.yaml
create mode 100644 tests/sip/Functional_Check_Username_Enumeration_On_Register/testcase.yaml
create mode 100644 tests/sip/Functional_Phones_Cisco79xx/testcase.yaml
create mode 100644 tests/sip/Functional_Phones_PolycomIP430/testcase.yaml
create mode 100644 tests/sip/Functional_Refer_Replaces_To_Self/testcase.yaml
create mode 100644 tests/sip/Functional_Registrar/testcase.yaml
create mode 100644 tests/sip/Functional_RequestMethods/testcase.yaml
create mode 100644 tests/sip/Performance_Maximum_CPS/testcase.yaml
create mode 100644 tests/sip/Stress_Maximum_Simultaneous_Calls/testcase.yaml
- Log -----------------------------------------------------------------
commit 7a7962b372b266acbae022a918b0dfd831d45730
Author: Darren Sessions <dsessions at digium.com>
Date: Mon Jun 6 09:46:56 2011 -0500
Modified the test-cases for the polycom and cisco phones to basic call setup tests directory names. Proceeding with this naming convention will better reflect the type of test.
diff --git a/tests/sip/Functional_Basic_CallSetup_Phones_Cisco79xx/testcase.yaml b/tests/sip/Functional_Basic_CallSetup_Phones_Cisco79xx/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/Functional_Basic_CallSetup_Phones_PolycomIP430/testcase.yaml b/tests/sip/Functional_Basic_CallSetup_Phones_PolycomIP430/testcase.yaml
new file mode 100644
index 0000000..67cd7ba
--- /dev/null
+++ b/tests/sip/Functional_Basic_CallSetup_Phones_PolycomIP430/testcase.yaml
@@ -0,0 +1,60 @@
+name : SysTest_Functional_Basic_CallSetup
+options :
+ network_captures: True
+ call_flow_diagrams: True
+ restart_persistant_plugins_between_tests: False
+tests :
+ - ipv4toipv4 :
+ expected_failure : False
+ timeline:
+ - asteriskscf_icebox :
+ testsuite_remote : testsuite-server.digium.internal
+ cmd :
+ start :
+ - service_locator_replicator
+ - service_locator
+ - logger_server
+ - bridge_state_replicator
+ - bridge
+ - routing_state_replicator
+ - routing
+ - sip_state_replicator
+ - sip_session_gateway
+ - rtp_state_replicator
+ - asteriskscf_configurator :
+ testsuite_remote : testsuite-server.digium.internal
+ configuration_wipe : True
+ cmd :
+ sip :
+ - localhost_udp :
+ type : transport_udp
+ host : 10.19.139.80
+ port : 5060
+ - service :
+ type : endpoint
+ targethost : 10.19.139.77
+ targetport : 5060
+ direction : both
+ - sipp :
+ type : endpoint
+ targethost : 10.19.139.79
+ targetport : 5060
+ direction : both
+ - sipp:
+ testsuite_remote : testsuite-remote-1.digium.internal
+ cmd :
+ - uas :
+ transport : udp
+ - sipp:
+ testsuite_remote : testsuite-remote-2.digium.internal
+ cmd :
+ - uac :
+ transport : udp
+ calls : 10
+ cps : 1
+ duration : 10
+ targethost : 10.19.139.80
+ targetport : 5060
+ - ipv6toipv6 :
+ - ipv4toipv6 :
+ - ipv6toipv4 :
commit 1db003777dff1d99ede812fd30317d38d0326047
Author: Darren Sessions <dsessions at digium.com>
Date: Mon Jun 6 09:39:36 2011 -0500
Adding support for remote startup and shutdown events. As the remotes run in constant loop, it is impossible to have startup and shutdown functions that aren't called via an rpc command. Instead of making these events tests, Ive placed them in a new events folder and am in the process of modifying the yaml parser to dip in that folder and prepend the startup yaml file to the test data and append the shutdown yaml file to the test data. This makes the code simple as everything is running through the same processing logic and code. Additionally, I've added placeholder testcase yaml files for several tests I'm working on.
diff --git a/events/shutdown.yaml b/events/shutdown.yaml
new file mode 100644
index 0000000..9d98644
--- /dev/null
+++ b/events/shutdown.yaml
@@ -0,0 +1,10 @@
+name : Shutdown Remotes
+tests :
+ - remoteShutdown :
+ timeline:
+ - remoteShutdown :
+ remotes :
+ testsuite-remote-1.digium.internal
+ testsuite-remote-2.digium.internal
+ testsuite-remote-3.digium.internal
+ testsuite-builder-1.digium.internal
diff --git a/events/startup.yaml b/events/startup.yaml
new file mode 100644
index 0000000..cd13bda
--- /dev/null
+++ b/events/startup.yaml
@@ -0,0 +1,10 @@
+name : Init Remotes
+tests :
+ - remoteInit :
+ timeline:
+ - remoteInit :
+ remotes :
+ testsuite-remote-1.digium.internal
+ testsuite-remote-2.digium.internal
+ testsuite-remote-3.digium.internal
+ testsuite-builder-1.digium.internal
diff --git a/plugins/testsuite-shutdown.py b/plugins/testsuite-shutdown.py
new file mode 100644
index 0000000..7fe832d
--- /dev/null
+++ b/plugins/testsuite-shutdown.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+'''
+
+ Test-Suite Remote Shutdown Plugin
+
+ Copyright (C) 2011, Digium, Inc.
+
+ This program is free software, distributed under the terms of
+ the GNU General Public License Version 2.
+
+'''
+
+class plugin(TestSuite.RemoteBaseClass):
+ def main(self, testData, testPath, globalVars, rpc):
+ print testData
diff --git a/plugins/testsuite-startup.py b/plugins/testsuite-startup.py
new file mode 100644
index 0000000..91d05ab
--- /dev/null
+++ b/plugins/testsuite-startup.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+'''
+
+ Test-Suite Remote Startup Plugin
+
+ Copyright (C) 2011, Digium, Inc.
+
+ This program is free software, distributed under the terms of
+ the GNU General Public License Version 2.
+
+'''
+
+class plugin(TestSuite.RemoteBaseClass):
+ def main(self, testData, testPath, globalVars, rpc):
+ print testData
diff --git a/tests/failover/Functional_Basic_Call_Setup_w_Failover/testcase.yaml b/tests/failover/Functional_Basic_Call_Setup_w_Failover/testcase.yaml
new file mode 100644
index 0000000..89beebb
--- /dev/null
+++ b/tests/failover/Functional_Basic_Call_Setup_w_Failover/testcase.yaml
@@ -0,0 +1,16 @@
+name : Functional_Basic_Call_Setup_w_Failover
+options :
+ network_captures: True
+ call_flow_diagrams: True
+ restart_persistant_plugins_between_tests: False
+tests :
+ - ipv4 :
+ expected_failure : False
+ timeline :
+ - failover :
+ cmd :
+ testsuite_remote_active : testsuite-remote-1.digium.internal
+ testsuite_remote_standby : testsuite-remote-2.digium.internal
+ ipv4oripv6 : ipv4
+ ipv4_network_addr : 10.19.136.0
+ shared_ip : 10.19.139.44
diff --git a/tests/failover/tests.yaml b/tests/failover/tests.yaml
index 7c9a36c..d858490 100644
--- a/tests/failover/tests.yaml
+++ b/tests/failover/tests.yaml
@@ -1,2 +1,2 @@
testcase :
- - SysTest_Functional_Basic_Call_Setup_w_Failover
+ - Functional_Basic_Call_Setup_w_Failover
diff --git a/tests/sip/Functional_Basic_CallSetup/testcase.yaml b/tests/sip/Functional_Basic_CallSetup/testcase.yaml
new file mode 100644
index 0000000..77c1919
--- /dev/null
+++ b/tests/sip/Functional_Basic_CallSetup/testcase.yaml
@@ -0,0 +1,279 @@
+name : Functional_Basic_CallSetup
+options :
+ network_captures: True
+ call_flow_diagrams: True
+ restart_persistant_plugins_between_tests: True
+tests :
+ - ipv4toipv4 :
+ expected_failure : False
+ timeline:
+ - asteriskscf_icebox :
+ testsuite_remote_host : testsuite-remote-1.digium.internal
+ cmd :
+ start :
+ - service_locator
+ - bridge
+ - routing
+ - sip_session_gateway
+ - media_rtp_pjmedia
+ - asteriskscf_configurator :
+ service_locator_host : testsuite-remote-1.digium.internal
+ configuration_wipe : False
+ cmd :
+ sip :
+ - listen_udp4 :
+ type : transport_udp
+ host : testsuite-remote-1.digium.internal
+ port : 5060
+ ipv4oripv6 : ipv4
+ - service :
+ type : endpoint
+ targethost : testsuite-remote-2.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv4
+ direction : both
+ securetransport : none
+ rtpoveripv6 : False
+ - sipp :
+ type : endpoint
+ targethost : testsuite-remote-3.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv4
+ direction : both
+ securetransport : none
+ rtpoveripv6 : False
+ rtp :
+ - general :
+ startport : 10001
+ endport : 20000
+ workerthreadcount : 4
+ - sipp:
+ testsuite_remote_host : testsuite-remote-2.digium.internal
+ cmd :
+ - uas :
+ transport : udp
+ ipv4oripv6 : ipv4
+ timeout : 10
+ - sipp:
+ testsuite_remote_host : testsuite-remote-3.digium.internal
+ cmd :
+ - uac :
+ calls : 1
+ cps : 1
+ duration : 10
+ targethost : testsuite-remote-1.digium.internal
+ ipv4oripv6 : ipv4
+ transport : udp
+ timeout : 10
+ - ipv6toipv6 :
+ expected_failure : False
+ timeline:
+ - asteriskscf_icebox :
+ testsuite_remote_host : testsuite-remote-1.digium.internal
+ cmd :
+ start :
+ - service_locator
+ - logger_server
+ - bridge
+ - routing
+ - sip_session_gateway
+ - media_rtp_pjmedia
+ - asteriskscf_configurator :
+ service_locator_host : testsuite-remote-1.digium.internal
+ configuration_wipe : False
+ cmd :
+ sip :
+ - listen_udp6 :
+ type : transport_udp
+ host : testsuite-remote-1.digium.internal
+ port : 5060
+ ipv4oripv6 : ipv6
+ - service :
+ type : endpoint
+ targethost : testsuite-remote-2.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv6
+ direction : both
+ securetransport : none
+ rtpoveripv6 : True
+ - sipp :
+ type : endpoint
+ targethost : testsuite-remote-3.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv6
+ direction : both
+ securetransport : none
+ rtpoveripv6 : True
+ rtp :
+ - general :
+ startport : 10001
+ endport : 20000
+ workerthreadcount : 4
+ - sipp:
+ testsuite_remote_host : testsuite-remote-2.digium.internal
+ cmd :
+ - uas :
+ transport : udp
+ ipv4oripv6 : ipv6
+ timeout : 10
+ - sipp:
+ testsuite_remote_host : testsuite-remote-3.digium.internal
+ cmd :
+ - uac :
+ calls : 1
+ cps : 1
+ duration : 10
+ targethost : testsuite-remote-1.digium.internal
+ ipv4oripv6 : ipv6
+ transport : udp
+ timeout : 10
+ - ipv6toipv4 :
+ expected_failure : False
+ timeline:
+ - asteriskscf_icebox :
+ testsuite_remote_host : testsuite-remote-1.digium.internal
+ cmd :
+ start :
+ - service_locator
+ - logger_server
+ - bridge
+ - routing
+ - sip_session_gateway
+ - media_rtp_pjmedia
+ - asteriskscf_configurator :
+ service_locator_host : testsuite-remote-1.digium.internal
+ configuration_wipe : False
+ cmd :
+ sip :
+ - listen_udp4 :
+ type : transport_udp
+ host : testsuite-remote-1.digium.internal
+ port : 5060
+ ipv4oripv6 : ipv4
+ - listen_udp6 :
+ type : transport_udp
+ host : testsuite-remote-1.digium.internal
+ port : 5060
+ ipv4oripv6 : ipv6
+ - service :
+ type : endpoint
+ targethost : testsuite-remote-2.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv4
+ direction : both
+ securetransport : none
+ rtpoveripv6 : False
+ - sipp :
+ type : endpoint
+ targethost : testsuite-remote-3.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv6
+ direction : both
+ securetransport : none
+ rtpoveripv6 : True
+ rtp :
+ - general :
+ startport : 10001
+ endport : 20000
+ workerthreadcount : 4
+ - sipp:
+ testsuite_remote_host : testsuite-remote-2.digium.internal
+ cmd :
+ - uas :
+ transport : udp
+ ipv4oripv6 : ipv4
+ timeout : 10
+ - sipp:
+ testsuite_remote_host : testsuite-remote-3.digium.internal
+ cmd :
+ - uac :
+ calls : 1
+ cps : 1
+ duration : 10
+ targethost : testsuite-remote-1.digium.internal
+ ipv4oripv6 : ipv6
+ transport : udp
+ timeout : 10
+ - ipv4toipv6 :
+ expected_failure : False
+ timeline:
+ - asteriskscf_icebox :
+ testsuite_remote_host : testsuite-remote-1.digium.internal
+ cmd :
+ start :
+ - service_locator
+ - logger_server
+ - bridge
+ - routing
+ - sip_session_gateway
+ - media_rtp_pjmedia
+ - asteriskscf_configurator :
+ service_locator_host : testsuite-remote-1.digium.internal
+ configuration_wipe : False
+ cmd :
+ sip :
+ - listen_udp4 :
+ type : transport_udp
+ host : testsuite-remote-1.digium.internal
+ port : 5060
+ ipv4oripv6 : ipv4
+ - listen_udp6 :
+ type : transport_udp
+ host : testsuite-remote-1.digium.internal
+ port : 5060
+ ipv4oripv6 : ipv6
+ - service :
+ type : endpoint
+ targethost : testsuite-remote-2.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv6
+ direction : both
+ securetransport : none
+ rtpoveripv6 : True
+ - sipp :
+ type : endpoint
+ targethost : testsuite-remote-3.digium.internal
+ targetport : 5060
+ sourcehost : testsuite-remote-1.digium.internal
+ sourceport : 5060
+ ipv4oripv6 : ipv4
+ direction : both
+ securetransport : none
+ rtpoveripv6 : False
+ rtp :
+ - general :
+ startport : 10001
+ endport : 20000
+ workerthreadcount : 4
+ - sipp:
+ testsuite_remote_host : testsuite-remote-2.digium.internal
+ cmd :
+ - uas :
+ transport : udp
+ ipv4oripv6 : ipv6
+ timeout : 10
+ - sipp:
+ testsuite_remote_host : testsuite-remote-3.digium.internal
+ cmd :
+ - uac :
+ calls : 1
+ cps : 1
+ duration : 10
+ targethost : testsuite-remote-1.digium.internal
+ ipv4oripv6 : ipv4
+ transport : udp
+ timeout : 10
diff --git a/tests/sip/Functional_Check_Username_Enumeration_On_Register/testcase.yaml b/tests/sip/Functional_Check_Username_Enumeration_On_Register/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/Functional_Phones_Cisco79xx/testcase.yaml b/tests/sip/Functional_Phones_Cisco79xx/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/Functional_Phones_PolycomIP430/testcase.yaml b/tests/sip/Functional_Phones_PolycomIP430/testcase.yaml
new file mode 100644
index 0000000..67cd7ba
--- /dev/null
+++ b/tests/sip/Functional_Phones_PolycomIP430/testcase.yaml
@@ -0,0 +1,60 @@
+name : SysTest_Functional_Basic_CallSetup
+options :
+ network_captures: True
+ call_flow_diagrams: True
+ restart_persistant_plugins_between_tests: False
+tests :
+ - ipv4toipv4 :
+ expected_failure : False
+ timeline:
+ - asteriskscf_icebox :
+ testsuite_remote : testsuite-server.digium.internal
+ cmd :
+ start :
+ - service_locator_replicator
+ - service_locator
+ - logger_server
+ - bridge_state_replicator
+ - bridge
+ - routing_state_replicator
+ - routing
+ - sip_state_replicator
+ - sip_session_gateway
+ - rtp_state_replicator
+ - asteriskscf_configurator :
+ testsuite_remote : testsuite-server.digium.internal
+ configuration_wipe : True
+ cmd :
+ sip :
+ - localhost_udp :
+ type : transport_udp
+ host : 10.19.139.80
+ port : 5060
+ - service :
+ type : endpoint
+ targethost : 10.19.139.77
+ targetport : 5060
+ direction : both
+ - sipp :
+ type : endpoint
+ targethost : 10.19.139.79
+ targetport : 5060
+ direction : both
+ - sipp:
+ testsuite_remote : testsuite-remote-1.digium.internal
+ cmd :
+ - uas :
+ transport : udp
+ - sipp:
+ testsuite_remote : testsuite-remote-2.digium.internal
+ cmd :
+ - uac :
+ transport : udp
+ calls : 10
+ cps : 1
+ duration : 10
+ targethost : 10.19.139.80
+ targetport : 5060
+ - ipv6toipv6 :
+ - ipv4toipv6 :
+ - ipv6toipv4 :
diff --git a/tests/sip/Functional_Refer_Replaces_To_Self/testcase.yaml b/tests/sip/Functional_Refer_Replaces_To_Self/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/Functional_Registrar/testcase.yaml b/tests/sip/Functional_Registrar/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/Functional_RequestMethods/testcase.yaml b/tests/sip/Functional_RequestMethods/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/Performance_Maximum_CPS/testcase.yaml b/tests/sip/Performance_Maximum_CPS/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/Stress_Maximum_Simultaneous_Calls/testcase.yaml b/tests/sip/Stress_Maximum_Simultaneous_Calls/testcase.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/tests/sip/tests.yaml b/tests/sip/tests.yaml
index 4b3a3eb..77530b6 100644
--- a/tests/sip/tests.yaml
+++ b/tests/sip/tests.yaml
@@ -1,3 +1,3 @@
testcase :
- - SysTest_Functional_Basic_CallSetup
-# - SysTest_Functional_Phones_PolycomIP430
+ - Functional_Basic_CallSetup
+# - Functional_Phones_PolycomIP430
-----------------------------------------------------------------------
--
asterisk-scf/integration/testsuite.git
More information about the asterisk-scf-commits
mailing list