#!/usr/share/ucs-test/runner python
## -*- coding: utf-8 -*-
## desc: OX user creation performance test - 5 context 5000 users
## tags: [apptest, longrunning, SKIP]
## exposure: dangerous
## packages:
##   - univention-ox
## bugs: [43367]

from essential.common import OXTestEnv, OXTestEmptyQueue

NUM_CONTEXTS = 5
NUM_USERS = 5000

with OXTestEnv() as oxenv, OXTestEmptyQueue():
	timer = oxenv.user_creation_performance_test(NUM_CONTEXTS, NUM_USERS)
	print('*** Finished performance test for {} contexts and {} users.'.format(NUM_CONTEXTS, NUM_USERS))
print('{0}\n{1}\n{0}'.format('-' * 79, timer))
