summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiranjan Mallapadi <mrniranjan@redhat.com>2014-04-30 19:39:54 +0530
committerNiranjan Mallapadi <mrniranjan@redhat.com>2014-05-14 23:08:00 +0530
commitc112d33f22e57caf1a01a3770b4e208ed733848a (patch)
treeb38c3f6ebf8541698169caca7332ea3eaee2ee9e
parent0bb2959fd5ed9b6e70b9ee60c7ef1561dd7ec1fa (diff)
downloadpki-c112d33f22e57caf1a01a3770b4e208ed733848a.tar.gz
pki-c112d33f22e57caf1a01a3770b4e208ed733848a.tar.xz
pki-c112d33f22e57caf1a01a3770b4e208ed733848a.zip
setup chrony with time server
setup chrony with a timesource as set in env.sh
-rwxr-xr-xtests/dogtag/acceptance/quickinstall/rhcs-set-time.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/dogtag/acceptance/quickinstall/rhcs-set-time.sh b/tests/dogtag/acceptance/quickinstall/rhcs-set-time.sh
new file mode 100755
index 000000000..a3e6d724e
--- /dev/null
+++ b/tests/dogtag/acceptance/quickinstall/rhcs-set-time.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of /CoreOS/rhcs/acceptance/cli-tests/pki-cert-cli
+# Description: PKI CERT CLI tests
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+# The following pki cert cli commands needs to be tested:
+# pki-cert-request-submit
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Author: Niranjan Mallapadi <mrniranjan@redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2013 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing
+# to use, modify, copy, or redistribute it subject to the terms
+# and conditions of the GNU General Public License version 2.
+#
+# This program is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this program; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include rhts environment
+. /usr/bin/rhts-environment.sh
+. /usr/share/beakerlib/beakerlib.sh
+. /opt/rhqa_pki/rhcs-shared.sh
+. /opt/rhqa_pki/env.sh
+
+run_rhcs_set_time()
+{
+
+ rlPhaseStartSetup "set time source"
+ rlRun "set_time_source $TIMESOURCE" 0 "Setup chrony with $TIMESOURCE as NTP Server"
+ rlPhaseEnd
+}
+