Localize user-facing UI, agent output, and backend messages to Simplified Chinese
ci / go (push) Waiting to run
ci / go-db (agent) (push) Waiting to run
ci / go-db (config) (push) Waiting to run
ci / go-db (db) (push) Waiting to run
ci / go-db (evidence) (push) Waiting to run
ci / go-db (llmrec) (push) Waiting to run
ci / go-db (server) (push) Waiting to run
detections / detections (push) Waiting to run
docs / links (push) Waiting to run
web / web (push) Waiting to run
ci / go (push) Waiting to run
ci / go-db (agent) (push) Waiting to run
ci / go-db (config) (push) Waiting to run
ci / go-db (db) (push) Waiting to run
ci / go-db (evidence) (push) Waiting to run
ci / go-db (llmrec) (push) Waiting to run
ci / go-db (server) (push) Waiting to run
detections / detections (push) Waiting to run
docs / links (push) Waiting to run
web / web (push) Waiting to run
This commit is contained in:
@@ -6,7 +6,7 @@ import "testing"
|
||||
// 오류 문구를 한국어로 유지하는 회귀 방어 테스트다. 두 검증기
|
||||
// (validateAssetInterceptRuleReq·validateTaskInterceptRuleReq)는 DB 를 쓰지 않는 순수
|
||||
// 함수라, 상수 핀 고정에 더해 실제 오류 경로를 직접 호출해 반환 문구까지 검증한다.
|
||||
// 한국어 판정은 F3a 가 만든 assertKoreanError(한글 포함·중국어 한자 0)를 재사용한다.
|
||||
// 한국어 판정은 F3a 가 만든 assertChineseError(한글 포함·중국어 한자 0)를 재사용한다.
|
||||
// 필드명·열거값(pattern·exact_ip·cidr·kind·action·block·allow)은 와이어 식별자라 ASCII 로
|
||||
// 남으며 한자 판정에서 걸리지 않는다. 누군가 둘러싼 설명을 중국어로 되돌리면 실패한다.
|
||||
func TestAssetInterceptErrorsLocalized(t *testing.T) {
|
||||
@@ -18,7 +18,7 @@ func TestAssetInterceptErrorsLocalized(t *testing.T) {
|
||||
{"bad_kind", errAssetInterceptInvalidKindFmt},
|
||||
{"bad_action", errTaskInterceptInvalidAction},
|
||||
} {
|
||||
assertKoreanError(t, c.label, c.msg)
|
||||
assertChineseError(t, c.label, c.msg)
|
||||
}
|
||||
|
||||
// 실제 경로: validateAssetInterceptRuleReq 의 네 거부 분기
|
||||
@@ -36,7 +36,7 @@ func TestAssetInterceptErrorsLocalized(t *testing.T) {
|
||||
if err == nil {
|
||||
t.Fatalf("%s: 오류가 없습니다(검증을 통과함)", c.label)
|
||||
}
|
||||
assertKoreanError(t, c.label, err.Error())
|
||||
assertChineseError(t, c.label, err.Error())
|
||||
}
|
||||
|
||||
// 유효 입력은 거부되지 않는다
|
||||
@@ -50,7 +50,7 @@ func TestAssetInterceptErrorsLocalized(t *testing.T) {
|
||||
if err := validateTaskInterceptRuleReq(&badAction); err == nil {
|
||||
t.Fatalf("bad_action_path: 오류가 없습니다(검증을 통과함)")
|
||||
} else {
|
||||
assertKoreanError(t, "bad_action_path", err.Error())
|
||||
assertChineseError(t, "bad_action_path", err.Error())
|
||||
}
|
||||
|
||||
// action 공란은 block 기본값으로 정규화되어 통과한다
|
||||
|
||||
Reference in New Issue
Block a user