Skip to content

net-mgr/svrkeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svrkeeper

環境

  • Debian 10
  • Python3.6以上
  • Bash

インストール方法

  1. GitHubでForkする

Webテストを行う場合、Forkして、所有者としてアクセス可能なリポジトリにする必要があります。

  1. GitHubからcloneする。

以下のコマンドのnet-mgrは自身のアカウント名または自身に所有権がある組織になります。

git clone https://github.com/net-mgr/svrkeeper.git
  1. pip3をインストールし、Pythonの必要なモジュールをインストール
$ sudo apt install python3-pip openssl
$ pip3 install -r requirements.txt
  1. config/以下に設定ファイルを設置

設定ファイルの例をconfig_sample/に配置しています。 設定ファイルの説明はdoc/config/README.mdに記述しています。

テストの実行方法

./run.shを実行する。

$ ./run.sh

テストはカテゴリを1つ指定することで、そのカテゴリのみ実行されます。

$ ./run.sh login
$ ./run.sh mail
$ ./run.sh web
$ ./run.sh edit
$ ./run.sh backup
$ ./run.sh dns
$ ./run.sh access

テストを実行するとパスワードの入力を求められます。設定ファイルを作成したときに使用したパスワードを入力してください。

# Input setting file password: 
##################################################
# Results of each category
# Category 1: Login test
# => All tests were passed.
# Category 2: Mail test
# => All tests were passed.
# Category 3: Web test
# => All tests were passed.
# Category 4: File editing test
# => All tests were passed.
# Category 5: Backup test
# => All tests were passed.
# Category 6: DNS test
# => All tests were passed.
# Category 7: Access point test
# => All tests were passed.
##################################################
# Total result
# => All tests were passed.

テスト結果は各カテゴリごとに出力されます。

テスト結果のメッセージ 説明
# => All tests were passed. そのカテゴリのテストはすべて合格またはテストが実施されていません。
# => Some tests were not passed. Check results. そのカテゴリのテストのうち、1つ以上で不合格です。
# => Some tests has error. Check results. そのカテゴリのテストでエラーが発生しています。

また、テスト結果は以下のファイルに保存されています。

カテゴリ 保存先
Login test results/login_test.log
Mail test results/mail_test.log
Web test results/Web_test.log
File editing test results/edit_file_test.log
Backup test results/backup_test.log
DNS test results/dns_test.log
Access point test results/access_point_test.log

ディレクトリ構成

ディレクトリ名 内容
config テストに必要なパラメータのファイルを保存。また、暗号化した認証情報はconfig/setting.sec.shに暗号化して保存。(詳しくはdoc/config/README.md
config_sample configに設置するファイルの例を保存。テストには使わない。
results テスト結果を保存
scripts テストを実行するスクリプトを保存。すべてrun.shからのみ呼び出す

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6