feat: disable user messaging and retain公益 service guidance
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).parents[2]
|
||||
|
||||
|
||||
def test_miniapp_has_no_user_chat_pages_or_message_tab():
|
||||
app = json.loads((ROOT / "miniapp" / "app.json").read_text(encoding="utf-8"))
|
||||
assert not any(page in {"pages/messages/messages", "pages/chat/chat"} for page in app["pages"])
|
||||
assert not any(item.get("pagePath") == "pages/messages/messages" for item in app["tabBar"]["list"])
|
||||
|
||||
|
||||
def test_match_success_does_not_create_or_return_conversation():
|
||||
like = (ROOT / "backend/src/main/java/com/danyang/match/platform/match/controller/LikeController.java").read_text(encoding="utf-8")
|
||||
relationship = (ROOT / "backend/src/main/java/com/danyang/match/platform/relationship/service/RelationshipService.java").read_text(encoding="utf-8")
|
||||
assert "matchedConversationId" not in like
|
||||
assert "getOrCreateConversation" not in like
|
||||
assert "conversationAutoCreated" not in relationship
|
||||
|
||||
|
||||
def test_chat_transport_is_disabled_at_backend_boundary():
|
||||
guard = ROOT / "backend/src/main/java/com/danyang/match/platform/chat/config/ChatDisabledFilter.java"
|
||||
assert guard.exists()
|
||||
source = guard.read_text(encoding="utf-8")
|
||||
assert "/conversations" in source
|
||||
assert "/ws/chat" in source
|
||||
assert "CHAT_DISABLED" in source
|
||||
Reference in New Issue
Block a user