Welcome To openGauss Community
Hey @liuzhen001 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
Contact Guide
If you have any questions, please contact the SIG: StorageEngine, AI, CM, CloudNative, SecurityTechnology, SQLEngine ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @libiao2024, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @Igali, @bihua111, @cailei19, @h_ray, @levy53071, @libiao2024, @lihaixiao, @mrzack, @wangfeihuo, @wuyuechuan, @xiong_xjun, @zhangfengzhi123, @zhangxubo, @zhangzq131, @zjh_hw .


20260909 B022自测:
create sequence aaaa start 101 cache 20;
create large sequence bbbb start 101 cache 20;
导出:
java -jar JdbcGsBackup.jar -m dump -d postgres -h 20.20.20.58 -p 27000 -U test -P Test@123 -s public -f test.zip
导入:
java -jar JdbcGsBackup.jar -m restore -d db2 -h 20.20.20.58 -p 27000 -U test -P Test@123 -s public -f test.zip




回归版本:B023
回归结果:回归通过
回归过程:




测试类型
工具功能
测试版本
7.0.0LTS
问题描述
操作系统和硬件信息
测试环境
企业版主备
被测功能
预置条件
操作步骤
Opengauss_Function_JdbcGsBackup_Case0045
"""
Case Type : openGauss-tools-backup
Case Name : 使用jdbcpgbackup -m dump导出指定数据库下的序列
Description :
1.创建工具目录
2.获取工具安装包并解压
3.创建数据库
4.指定数据库下创建测试用户,创建序列
5.修改信任方式为sha256
6.导出指定数据库
7.删除序列后执行导入
8.查看序列
9.清理环境
Expect :
1.创建成功
2.解压成功
3.创建成功
4.创建成功
5.修改成功
6.导出成功
7.导入成功
8.序列导入成功
9.清理环境完成
"""
import os
import unittest
from testcase.utils.CommonSH import CommonSH
from testcase.utils.Constant import Constant
from testcase.utils.Logger import Logger
from yat.test import Node
from yat.test import macro
class ToolsBackup(unittest.TestCase):
def setUp(self):
self.log = Logger()
self.pri_sh = CommonSH('PrimaryDbUser')
self.log.info(
'---Opengauss_Function_JdbcGsBackup_Case0045start---')
self.constant = Constant()
self.DB_ENV_PATH = macro.DB_ENV_PATH
self.Primary_Node = Node('PrimaryDbUser')
self.Root_Node = Node('PrimaryRoot')
self.package = os.path.join(
os.path.dirname(macro.DB_INSTANCE_PATH), 'package_tool')
self.db_name = "db_jdbcgsbackup_0045"
self.se_name = "se_jdbcgsbackup_0045"
self.user = "u_jdbcgsbackup_0045"
text = '备份pg_hba.conf文件'
self.log.info(text)
cmd = f"cp {os.path.join(macro.DB_INSTANCE_PATH, 'pg_hba.conf')} "
f"{os.path.join(macro.DB_INSTANCE_PATH, 'pg_hba.conf_t_bak')}"
self.log.info(cmd)
msg = self.Primary_Node.sh(cmd).result()
self.log.info(msg)
预期输出
实际输出
日志信息
提单组织
测试团队
测试代码