X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/012d05c2b62332eb400d66b806e48216d39358c6..aaf70a50e13231ba06df17d79147ac0d7fed6d91:/test/oauth/test-share diff --git a/test/oauth/test-share b/test/oauth/test-share index af887566..cf5fca36 100755 --- a/test/oauth/test-share +++ b/test/oauth/test-share @@ -34,7 +34,7 @@ expire: EOF start_fakehttp -run_test 'eval echo code | mhlogin -oauth test' \ +run_test 'eval echo code | mhlogin -saslmech xoauth2 -authservice test' \ "Load the following URL in your browser and authorize nmh to access test: http://127.0.0.1:${http_port}/oauth/auth?response_type=code&client_id=test-id&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=test-scope @@ -42,7 +42,7 @@ http://127.0.0.1:${http_port}/oauth/auth?response_type=code&client_id=test-id&re Enter the authorization code: " start_pop_xoauth -run_test "msgchk -host 127.0.0.1 -port ${pop_port} -oauth test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' +run_test "msgchk -host 127.0.0.1 -port ${pop_port} -saslmech xoauth2 -authservice test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' start_pop_xoauth test_inc_success @@ -74,7 +74,7 @@ start_pop_xoauth test_inc_success start_pop_xoauth -run_test "msgchk -host 127.0.0.1 -port ${pop_port} -oauth test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' +run_test "msgchk -host 127.0.0.1 -port ${pop_port} -saslmech oauth2 -authservice test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' setup_draft test_send_only_fakesmtp @@ -100,7 +100,7 @@ EOF start_fakehttp start_pop_xoauth -run_test "msgchk -host 127.0.0.1 -port ${pop_port} -oauth test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' +run_test "msgchk -host 127.0.0.1 -port ${pop_port} -saslmech xoauth2 -authservice test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' start_pop_xoauth test_inc_success @@ -131,9 +131,12 @@ setup_draft test_send start_pop_xoauth -run_test "msgchk -host 127.0.0.1 -port ${pop_port} -oauth test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' +run_test "msgchk -host 127.0.0.1 -port ${pop_port} -saslmech xoauth2 -authservice test -user nobody@example.com" 'nobody@example.com has 1 message (178 bytes) on 127.0.0.1' start_pop_xoauth test_inc_success +clean_fakesmtp +clean_fakehttp + exit ${failed:-0}