From e50e3f75a334a6e3f1a45003c17ae55eb4eabb49 Mon Sep 17 00:00:00 2001 From: Pavel Negrobov Date: Fri, 26 Apr 2024 12:01:39 +0300 Subject: [PATCH] inf-285 (#9) https://dev-ci.inferitos.ru/job/rpmTests/job/Docker_tests/7313/ -- chrony MSVSphere 9.4 https://dev-ci.inferitos.ru/job/rpmTests/job/Docker_tests/7315/ -- chrony MSVSphere 8.10 Co-authored-by: Pavel Negrobov Reviewed-on: https://git.inferitos.ru/msvsphere/QA/pulls/9 --- tests/p_chrony/001-prepare_environment.sh | 5 +++++ .../p_chrony/01-server-presence-in-config.sh | 20 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 tests/p_chrony/001-prepare_environment.sh create mode 100755 tests/p_chrony/01-server-presence-in-config.sh diff --git a/tests/p_chrony/001-prepare_environment.sh b/tests/p_chrony/001-prepare_environment.sh new file mode 100755 index 0000000..3135f23 --- /dev/null +++ b/tests/p_chrony/001-prepare_environment.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Подготовка окружения для тестирования пакета ${TEST_PACKAGE_NAME}" + +exit 0 diff --git a/tests/p_chrony/01-server-presence-in-config.sh b/tests/p_chrony/01-server-presence-in-config.sh new file mode 100755 index 0000000..9fa98ba --- /dev/null +++ b/tests/p_chrony/01-server-presence-in-config.sh @@ -0,0 +1,20 @@ +#!/bin/bash -x + + +source library/sh_lib.sh + +check=0 + +_GREP_PATTERN="server ntp.msk-ix.ru iburst +server ntp1.vniiftri.ru iburst +server vniiftri2.khv.ru iburst +server ntp1.niiftri.irkutsk.ru iburst +server ntp.sstf.nsk.ru iburst +server ntp2.vniiftri.ru iburst +server ntp3.vniiftri.ru iburst +server ntp4.vniiftri.ru iburst" + +cat /etc/chrony.conf | grep "${_GREP_PATTERN}" +check=$(eq_is_success ${check} 0) + +exit 0