#
# TEST
-echo 'access token ready, pop server accepts message'
+start_test 'access token ready, pop server accepts message'
fake_creds <<EOF
access: test-access
test_inc_success
# TEST
-echo 'expired access token, refresh works, pop server accepts message'
+start_test 'expired access token, refresh works, pop server accepts message'
fake_creds <<EOF
access: old-access
}
EOF
-expect_creds <<EOF
-access: test-access
-refresh: test-refresh
-expire:
-EOF
-
start_fakehttp
start_pop_xoauth
#
# TEST
-echo 'refresh gets proper error from http'
+start_test 'refresh gets proper error from http'
fake_creds <<EOF
access: test-access
check_http_req
# TEST
-echo 'pop server rejects token'
+start_test 'pop server rejects token'
fake_creds <<EOF
access: wrong-access
test_inc 'inc: -ERR [AUTH] Invalid credentials.'
# TEST
-echo "pop server doesn't support oauth"
+start_test "pop server doesn't support oauth"
fake_creds <<EOF
access: test-access
test_inc 'inc: POP server does not support SASL'
+clean_fakehttp
+finish_test
+
exit ${failed:-0}