From 8bb0e2a9ba9e2ba3f6c3fe99c3f423639ca14fbf Mon Sep 17 00:00:00 2001 From: liaochuntao Date: Fri, 23 Sep 2022 18:38:47 +0800 Subject: [PATCH] fix issue #629 (#693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs:优化错误信息描述 * Update zh.toml * fix:修复eureka心跳协议错误码不兼容问题 * fix:修复eureka心跳协议错误码不兼容问题 * unit:添加单元测试 * test:调整测试配置文件位置 * fix:issue #692 * fix:issue #692 * fix:issue #692 * fix:issue #692 --- release/conf/i18n/en.toml | 133 ++++++++++++++++++-------------------- 1 file changed, 64 insertions(+), 69 deletions(-) diff --git a/release/conf/i18n/en.toml b/release/conf/i18n/en.toml index 70b27311c..21420e8e8 100644 --- a/release/conf/i18n/en.toml +++ b/release/conf/i18n/en.toml @@ -102,72 +102,67 @@ 400217 = "exist auth strategy rule" #AuthStrategyRuleExisted 400218 = "some sub-account existed in owner" #SubAccountExisted 400219 = "some config group existed in namespace" #NamespaceExistedConfigGroups -400301 = "not found service" #NotFoundService -400302 = "not found routing" #NotFoundRouting -400303 = "not found instances" #NotFoundInstance -400304 = "not found service alias" #NotFoundServiceAlias -400305 = "not found namespace" #NotFoundNamespace -400306 = "not found the source service link with the alias" #NotFoundSourceService -400307 = "not found rate limit" #NotFoundRateLimit -400308 = "not found circuit breaker" #NotFoundCircuitBreaker -400309 = "not found master config" #NotFoundMasterConfig -400310 = "not found tag config" #NotFoundTagConfig -400311 = "not found tag config or service, or relation already exists" #NotFoundTagConfigOrService -400312 = "not found user" #NotFoundUser -400313 = "not found owner user" #NotFoundOwnerUser -400314 = "not found usergroup" #NotFoundUserGroup -400315 = "not found auth strategy rule" #NotFoundAuthStrategyRule -400401 = "client api is not open" #ClientAPINotOpen -400402 = "not allow requesting business service" #NotAllowBusinessService -400410 = "" #InvalidUserOwners -400411 = "invalid user-id" #InvalidUserID -400412 = "invalid user password" #InvalidUserPassword -400413 = "" #InvalidUserMobile -400414 = "" #InvalidUserEmail -400420 = "invalid usergroup owner attribute" #InvalidUserGroupOwners -400421 = "" #InvalidUserGroupID -400430 = "invalid auth strategy rule owner" #InvalidAuthStrategyOwners -400431 = "invalid auth strategy rule name" #InvalidAuthStrategyName -400432 = "" #InvalidAuthStrategyID -400440 = "invalid principal type" #InvalidPrincipalType -400501 = "not allow service alias updating" #NotAllowAliasUpdate -400502 = "not allow service alias creating instance" #NotAllowAliasCreateInstance -400503 = "not allow service alias creating routing config" #NotAllowAliasCreateRouting -400504 = "only source service can create alias" #NotAllowCreateAliasForAlias -400505 = "not allow service alias creating rate limit" #NotAllowAliasCreateRateLimit -400506 = "not allow service alias binding rule" #NotAllowAliasBindRule -400507 = "not allow different namespace binding rule" #NotAllowDifferentNamespaceBindRule -400508 = "not allow modify default strategy principal" #NotAllowModifyDefaultStrategyPrincipal -400509 = "not allow modify main account default strategy" #NotAllowModifyOwnerDefaultStrategy -400700 = "invalid routing id" #InvalidRoutingID -400701 = "invalid routing policy, only support (RulePolicy,MetadataPolicy)" #InvalidRoutingPolicy -400702 = "invalid routing name" #InvalidRoutingName -400703 = "invalid routing priority, only support [0, 10]" #InvalidRoutingPriority -400801 = "invalid config file group name" #InvalidConfigFileGroupName -400802 = "invalid config file name" #InvalidConfigFileName -400803 = "config file content too long" #InvalidConfigFileContentLength -400804 = "invalid config file format, support json,xml,html,properties,text,yaml" #InvalidConfigFileFormat -400805 = "invalid config file tags, tags should be pair, like key1,value1,key2,value2. and key,value should not blank" #InvalidConfigFileTags -400806 = "invalid watch config file format" #InvalidWatchConfigFileFormat -400807 = "config file not existed" #NotFoundResourceConfigFile -400808 = "invalid config file template name" #InvalidConfigFileTemplateName -401000 = "unauthorized" #Unauthorized -401001 = "access is not approved" #NotAllowedAccess -401002 = "auth token empty" #EmptyAutToken -401003 = "token already disabled" #TokenDisabled -401004 = "token not existed" #TokenNotExisted -403001 = "server limit the ip access" #IPRateLimit -403002 = "server limit the api access" #APIRateLimit -404001 = "not found the host cmdb" #CMDBNotFindHost -409000 = "data is conflict, please try again" #DataConflict -429001 = "your instance has too many requests" #InstanceTooManyRequests -500000 = "execute exception" #ExecuteException -500001 = "store layer exception" #StoreLayerException -500002 = "cmdb plugin exception" #CMDBPluginException -500004 = "parsing routing failed" #ParseRoutingException -500005 = "parse rate limit failed" #ParseRateLimitException -500006 = "parse circuit breaker failed" #ParseCircuitBreakerException -500007 = "heartbeat execute exception" #HeartbeatException -500008 = "instance async regist timeout" #InstanceRegisTimeout -500100 = "token verify exception" #AuthTokenVerifyException -500101 = "operation role exception" #OperationRoleException \ No newline at end of file +400301 = "not found service" #NotFoundService +400302 = "not found routing" #NotFoundRouting +400303 = "not found instances" #NotFoundInstance +400304 = "not found service alias" #NotFoundServiceAlias +400305 = "not found namespace" #NotFoundNamespace +400306 = "not found the source service link with the alias" #NotFoundSourceService +400307 = "not found rate limit" #NotFoundRateLimit +400308 = "not found circuit breaker" #NotFoundCircuitBreaker +400309 = "not found master config" #NotFoundMasterConfig +400310 = "not found tag config" #NotFoundTagConfig +400311 = "not found tag config or service, or relation already exists" #NotFoundTagConfigOrService +400312 = "not found user" #NotFoundUser +400313 = "not found owner user" #NotFoundOwnerUser +400314 = "not found usergroup" #NotFoundUserGroup +400315 = "not found auth strategy rule" #NotFoundAuthStrategyRule +400401 = "client api is not open" #ClientAPINotOpen +400402 = "not allow requesting business service" #NotAllowBusinessService +400410 = "invalid user owners" #InvalidUserOwners +400411 = "invalid user-id" #InvalidUserID +400412 = "invalid user password" #InvalidUserPassword +400413 = "invalid user mobile" #InvalidUserMobile +400414 = "invalid user email" #InvalidUserEmail +400420 = "invalid usergroup owner attribute" #InvalidUserGroupOwners +400421 = "invalid usergroup id" #InvalidUserGroupID +400430 = "invalid auth strategy rule owner" #InvalidAuthStrategyOwners +400431 = "invalid auth strategy rule name" #InvalidAuthStrategyName +400432 = "invalid auth strategy id" #InvalidAuthStrategyID +400440 = "invalid principal type" #InvalidPrincipalType +400501 = "not allow service alias updating" #NotAllowAliasUpdate +400502 = "not allow service alias creating instance" #NotAllowAliasCreateInstance +400503 = "not allow service alias creating routing config" #NotAllowAliasCreateRouting +400504 = "only source service can create alias" #NotAllowCreateAliasForAlias +400505 = "not allow service alias creating rate limit" #NotAllowAliasCreateRateLimit +400506 = "not allow service alias binding rule" #NotAllowAliasBindRule +400507 = "not allow different namespace binding rule" #NotAllowDifferentNamespaceBindRule +400508 = "not allow modify default strategy principal" #NotAllowModifyDefaultStrategyPrincipal +400801 = "invalid config file group name" #InvalidConfigFileGroupName +400802 = "invalid config file name" #InvalidConfigFileName +400803 = "config file content too long" #InvalidConfigFileContentLength +400804 = "invalid config file format, support json,xml,html,properties,text,yaml" #InvalidConfigFileFormat +400805 = "invalid config file tags, tags should be pair, like key1,value1,key2,value2. and key,value should not blank" #InvalidConfigFileTags +400806 = "invalid watch config file format" #InvalidWatchConfigFileFormat +400807 = "config file not existed" #NotFoundResourceConfigFile +400808 = "invalid config file template name" #InvalidConfigFileTemplateName +401000 = "unauthorized" #Unauthorized +401001 = "access is not approved" #NotAllowedAccess +401002 = "auth token empty" #EmptyAutToken +401003 = "token already disabled" #TokenDisabled +401004 = "token not existed" #TokenNotExisted +403001 = "server limit the ip access" #IPRateLimit +403002 = "server limit the api access" #APIRateLimit +404001 = "not found the host cmdb" #CMDBNotFindHost +409000 = "data is conflict, please try again" #DataConflict +429001 = "your instance has too many requests" #InstanceTooManyRequests +500000 = "execute exception" #ExecuteException +500001 = "store layer exception" #StoreLayerException +500002 = "cmdb plugin exception" #CMDBPluginException +500004 = "parsing routing failed" #ParseRoutingException +500005 = "parse rate limit failed" #ParseRateLimitException +500006 = "parse circuit breaker failed" #ParseCircuitBreakerException +500007 = "heartbeat execute exception" #HeartbeatException +500008 = "instance async regist timeout" #InstanceRegisTimeout +500100 = "token verify exception" #AuthTokenVerifyException +500101 = "operation role exception" #OperationRoleException