X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b9e0388a118e84f002ae0da6c7a31bdbd89a73bb..74e48ffefe5f68a2b065d8e970448ba38514185f:/test/oauth/test-share diff --git a/test/oauth/test-share b/test/oauth/test-share index 6353ec56..76b0d3e2 100755 --- a/test/oauth/test-share +++ b/test/oauth/test-share @@ -16,7 +16,7 @@ export XOAUTH XOAUTH='dXNlcj1ub2JvZHlAZXhhbXBsZS5jb20BYXV0aD1CZWFyZXIgdGVzdC1hY2Nlc3MBAQ==' # TEST -echo 'mhlogin then all run with no refresh' +start_test 'mhlogin then all run with no refresh' expect_http_post_code @@ -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 @@ -51,7 +51,7 @@ setup_draft test_send_only_fakesmtp # TEST -echo 'inc refreshes' +start_test 'inc refreshes' fake_creds <