From f81a1048de4dcb36e1764e9ef2137f1e47a8d50e Mon Sep 17 00:00:00 2001 From: host Date: Tue, 27 Oct 2026 16:42:10 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20P2=20workers=20=E5=8D=95=E6=B5=8B?= =?UTF-8?q?=E8=B7=9F=E9=9A=8F=20P1=20=E7=9A=84=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E5=8F=AF=E8=A7=81=E5=AE=8C=E6=95=B4=E6=B8=85=E5=8D=95=E8=AF=AD?= =?UTF-8?q?=E4=B9=89=EF=BC=88owner=20=E5=8F=AA=E8=A7=81=E8=81=9A=E5=90=88?= =?UTF-8?q?=EF=BC=8C=E5=AE=8C=E6=95=B4=E6=B8=85=E5=8D=95=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E5=A4=B9=E5=85=B7=E5=85=A8=E5=B1=80=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E6=9F=A5=EF=BC=8C=E4=B8=8D=E9=99=8D=E9=97=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud/tests/test_p2_console.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cloud/tests/test_p2_console.py b/cloud/tests/test_p2_console.py index ab5e3bd..a45ffc0 100644 --- a/cloud/tests/test_p2_console.py +++ b/cloud/tests/test_p2_console.py @@ -304,8 +304,13 @@ class P2ConsoleTestCase(unittest.TestCase): "capacity": 2, "running": 0}, self.owner_key) self.assertEqual(status, 200, data) + # 合并适配(P2 rebase 到 97f019d,P1 已合并):P1 起完整 + # worker 清单只给全局管理员,项目 owner 只能看到聚合 + # (聚合行为由 P1 的 test_workers_admin_full_member_aggregate_only + # 覆盖);本用例验的是完整清单里的 epoch last_seen 与 + # alive,故用本夹具的全局管理员 admin_key 查,不降门。 status, data = _req(self.port, "GET", "/workers", - key=self.owner_key) + key=self.admin_key) self.assertEqual(status, 200, data) workers = data["workers"] self.assertEqual(len(workers), 1)