X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/cd6133dd23422f92534328f768a322f63a5c6dfe..74e48ffefe5f68a2b065d8e970448ba38514185f:/test/oauth/test-send diff --git a/test/oauth/test-send b/test/oauth/test-send index 363debc6..4c7a335c 100755 --- a/test/oauth/test-send +++ b/test/oauth/test-send @@ -24,7 +24,7 @@ export XOAUTH XOAUTH='dXNlcj1ub2JvZHlAZXhhbXBsZS5jb20BYXV0aD1CZWFyZXIgdGVzdC1hY2Nlc3MBAQ==' # TEST -echo 'access token ready, smtp server accepts message' +start_test 'access token ready, smtp server accepts message' setup_draft @@ -38,7 +38,7 @@ start_fakesmtp run_test "send -draft -server 127.0.0.1 -port ${smtp_port} -saslmech xoauth2 -authservice test -user nobody@example.com" # TEST -echo 'expired access token, refresh works, smtp server accepts message' +start_test 'expired access token, refresh works, smtp server accepts message' setup_draft @@ -70,7 +70,7 @@ check_creds_private check_creds # TEST -echo 'expired access token, refresh works and gets updated, smtp server accepts message' +start_test 'expired access token, refresh works and gets updated, smtp server accepts message' setup_draft @@ -100,7 +100,7 @@ test_send check_creds # TEST -echo 'access token has no expiration, refresh works, smtp server accepts message' +start_test 'access token has no expiration, refresh works, smtp server accepts message' setup_draft @@ -128,7 +128,7 @@ test_send check_creds # TEST -echo 'no access token, refresh works, smtp server accepts message' +start_test 'no access token, refresh works, smtp server accepts message' setup_draft @@ -161,26 +161,26 @@ check_creds setup_draft # TEST -echo 'no service definition' +start_test 'no service definition' run_test "send -draft -server 127.0.0.1 -port ${smtp_port} -saslmech xoauth2 -authservice bogus -user nobody@example.com" 'send: incomplete OAuth2 service definition: scope is missing' # TEST -echo 'no creds file -- should tell user to mhlogin' +start_test 'no creds file -- should tell user to mhlogin' rm -f "${MHTMPDIR}/oauth-test" test_send_no_servers 'send: no credentials -- run mhlogin -saslmech xoauth2 -authservice test' # TEST -echo 'empty creds file -- should tell user to mhlogin' +start_test 'empty creds file -- should tell user to mhlogin' fake_creds < /dev/null test_send_no_servers 'send: no valid credentials -- run mhlogin -saslmech xoauth2 -authservice test' # TEST -echo 'garbage creds file' +start_test 'garbage creds file' echo bork | fake_creds @@ -188,7 +188,7 @@ test_send_no_servers 'send: eof encountered in field "bork" send: error loading cred file' # TEST -echo 'unexpected field in creds file' +start_test 'unexpected field in creds file' fake_creds <