diff options
author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-04-14 13:00:25 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-04-15 10:35:04 -0400 |
commit | 800b39df6e2c65fa06a0d5da48002bb26b83b435 (patch) | |
tree | a1b1cbe5b437a09dd3796de2318772a89c75cab3 /tests/pgdb.py | |
parent | f73332fb7d55bd5753a8bafc2493172203fcf377 (diff) | |
download | ipsilon-800b39df6e2c65fa06a0d5da48002bb26b83b435.tar.gz ipsilon-800b39df6e2c65fa06a0d5da48002bb26b83b435.tar.xz ipsilon-800b39df6e2c65fa06a0d5da48002bb26b83b435.zip |
Close database sesssions
This will close any opened database sessions at the end
of the request.
https://fedorahosted.org/ipsilon/ticket/110
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
Diffstat (limited to 'tests/pgdb.py')
-rwxr-xr-x | tests/pgdb.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pgdb.py b/tests/pgdb.py index a738052..ae4b47c 100755 --- a/tests/pgdb.py +++ b/tests/pgdb.py @@ -136,7 +136,13 @@ if __name__ == '__main__': sess.add_server(spname, 'http://127.0.0.11:45081') print "test1: Authenticate to IDP ...", + sys.stdout.flush() try: + print 'Stress-testing the database connections...', + sys.stdout.flush() + for i in xrange(50): + sess.auth_to_idp(idpname) + sess.logout_from_idp(idpname) sess.auth_to_idp(idpname) except Exception, e: # pylint: disable=broad-except print >> sys.stderr, " ERROR: %s" % repr(e) |