[Bug] test_send_email test fails with 404 when testing email from UI works

クローズ
#751 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ian-flores がすでに取り組んでいます。

2026年10月2日 から。

  • #760 @ian-flores による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api, testing

調査の方向性

Start with vip/clients/connect.py at send_test_email and the failing test in vip_tests/connect/test_email.py. Compare the client request with the Connect admin UI request described in the issue, then run vip verify with the test_send_email filter against Connect 2026.09.0. Done means the test sends email successfully without a 404.

索引モデルが issue の本文から書いたものです。

説明

bug
VIP version

2026.9.3

Affected area

Connect tests

What happened?

test_send_email fails with a 404 - seemingly because ConnectClient.send_test_email uses
__api__/v1/tasks/send-test-email, which I've been unable to find in Connect 2026.09.0.

Email delivery works: the Connect admin UI's "Send Test Email" button succeeds
on the same server, and the email arrives. The UI test button seems to use GET __api__/server_settings/mail/test

What did you expect to happen?

Email to be sent

Steps to reproduce
> vip verify --config vip.toml --interactive-auth --filter "test_send_email"
>>> Reusing cached auth session from <home>\.vip-auth-cache.json
======================== test session starts ========================
2 workers [1 item]     skipped
scheduling tests via LoadGroupScheduling

vip_tests/connect/test_email.py::test_send_email FAILED        [100%]

============================= FAILURES ==============================
__________________________ test_send_email __________________________
test_send_email: an unexpected error occurred: httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://connect.example.com/__api__/v1/tasks/send-test-email' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
----------------------- Captured log teardown -----------------------
WARNING  vip_tests.conftest:conftest.py:110 end-of-run Connect content sweep could not reach the tag API
Traceback (most recent call last):
  File "<site-packages>\vip\clients\connect.py", line 281, in list_vip_content
    return resp.json().get("results", [])
           ^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<site-packages>\vip_tests\conftest.py", line 108, in _connect_end_of_run_sweep
    connect_client.cleanup_vip_content()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "<site-packages>\vip\clients\connect.py", line 292, in cleanup_vip_content
    guids = [item.get("guid") for item in self.list_vip_content()]
                                          ~~~~~~~~~~~~~~~~~~~~~^^
  File "<site-packages>\vip\clients\connect.py", line 283, in list_vip_content
    raise ProductUnreachableError(f"could not list VIP-tagged content: {exc}") from exc
vip.errors.ProductUnreachableError: could not list VIP-tagged content: 'list' object has no attribute 'get'
=================== 1 failed, 1 skipped in 6.06s ====================
Relevant logs or output
vip_tests/connect/test_email.py::test_send_email FAILED

test_send_email: an unexpected error occurred: httpx.HTTPStatusError: Client error
'404 Not Found' for url 'https://connect.example.com/__api__/v1/tasks/send-test-email'

vip/clients/connect.py:513: in send_test_email
    resp.raise_for_status()
E   httpx.HTTPStatusError: Client error '404 Not Found' for url
    'https://connect.example.com/__api__/v1/tasks/send-test-email'
Environment
  • VIP 2026.9.3
  • Python 3.14.3
  • Windows 11 (10.0.26200)
  • Connect 2026.09.0
主要言語
Python
スター
8
フォーク
1
平均マージ
2日 2時間
マージ済み PR(30日)
33

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

posit-dev/vip のほかの issue

posit-dev/vip の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。