summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-10-23 10:30:46 +1300
committerDouglas Bagnall <dbagnall@samba.org>2019-01-08 23:55:34 +0100
commitaffaeb944fd77ea67d6fb9ece2c53e6433e3b4a7 (patch)
treedad2edcf7209756180d92c934550586fbf2d330b /python
parent524777e681b1fecf5686843f10ae01637285a891 (diff)
downloadsamba-affaeb944fd77ea67d6fb9ece2c53e6433e3b4a7.tar.gz
samba-affaeb944fd77ea67d6fb9ece2c53e6433e3b4a7.tar.bz2
samba-affaeb944fd77ea67d6fb9ece2c53e6433e3b4a7.zip
traffic_replay: --old-scale to mimic the old traffic_replay
traffic_replay had a broken sense of traffic scale. That is fixed, but in order to compare old and new tests, it helps to be able to approximate the old behaviour. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/blackbox/testdata/traffic_replay-3.expected11
-rw-r--r--python/samba/tests/blackbox/traffic_replay.py3
2 files changed, 14 insertions, 0 deletions
diff --git a/python/samba/tests/blackbox/testdata/traffic_replay-3.expected b/python/samba/tests/blackbox/testdata/traffic_replay-3.expected
new file mode 100644
index 00000000000..3c9b4e7c71c
--- /dev/null
+++ b/python/samba/tests/blackbox/testdata/traffic_replay-3.expected
@@ -0,0 +1,11 @@
+0.011388 06 2 1 ldap 3 searchRequest 2 DC,DC cn
+0.221447 06 2 1 ldap 2 unbindRequest
+0.460878 06 3 1 ldap 3 searchRequest 2 DC,DC cn
+0.581933 11 4 1 cldap 3 searchRequest Netlogon
+0.596977 11 4 1 cldap 3 searchRequest Netlogon
+0.611184 11 4 1 cldap 3 searchRequest Netlogon
+0.666808 06 3 1 ldap 2 unbindRequest
+0.744297 06 4 1 rpc_netlogon 29 NetrLogonGetDomainInfo
+0.768994 06 4 1 kerberos
+0.772476 06 4 1 ldap 3 searchRequest 2 DC,DC cn
+0.865384 06 5 1 ldap 3 searchRequest subschemaSubentry,dsServiceName,namingContexts,defaultNamingContext,schemaNamingContext,configurationNamingContext,rootDomainNamingContext,supportedControl,supportedLDAPVersion,supportedLDAPPolicies,supportedSASLMechanisms,dnsHostName,ldapServiceName,serverName,supportedCapabilities
diff --git a/python/samba/tests/blackbox/traffic_replay.py b/python/samba/tests/blackbox/traffic_replay.py
index 8370939d243..a84d1a423e4 100644
--- a/python/samba/tests/blackbox/traffic_replay.py
+++ b/python/samba/tests/blackbox/traffic_replay.py
@@ -72,6 +72,9 @@ class TrafficLearnerTests(BlackboxTestCase):
["--random-seed=4"],
["--random-seed=3",
"--conversation-persistence=0.5"],
+ ["--random-seed=3",
+ "--old-scale",
+ "--conversation-persistence=0.95"],
)):
with temp_file(self.tempdir) as output:
command = ([SCRIPT, MODEL,