X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/803f254122dc757db104a4c36cf98b726be004be..be6dc542e0ee8fd684dce7531f128789a72e71f8:/test/oauth/test-send?ds=inline diff --git a/test/oauth/test-send b/test/oauth/test-send index 513c8989..d75901ad 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 <