No description
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • HTML 47.7%
  • Python 18.3%
  • Makefile 12.3%
  • Shell 10.5%
  • CSS 5.5%
  • Other 5.7%
Find a file
2024-11-07 10:32:45 +08:00
ci TSG-7609:解除tsg-diagnose只编译带tag的源码的限制 2021-09-01 15:25:42 +08:00
cmake refactor:Save multi image into one tar file. 2024-11-07 10:32:45 +08:00
compose feature:TSG-23262:Support aarch64 arch. 2024-11-07 10:31:09 +08:00
etc/certs_import bugfix:TSG-7684:TSG-8485:修改自检的服务器证书的签署方式由中间CA证书签发变为root CA证书签发 2021-12-06 17:11:09 +08:00
files_in_policy refactor:修改intercept_rule_file目录名为files_in_policy 2021-09-01 16:15:57 +08:00
images_build feature:TSG-23262:Support aarch64 arch. 2024-11-07 10:31:09 +08:00
k8s-resource refactor:Save multi image into one tar file. 2024-11-07 10:32:45 +08:00
scripts refactor: rewrite tsg diagnose scripts. 2024-05-22 19:41:02 +08:00
service refactor:Save multi image into one tar file. 2024-11-07 10:32:45 +08:00
.gitlab-ci.yml refactor:Save multi image into one tar file. 2024-11-07 10:32:45 +08:00
autorevision.sh TSG-101:增加将 docker-compose.yml和 self-test.service 文件打包成rpm 2020-06-30 13:57:13 +08:00
CMakeLists.txt 增加自检项目名称修改 2020-07-20 16:02:28 +08:00
README.md refactor:Save multi image into one tar file. 2024-11-07 10:32:45 +08:00

TSG Diagnose

TSG Diagnose is a tool designed to check the basic functionality and availability of TSG.

Introduction

TSG Diagnose comprises multiple test cases, each simulating real user requests. The outcome of these requests determines whether a case is successful. TSG Diagnose uses containers to construct realistic client and server environments for these tests. Currently, the TSG Diangose feature supports running in both Docker and k3s environments.

Installation

You can install TSG Diagnose RPM on a TSG-OS machine. Ensure that you install the TSG-OS YUM repository before proceeding with the installation.

dnf install tsg-diagnose

Docker

If you have installed TSG Diagnose with Docker support, you can use the following command to build the TSG Diagnose runtime environment.

docker load < /opt/tsg/tsg-diagnose/images/tsg-diagnose-images.tar
docker-compose down --remove-orphans; docker-compose up -d --remove-orphans

k3s

If you have installed TSG Diagnose with k3s support, you can use the following command to build the TSG Diagnose runtime environment.

k3s ctr image import /opt/tsg/tsg-diagnose/images/tsg-diagnose-images.tar
kubectl apply -f /opt/tsg/tsg-diagnose/k8s-resource/tsg-diagnose.yaml

Usage

There are two commands available to run TSG Diagnose:

  1. tsg-diagnose-oneshot: Runs the test cases in a one-shot mode.
  2. tsg-diagnose-periodical: Runs the test cases periodically.
# Run test cases once
tsg-diagnose-oneshot
# Run test cases periodically
tsg-diagnose-periodical