mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-21 05:25:32 +00:00
modify testcases using "makedhcp -q " to validate the "makedhcp" result check
This commit is contained in:
@ -16,10 +16,11 @@ cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:makedhcp -q $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN
|
||||
cmd:makedns -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -q $$CN
|
||||
check:output=~$$CN
|
||||
cmd:makeconservercf $$CN
|
||||
check:rc==0
|
||||
cmd:cat /etc/conserver.cf | grep $$CN
|
||||
|
@ -20,10 +20,9 @@ cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
#cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$SN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$SN;fi
|
||||
cmd:makedhcp -q $$SN
|
||||
check:rc==0
|
||||
check:output=~$$SN
|
||||
|
||||
cmd:chdef -t node $$SN groups=service,all
|
||||
check:rc==0
|
||||
cmd:chdef -t group -o service profile=service primarynic=mac installnic=mac
|
||||
|
@ -27,8 +27,8 @@ check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:sleep 10
|
||||
#cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$CN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$CN;fi
|
||||
cmd:makedhcp -q $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
|
@ -23,10 +23,9 @@ cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
#cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$CN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$CN;fi
|
||||
cmd:makedhcp -q $$CN
|
||||
check:output=~$$CN
|
||||
|
||||
check:rc==0
|
||||
cmd:copycds $$ISO
|
||||
check:rc==0
|
||||
|
||||
|
@ -17,8 +17,8 @@ cmd:makedhcp -n
|
||||
check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
#cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$CN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$CN;fi
|
||||
cmd:makedhcp -q $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN
|
||||
|
||||
cmd:copycds $$ISO
|
||||
|
@ -21,8 +21,8 @@ cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:service dhcpd restart
|
||||
check:rc==0
|
||||
#cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$CN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$CN;fi
|
||||
cmd:makedhcp -q $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN
|
||||
|
||||
cmd:copycds $$ISO
|
||||
|
@ -16,6 +16,7 @@ check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:makedhcp -q $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN
|
||||
cmd:makeconservercf $$CN
|
||||
check:rc==0
|
||||
|
@ -11,6 +11,7 @@ check:rc==0
|
||||
cmd:makedhcp -a
|
||||
check:rc==0
|
||||
cmd:makedhcp -q $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN
|
||||
cmd:makeconservercf $$CN
|
||||
check:rc==0
|
||||
|
Reference in New Issue
Block a user