diff options
author | Isaac Boukris <iboukris@gmail.com> | 2015-08-02 06:02:19 +0300 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-08-06 19:07:43 -0400 |
commit | f206c24dfcf9bbc70d8551aaf6794d50d67feaa0 (patch) | |
tree | fd4e2aabe2e9710fad54ec70470df1a1a855676f /tests/magtests.py | |
parent | 6dc1e9c2121517d82055f84d94af7e142c3d5228 (diff) | |
download | mod_auth_gssapi-f206c24dfcf9bbc70d8551aaf6794d50d67feaa0.tar.gz mod_auth_gssapi-f206c24dfcf9bbc70d8551aaf6794d50d67feaa0.tar.xz mod_auth_gssapi-f206c24dfcf9bbc70d8551aaf6794d50d67feaa0.zip |
More basic-auth tests
Add test for second user on the same connection with the password
of the first user and without auth at all.
Reviewed-by: Simo Sorce <simo@redhat.com>
Closes #48
Diffstat (limited to 'tests/magtests.py')
-rwxr-xr-x | tests/magtests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/magtests.py b/tests/magtests.py index 1861f21..3e2f4fc 100755 --- a/tests/magtests.py +++ b/tests/magtests.py @@ -301,6 +301,16 @@ def test_basic_auth_krb5(testdir, testenv, testlog): sys.stderr.write('BASIC-AUTH Two Users: SUCCESS\n') with (open(testlog, 'a')) as logfile: + basick5 = subprocess.Popen(["tests/t_basic_k5_fail_second.py"], + stdout=logfile, stderr=logfile, + env=testenv, preexec_fn=os.setsid) + basick5.wait() + if basick5.returncode != 0: + sys.stderr.write('BASIC Fail Second User: FAILED\n') + else: + sys.stderr.write('BASIC Fail Second User: SUCCESS\n') + + with (open(testlog, 'a')) as logfile: basick5 = subprocess.Popen(["tests/t_basic_proxy.py"], stdout=logfile, stderr=logfile, env=testenv, preexec_fn=os.setsid) |