mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-24 20:20:33 +00:00
add ntp testcase
This commit is contained in:
66
xCAT-test/autotest/testcase/makentp/cases0
Normal file
66
xCAT-test/autotest/testcase/makentp/cases0
Normal file
@@ -0,0 +1,66 @@
|
||||
start:makentp_v
|
||||
descriptiop:makentp -v
|
||||
cmd:makentp -v
|
||||
check:rc==0
|
||||
check:output=~Version
|
||||
end
|
||||
start:makentp_h
|
||||
descriptiop:makentp -h
|
||||
cmd:makentp -h
|
||||
check:rc==0
|
||||
check:output=~Usage: makentp
|
||||
end
|
||||
start:makentp_V
|
||||
descriptiop:makentp -V
|
||||
cmd:makentp -V
|
||||
check:rc==0
|
||||
check:output=~checking if nptd is installed
|
||||
end
|
||||
start:makentp
|
||||
descriptiop:makentp
|
||||
cmd:date -s 20000101
|
||||
check:rc==0
|
||||
cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock -w;else hwclock -w ; fi
|
||||
cmd:chtab key=extntpservers site.value="$$extntpserversip"
|
||||
check:rc==0
|
||||
cmd:makentp
|
||||
check:rc==0
|
||||
check:output=~configuring management node
|
||||
cmd:date
|
||||
check:output=~2015
|
||||
#cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock ;else hwclock ; fi
|
||||
#check:output=~2015
|
||||
end
|
||||
start:makentp_a
|
||||
descriptiop:makentp -a
|
||||
cmd:date -s 20000101
|
||||
check:rc==0
|
||||
cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock -w;else hwclock -w ; fi
|
||||
cmd:chtab key=extntpservers site.value="$$extntpserversip"
|
||||
check:rc==0
|
||||
cmd:makentp -a
|
||||
check:rc==0
|
||||
check:output=~configuring management node
|
||||
cmd:date
|
||||
check:output=~2015
|
||||
#cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock ;else hwclock ; fi
|
||||
#check:output=~2015
|
||||
end
|
||||
|
||||
start:updatenode_computenode_P_setupntp
|
||||
descriptiop:using updatenode -p synch
|
||||
cmd:xdsh $$CN date -s 20000101
|
||||
check:rc==0
|
||||
cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then xdsh $$CN clock -w;else xdsh $$CN hwclock -w ; fi
|
||||
cmd:chdef $$CN -p postscripts=setupntp
|
||||
cmd:chtab key=extntpservers site.value=""
|
||||
check:rc==0
|
||||
cmd:updatenode $$CN -P setupntp
|
||||
check:rc==0
|
||||
check:output=~Running of postscripts has completed
|
||||
cmd:xdsh $$CN date
|
||||
check:output=~2015
|
||||
#cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then xdsh $$CN clock ;else xdsh $$CN hwclock ; fi
|
||||
#check:output=~2015
|
||||
end
|
||||
|
Reference in New Issue
Block a user