Skip to content

test(meeting-center): 新增 meeting-center 集成测试 - #6

Merged
guoxiaozhen0304 merged 1 commit into
opensourceways:mainfrom
TomNewChao:add-meeting-center-tests
Sep 16, 2026
Merged

guoxiaozhen0304 merged 1 commit into
opensourceways:mainfrom
TomNewChao:add-meeting-center-tests

Conversation

@TomNewChao

Copy link
Copy Markdown
Contributor

背景

Issue #736 集成测试明细引用 services/meeting-center/,但该目录在 integration-tests 仓里从未创建(404)。

workflow(backlog/.ai-flow/services/meeting-server.yaml L90 separate_deploy_subs: [meeting-center, ...] + L102 "集成测试默认全开")自动引用了 services/meeting-center/,但目录不存在 → 评论里的链接 404。

改动

创建 services/meeting-center/ 目录 + 2 个文件:

test_cases.py(10 个自动化用例)

级别 用例 端点 验证
P0 test_ping GET /ping/ 200
P0 test_meeting_date_list GET /api/v1/meeting/meeting_date/?community=X 200 + 日期列表
P0 test_meeting_list GET /api/v1/meeting/meeting/?community=X 200 + 会议列表
P0 test_group_name_list GET /api/v1/meeting/group_name/?community=X 200 + 组名
P0 test_platform_list GET /api/v1/meeting/platform/?community=X 200 + 类型
P0 test_roles_list GET /api/v1/meeting/roles/?community=X 200 + 角色
P1 test_meeting_list_has_platform_fields 会议列表 响应含 platform 核心字段
P1 test_meeting_date_matches_meeting_list 两次 GET 日期∩会议一致
P2 test_invalid_community 无效 community 不 500
P2 test_nonexistent_meeting id=99999999 400/404

TestStrategy.md

  • 测试维度(功能自检 + 集成测试)
  • 认证模型(OneID Cookie)
  • 环境变量(MEETING_CENTER_HOST / COMMUNITY / AUTH_TOKEN)
  • 用例清单表
  • 后续补充方向(活动端点 / 写操作 / 纪要代理)

参考

  • 结构参考 services/meeting-platform/test_cases.py
  • 认证差异:meeting-center 用 OneID Cookie(非 BasicAuth)

🤖 Generated with Claude Code

issue #736 集成测试明细引用 services/meeting-center/ 但该目录从未创建(404)。
本 PR 创建该目录 + 10 个自动化用例:

P0 smoke(6): ping / meeting_date / meeting_list / group_name / platform / roles
P1 集成(2): meeting_list 含 platform 核心字段 / 日期列表∩会议列表
P2 错误(2): 无效 community 不 500 / 不存在 meeting id → 400/404

认证模型: OneID Cookie(AUTH_TOKEN 环境变量注入)
参考: services/meeting-platform/test_cases.py 结构
@opensourceways-bot

Copy link
Copy Markdown

Welcome To opensourceways Community

Hey @TomNewChao , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: infratructure ,
and any of the maintainers: @GeorgeCao-hw, @TangJia025, @pkking, @zhongjun2 ,
and any of the committers: @guoxiaozhen0304 .

@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TomNewChao, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@opensourceways-bot

Copy link
Copy Markdown

Linking Issue Notice

@TomNewChao , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

@guoxiaozhen0304
guoxiaozhen0304 merged commit 89ebba4 into opensourceways:main Sep 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants