Release: Baseline Test Case Creation Engineer




Дата канвертавання24.04.2016
Памер50.23 Kb.

(JRichard*)

Release: Baseline

Test Case Creation Engineer: Minghsiu Shih

Title: TimeSynchronization

Date Test Case Created: 12/20/2005

Test Case Execution Engineer:

Pass/Fail/Pending:

Test Platform: TBW3 (SwIT), TBW4, TBDR, TBDW (SIT)

Total Test Time:

Start Date:

Run Time for processes or reports:

Complete Date:

Database Instance and Version: PostGres 8.2.x

Logged in User’s Role:

Location of Test Artifacts for this test case: N/A

Notification Server Version: OB9

CI: AF

Last Modified By: Jim Richardson

Number of Executable Steps: 18 + 4 = 22

Test Case: TimeSynchronization


Test Case Description:

This test case demonstrates that the AWIPS system time is synchronized with that of the NCF. This test case also demonstrates that the AWIPS site system is synchronized with the time synchronization node (dx1), and that a server can re-synch with that node if displaced in time.

Note: In a rare case you may have to check for a different time zone representation like British Std Time (BST) instead of UTC.

Requirements:


    • AWIPS shall ensure that the local site clocks are synchronized within 1 second of the site system clock.

    • AWIPS shall provide the user with the capability to set the AWIPS site system clock.

Data Input:

    • Not Applicable.

Prerequisite Conditions:




Step #

Action / Inputs

Expected Outputs

Pass(P)/

Fail(F)


Pending (Pen)

DR #, Name, Description for failed step

Special Needs / Comments



Log into a workstation, open a terminal window, and log into dx1f by typing:

    • ssh dx1f




User is logged into dx1f.













Check that ntp is running by typing:

If not, restart ntpd by typing:






The ntp time sync process is up.













Watch the ntpd daemon on dx1 by typing:

    • sh

    • while true; do sudo ntpq -p; hostname; sleep 1; done




The When column should be a few minutes (expressed in seconds).













Watch the date/time update by typing:

    • (Ctrl-C)

    • sh

    • while true; do date; hostname; sleep 1; done




The system time on dx1f is displayed dynamically. Leave this window open.












Open another terminal window, and log into as3-ancf by typing:

    • ssh as3-ancf –l <username>




User is logged into as3-ancf.

Note: only a few users have accounts on as3 and can log in for you.














Watch the date/time update by typing:

    • sh

    • while true; do date; hostname; sleep 1; done




NCF System time is displayed dynamically.

[Note: time may be displayed as BST, one hour ahead of GMT!]














Open a terminal window for each of the other servers on this site (dx2, dx3, dx4, px1, px2, also px3 + px4 if on TBW4) and the workstation itself (lx#) and xt#, and on each one type:

    • ps –ef | grep ntp | grep -v grep

If not executing, restart ntpd by typing:



    • service ntpd restart



Organize the windows so all are visible at once.

The ntp time sync process is up.









[Adds 4 steps]



Watch the date/time update on each one by typing:

    • sh

    • while true; do date; hostname; sleep 1; done




The system time on each box is displayed dynamically. Leave the windows open.












Compare the times between the NCF server (as3-ancf) and the site time server (dx1-).


The times are in sync.












Compare the times of all the other servers and workstations to that of dx1f-.


The times are all in sync.












Open a new window, log into lx# as root and set the time one minute behind as3 by typing:

    • sudo ssh lx<#>

    • date mmddhhmm




The time for the lx now reflects a minute back in time.

(Greater time offsets will cause this time synchronization to fail.)














In the root window, log into dx1f and set the time one minute behind as3 by typing:

    • ssh dx1f

    • date mmddhhmm




The time for dx1f- now reflects a minute back in time.












In the root window, log into px1f and set the time one minute behind as3 by typing:

    • ssh px1f

    • date mmddhhmm




The time for px1f - now reflects a minute back in time.












In the root window, log into dx3f and set the time one minute behind as3 by typing:

    • ssh dx3f

    • date mmddhhmm




The time for dx3f - now reflects a minute back in time.












In the root window, log into the xt and set the time one minute behind as3 by typing:

    • ssh xt#

    • date mmddhhmm




The time for xt# - now reflects a minute back in time.












Keep checking over the next 1-6 hours until dx1f- automatically resynchronizes with the as3-ancf time synchronization node


This verifies that the site system clock is synchronized with the as3-ancf time synchronization node.













Keep checking until all windows have the same time as dx1 (and as3-ancf).

This verifies that the local site clocks are synchronized with the site system clock.












Exit from all windows.


This concludes the test case.













Printed 4/24/2016 12:07:26 a4/p4




База данных защищена авторским правом ©shkola.of.by 2016
звярнуцца да адміністрацыі

    Галоўная старонка