X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b9e0388a118e84f002ae0da6c7a31bdbd89a73bb..868dc49a0b71d5ae083edc2530aa2758020ecc82:/test/oauth/test-send diff --git a/test/oauth/test-send b/test/oauth/test-send index 1c5ae4bf..ad40dbdd 100755 --- a/test/oauth/test-send +++ b/test/oauth/test-send @@ -24,28 +24,28 @@ export XOAUTH XOAUTH='dXNlcj1ub2JvZHlAZXhhbXBsZS5jb20BYXV0aD1CZWFyZXIgdGVzdC1hY2Nlc3MBAQ==' # TEST -echo 'access token ready, smtp server accepts message' +start_test 'access token ready, smtp server accepts message' setup_draft fake_creds < "${testname}.expected-send-output" < "${testname}.send-output" 2>&1 || true + -saslmech xoauth2 -authservice test -user nobody@example.com > "${testname}.send-output" 2>&1 || true # Clear out an error message we get from libcurl on some systems (seen at least # 3 different versions of this error message, on FreeBSD 10.1, Ubuntu 12.04, and # Ubuntu 14.04). @@ -269,7 +269,7 @@ check "$f".clean "${testname}.expected-send-output" rm "$f" # TEST -echo 'refresh gets bogus 200 response from http server' +start_test 'refresh gets bogus 200 response from http server' expect_http_post_refresh @@ -283,7 +283,7 @@ test_send_only_fakehttp 'send: error refreshing OAuth2 token send: invalid response' # TEST -echo 'refresh gets 500 response from http server' +start_test 'refresh gets 500 response from http server' expect_http_post_refresh @@ -297,7 +297,7 @@ test_send_only_fakehttp 'send: error refreshing OAuth2 token send: invalid response' # TEST -echo 'refresh gets proper error from http' +start_test 'refresh gets proper error from http' expect_http_post_refresh @@ -309,13 +309,13 @@ Content-Type: application/json } EOF -test_send_only_fakehttp 'send: credentials rejected -- run mhlogin -oath test' +test_send_only_fakehttp 'send: credentials rejected -- run mhlogin -saslmech xoauth2 -authservice test' # TEST -echo 'refresh gets response too big' +start_test 'refresh gets response too big' fake_creds <