From e157f1439fd68608318d2d2fbc77c89b3d519c94 Mon Sep 17 00:00:00 2001 From: junxiawang Date: Fri, 12 May 2017 15:12:52 +0800 Subject: [PATCH] Add test case for 1276: nicips.enP5p7s0f1 can not removed from node definition.for issue:1276 (#3041) --- xCAT-test/autotest/testcase/confignics/cases0 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xCAT-test/autotest/testcase/confignics/cases0 b/xCAT-test/autotest/testcase/confignics/cases0 index f348f77fb..b2b5b0af1 100644 --- a/xCAT-test/autotest/testcase/confignics/cases0 +++ b/xCAT-test/autotest/testcase/confignics/cases0 @@ -264,3 +264,20 @@ check:rc==0 cmd:if [ -e /opt/xcat/share/xcat/tools/autotest/testcase/confignics/networks.csv ]; then tabrestore /opt/xcat/share/xcat/tools/autotest/testcase/confignics/networks.csv; rm -f /opt/xcat/share/xcat/tools/autotest/testcase/confignics/networks.csv*; fi check:rc==0 end +start:chdef_nicips +description:nicip could be set to null +Attribute: $$CN-The operation object of chdef command +cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi +check:rc==0 +cmd:chdef $$CN nicips.$$SECONDNIC=100.1.0.100 +check:rc==0 +cmd:lsdef $$CN -i nicips +check:output=~nicips.$$SECONDNIC=100.1.0.100 +cmd:chdef $$CN nicips.$$SECONDNIC="" +check:rc==0 +cmd:lsdef $$CN -i nicips +check:output!~100.1.0.100 +cmd:if [ -e /tmp/CN.standa ]; then rmdef $$CN; cat /tmp/CN.standa | mkdef -z; rm -rf /tmp/CN.standa; fi +check:rc==0 +end +