diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2022-01-22 08:05:56 +0100 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2022-01-22 08:05:56 +0100 |
commit | 79170d640088d972e0853269715ef419038b8b4c (patch) | |
tree | 02d25c0e7a444d501ea83550a7b30ce2d44adf64 | |
parent | 389c1e1be78ca3290689948d4a3b449c07c048bf (diff) | |
download | mod_authnz_pam-79170d640088d972e0853269715ef419038b8b4c.tar.gz mod_authnz_pam-79170d640088d972e0853269715ef419038b8b4c.tar.xz mod_authnz_pam-79170d640088d972e0853269715ef419038b8b4c.zip |
Test the exact redirect status done by AuthPAMExpiredRedirect.
-rwxr-xr-x | tests/run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh index 2d8019d..28235f8 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -55,7 +55,7 @@ curl -u user1:heslo1 -s http://localhost/authnp3 | tee /dev/stderr | grep 'User curl -u user1:heslo1 -s http://localhost/authnp4 | tee /dev/stderr | grep 'User user1' chage -d $(date -d -2days +%Y-%m-%d) -M 1 user1 curl -u user1:heslo1 -s http://localhost/authnp3 | tee /dev/stderr | grep 401 -curl -i -u user1:heslo1 -s 'http://localhost/authnp4?id=123&data=M%26M' | tee /dev/stderr | grep -F 'Location: http://localhost/fix-password?return=http%3a%2f%2flocalhost%2fauthnp4%3fid%3d123%26data%3dM%2526M&percent=%25&user=user1' +curl -i -u user1:heslo1 -s 'http://localhost/authnp4?id=123&data=M%26M' | tee /dev/stderr | grep -F -e 'Location: http://localhost/fix-password?return=http%3a%2f%2flocalhost%2fauthnp4%3fid%3d123%26data%3dM%2526M&percent=%25&user=user1' -e 'HTTP/1.1 307 Temporary Redirect' | wc -l | grep 2 chage -d $(date -d -2days +%Y-%m-%d) -M 3 user1 curl -u user1:heslo1 -s http://localhost/authnp3 | tee /dev/stderr | grep 'User user1' curl -u user1:heslo1 -s http://localhost/authnp4 | tee /dev/stderr | grep 'User user1' |