autobahn 0.3.1__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Python27/Lib/site-packages/autobahn/__init__.py +22 -0
- Python27/Lib/site-packages/autobahn/__init__.pyc +0 -0
- Python27/Lib/site-packages/autobahn/autobahn.py +76 -0
- Python27/Lib/site-packages/autobahn/autobahn.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/__init__.py +207 -0
- Python27/Lib/site-packages/autobahn/case/__init__.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case.py +68 -0
- Python27/Lib/site-packages/autobahn/case/case.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_1.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_2.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_3.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_4.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_5.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_6.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_7.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_7.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_8.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_1_8.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_1.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_2.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_3.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_4.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_5.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_6.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_7.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_7.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_8.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case1_2_8.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_1.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case2_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_10.py +37 -0
- Python27/Lib/site-packages/autobahn/case/case2_10.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_11.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case2_11.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_2.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case2_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_3.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case2_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_4.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case2_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_5.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case2_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_6.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case2_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_7.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case2_7.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_8.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case2_8.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case2_9.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case2_9.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case3_1.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case3_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case3_2.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case3_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case3_3.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case3_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case3_4.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case3_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case3_5.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case3_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case3_6.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case3_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case3_7.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case3_7.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_1.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_2.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_3.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_4.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_5.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case4_1_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_1.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_2.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_3.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_4.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_5.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case4_2_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_1.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_10.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_10.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_11.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_11.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_12.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_12.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_13.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_13.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_14.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_14.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_15.py +35 -0
- Python27/Lib/site-packages/autobahn/case/case5_15.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_16.py +33 -0
- Python27/Lib/site-packages/autobahn/case/case5_16.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_17.py +33 -0
- Python27/Lib/site-packages/autobahn/case/case5_17.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_18.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_18.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_19.py +56 -0
- Python27/Lib/site-packages/autobahn/case/case5_19.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_2.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_20.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_20.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_3.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case5_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_4.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case5_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_5.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case5_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_6.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case5_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_7.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case5_7.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_8.py +34 -0
- Python27/Lib/site-packages/autobahn/case/case5_8.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case5_9.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case5_9.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case6_1.py +30 -0
- Python27/Lib/site-packages/autobahn/case/case6_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case6_2.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case6_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case6_3.py +33 -0
- Python27/Lib/site-packages/autobahn/case/case6_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_1.py +54 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_2.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_3.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_4.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_5.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_6.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_1_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_1.py +54 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_2.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_3.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_4.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_5.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_6.py +31 -0
- Python27/Lib/site-packages/autobahn/case/case9_2_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_1.py +55 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_2.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_3.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_4.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_5.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_6.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_7.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_7.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_8.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_8.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_9.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_3_9.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_1.py +55 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_2.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_3.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_4.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_5.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_6.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_7.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_7.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_8.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_8.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_9.py +32 -0
- Python27/Lib/site-packages/autobahn/case/case9_4_9.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_1.py +58 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_2.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_3.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_4.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_5.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_6.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_5_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_1.py +58 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_1.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_2.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_2.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_3.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_3.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_4.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_4.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_5.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_5.pyc +0 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_6.py +28 -0
- Python27/Lib/site-packages/autobahn/case/case9_6_6.pyc +0 -0
- Python27/Lib/site-packages/autobahn/fuzzing.py +911 -0
- Python27/Lib/site-packages/autobahn/fuzzing.pyc +0 -0
- Python27/Lib/site-packages/autobahn/websocket.py +1505 -0
- Python27/Lib/site-packages/autobahn/websocket.pyc +0 -0
- Python27/Lib/site-packages/autobahn-0.3.1-py2.7.egg-info/PKG-INFO +10 -0
- Python27/Lib/site-packages/autobahn-0.3.1-py2.7.egg-info/SOURCES.txt +124 -0
- Python27/Lib/site-packages/autobahn-0.3.1-py2.7.egg-info/dependency_links.txt +1 -0
- Python27/Lib/site-packages/autobahn-0.3.1-py2.7.egg-info/not-zip-safe +1 -0
- Python27/Lib/site-packages/autobahn-0.3.1-py2.7.egg-info/requires.txt +1 -0
- Python27/Lib/site-packages/autobahn-0.3.1-py2.7.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_4_1 import Case9_4_1
|
|
20
|
+
|
|
21
|
+
class Case9_4_9(Case9_4_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send fragmented binary message message with message payload of length 8 * 2**20 (8M). Sent out in fragments of 8M."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed binary message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def init(self):
|
|
28
|
+
self.DATALEN = 8 * 2**20
|
|
29
|
+
self.FRAGSIZE = 8 * 2**20
|
|
30
|
+
self.PAYLOAD = "*" * self.DATALEN
|
|
31
|
+
self.WAITSECS = 10
|
|
32
|
+
self.reportTime = True
|
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case import Case
|
|
20
|
+
|
|
21
|
+
class Case9_5_1(Case):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send text message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 1 octet."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 1
|
|
29
|
+
|
|
30
|
+
def init(self):
|
|
31
|
+
self.DATALEN = 1 * 2**20
|
|
32
|
+
self.PAYLOAD = "BAsd7&jh23"
|
|
33
|
+
self.WAITSECS = 200
|
|
34
|
+
self.reportTime = True
|
|
35
|
+
self.setChopSize()
|
|
36
|
+
|
|
37
|
+
def onOpen(self):
|
|
38
|
+
self.p.createWirelog = False
|
|
39
|
+
self.behavior = Case.FAILED
|
|
40
|
+
self.result = "Did not receive message within %d seconds." % self.WAITSECS
|
|
41
|
+
self.p.sendFrame(opcode = 1, payload = self.PAYLOAD, payload_len = self.DATALEN, chopsize = self.chopsize)
|
|
42
|
+
self.p.killAfter(self.WAITSECS)
|
|
43
|
+
|
|
44
|
+
def onMessage(self, msg, binary):
|
|
45
|
+
if binary:
|
|
46
|
+
self.result = "Expected text message with payload, but got binary."
|
|
47
|
+
else:
|
|
48
|
+
if len(msg) != self.DATALEN:
|
|
49
|
+
self.result = "Expected text message with payload of length %d, but got %d." % (self.DATALEN, len(msg))
|
|
50
|
+
else:
|
|
51
|
+
## FIXME : check actual content
|
|
52
|
+
##
|
|
53
|
+
self.behavior = Case.OK
|
|
54
|
+
self.result = "Received text message of length %d." % len(msg)
|
|
55
|
+
self.p.failConnection()
|
|
56
|
+
|
|
57
|
+
def onConnectionLost(self, failedByMe):
|
|
58
|
+
pass
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_5_1 import Case9_5_1
|
|
20
|
+
|
|
21
|
+
class Case9_5_2(Case9_5_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send text message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 4 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 4
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_5_1 import Case9_5_1
|
|
20
|
+
|
|
21
|
+
class Case9_5_3(Case9_5_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send text message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 16 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 16
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_5_1 import Case9_5_1
|
|
20
|
+
|
|
21
|
+
class Case9_5_4(Case9_5_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send text message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 64 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 64
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_5_1 import Case9_5_1
|
|
20
|
+
|
|
21
|
+
class Case9_5_5(Case9_5_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send text message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 256 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 256
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_5_1 import Case9_5_1
|
|
20
|
+
|
|
21
|
+
class Case9_5_6(Case9_5_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send text message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 1024 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 1024
|
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case import Case
|
|
20
|
+
|
|
21
|
+
class Case9_6_1(Case):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send binary message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 1 octet."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed binary message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 1
|
|
29
|
+
|
|
30
|
+
def init(self):
|
|
31
|
+
self.DATALEN = 1 * 2**20
|
|
32
|
+
self.PAYLOAD = "\x00\xfe\x23\xfa\xf0"
|
|
33
|
+
self.WAITSECS = 200
|
|
34
|
+
self.reportTime = True
|
|
35
|
+
self.setChopSize()
|
|
36
|
+
|
|
37
|
+
def onOpen(self):
|
|
38
|
+
self.p.createWirelog = False
|
|
39
|
+
self.behavior = Case.FAILED
|
|
40
|
+
self.result = "Did not receive message within %d seconds." % self.WAITSECS
|
|
41
|
+
self.p.sendFrame(opcode = 2, payload = self.PAYLOAD, payload_len = self.DATALEN, chopsize = self.chopsize)
|
|
42
|
+
self.p.killAfter(self.WAITSECS)
|
|
43
|
+
|
|
44
|
+
def onMessage(self, msg, binary):
|
|
45
|
+
if not binary:
|
|
46
|
+
self.result = "Expected binary message with payload, but got text."
|
|
47
|
+
else:
|
|
48
|
+
if len(msg) != self.DATALEN:
|
|
49
|
+
self.result = "Expected binary message with payload of length %d, but got %d." % (self.DATALEN, len(msg))
|
|
50
|
+
else:
|
|
51
|
+
## FIXME : check actual content
|
|
52
|
+
##
|
|
53
|
+
self.behavior = Case.OK
|
|
54
|
+
self.result = "Received binary message of length %d." % len(msg)
|
|
55
|
+
self.p.failConnection()
|
|
56
|
+
|
|
57
|
+
def onConnectionLost(self, failedByMe):
|
|
58
|
+
pass
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_6_1 import Case9_6_1
|
|
20
|
+
|
|
21
|
+
class Case9_6_2(Case9_6_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send binary message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 4 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 4
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_6_1 import Case9_6_1
|
|
20
|
+
|
|
21
|
+
class Case9_6_3(Case9_6_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send binary message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 16 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 16
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_6_1 import Case9_6_1
|
|
20
|
+
|
|
21
|
+
class Case9_6_4(Case9_6_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send binary message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 64 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 64
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_6_1 import Case9_6_1
|
|
20
|
+
|
|
21
|
+
class Case9_6_5(Case9_6_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send binary message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 256 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 256
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
##
|
|
3
|
+
## Copyright 2011 Tavendo GmbH
|
|
4
|
+
##
|
|
5
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
## you may not use this file except in compliance with the License.
|
|
7
|
+
## You may obtain a copy of the License at
|
|
8
|
+
##
|
|
9
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
##
|
|
11
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
## See the License for the specific language governing permissions and
|
|
15
|
+
## limitations under the License.
|
|
16
|
+
##
|
|
17
|
+
###############################################################################
|
|
18
|
+
|
|
19
|
+
from case9_6_1 import Case9_6_1
|
|
20
|
+
|
|
21
|
+
class Case9_6_6(Case9_6_1):
|
|
22
|
+
|
|
23
|
+
DESCRIPTION = """Send binary message message with payload of length 1 * 2**20 (1M). Sent out data in chops of 1024 octets."""
|
|
24
|
+
|
|
25
|
+
EXPECTATION = """Receive echo'ed text message (with payload as sent)."""
|
|
26
|
+
|
|
27
|
+
def setChopSize(self):
|
|
28
|
+
self.chopsize = 1024
|
|
Binary file
|