Further cleanup of scale tests.
Re-use the vrouter and tls test case methods from scaleTest instead of code duplication.
Change-Id: Ibe53e786a9ac5cf567d6b1bc69d367f3bf707472
diff --git a/src/test/tls/tlsTest.py b/src/test/tls/tlsTest.py
index 6ac5e6b..295f23e 100644
--- a/src/test/tls/tlsTest.py
+++ b/src/test/tls/tlsTest.py
@@ -436,6 +436,18 @@
reactor.callLater(0, eap_tls_5k_with_diff_mac, df)
return df
+ def tls_scale(self, num_sessions):
+ '''Called from scale test'''
+ def tls_session_fail_cb():
+ pass
+ for i in xrange(num_sessions):
+ tls = TLSAuthTest(src_mac = 'random', fail_cb = tls_session_fail_cb)
+ tls.runTest()
+ if tls.failTest is False:
+ log_test.info('Authentication successful for user %d'%i)
+ else:
+ log_test.info('Authentication failed for user %d' %i)
+
if __name__ == '__main__':
t = TLSAuthTest()
t.runTest()