Skip to content

Commit

Permalink
refactor(backend): 修改gtm配置,默认开发分支为1.4.0 TencentBlueKing#3375
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Feb 27, 2024
1 parent 2a92d5a commit b3cdfc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gtmproject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ project:
# 主分支
default_branch: "master"
# 默认目标分支
default_target_branch: "v1.3.0"
default_target_branch: "v1.4.0"
# 默认单据来源
default_source: "github"
# 默认事件类型
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from typing import Dict, List

from django.db import transaction
from django.utils.translation import ugettext as _
from pipeline.component_framework.component import Component
from pipeline.core.flow.activity import Service

Expand Down Expand Up @@ -47,7 +48,7 @@ def decommission_proxies(self, cluster: Cluster, proxies: List[Dict]):
proxy_objs = common.filter_out_instance_obj(proxies, cluster.proxyinstance_set.all())
_t = common.not_exists(proxies, proxy_objs)
if _t:
raise Exception("{} 存在不是本集群的实例下架列表".format(_t))
raise Exception(_("{} 存在不是本集群的实例下架列表").format(_t))

machine_obj, cc_manage = defaultdict(dict), CcManage(cluster.bk_biz_id)
cc_manage.delete_service_instance(bk_instance_ids=[obj.bk_instance_id for obj in proxy_objs])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import pytest
from openpyxl.writer.excel import save_virtual_workbook

from backend.db_meta.enums import ClusterType
from backend.db_services.mysql.permission.authorize.dataclass import MySQLAuthorizeMeta, MySQLExcelAuthorizeMeta
from backend.db_services.mysql.permission.authorize.handlers import MySQLAuthorizeHandler
from backend.db_services.mysql.permission.constants import AUTHORIZE_EXCEL_HEADER
Expand Down Expand Up @@ -52,7 +53,7 @@ def test_pre_check_excel_rules(self, query_fixture):
excel = io.BytesIO(excel_bytes)

excel_obj = namedtuple("ExcelObj", ["file"])(file=excel)
excel_authorize = MySQLExcelAuthorizeMeta(authorize_file=excel_obj)
excel_authorize = MySQLExcelAuthorizeMeta(authorize_file=excel_obj, cluster_type=ClusterType.TenDBHA)
excel_authorize.authorize_excel_data = ExcelHandler.paser(excel_authorize.authorize_file.file)

authorize_data_list = self.handler.pre_check_excel_rules(excel_authorize)
Expand Down

0 comments on commit b3cdfc2

Please sign in to comment.