2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-24 05:11:12 +00:00

update cases.osimage.validation : the role attribute of osimage can be blank

This commit is contained in:
yangsbj
2018-05-22 03:00:31 -04:00
parent f0311c195b
commit 111a6c77cf
2 changed files with 4 additions and 4 deletions

View File

@@ -733,7 +733,7 @@ cmd: xcat-inventory export --format=json -t node -o bogusnode
check:output=~Error: cannot find node objects: bogusnode!
check:rc!=0
cmd: xcat-inventory export --format=yaml -t node -o bogusnode
check:output=~Error: cannot find objects: bogusnode!
check:output=~Error: cannot find node objects: bogusnode!
check:rc!=0
cmd:if [[ -e /tmp/xcat_inventory_try_to_export_nonexisted_node/bogusnode.stanza ]]; then cat /tmp/xcat_inventory_try_to_export_nonexisted_node/bogusnode.stanza | mkdef -z;fi
check:rc==0
@@ -752,12 +752,12 @@ check:rc==0
cmd:xcat-inventory export --format=json -t node -o bogusnode |tee /tmp/xcat_inventory_try_to_import_nonexisted_node/json
check:rc==0
cmd:xcat-inventory import -f /tmp/xcat_inventory_try_to_import_nonexisted_node/json -t node -o bogusnode1
check:output=~Error: cannot find objects: bogusnode1!
check:output=~Error: cannot find node objects: bogusnode1!
check:rc!=0
cmd:xcat-inventory export --format=yaml -t node -o bogusnode |tee /tmp/xcat_inventory_try_to_import_nonexisted_node/yaml
check:rc==0
cmd:xcat-inventory import -f /tmp/xcat_inventory_try_to_import_nonexisted_node/yaml -t node -o bogusnode1
check:output=~Error: cannot find objects: bogusnode1!
check:output=~Error: cannot find node objects: bogusnode1!
check:rc!=0
cmd:rmdef bogusnode
check:rc==0

View File

@@ -14,7 +14,7 @@ check: rc==0
cmd: /opt/xcat/share/xcat/tools/autotest/testcase/xcat-inventory/validatehelper "osimage" "testosimage1" "role" "invalid" "/tmp/xcat_inventory_import_validation_osimage/trash/"
check: rc!=0
cmd: /opt/xcat/share/xcat/tools/autotest/testcase/xcat-inventory/validatehelper "osimage" "testosimage1" "role" "" "/tmp/xcat_inventory_import_validation_osimage/trash/"
check: rc!=0
check: rc==0
cmd: /opt/xcat/share/xcat/tools/autotest/testcase/xcat-inventory/validatehelper "osimage" "testosimage1" "imagetype" "windows" "/tmp/xcat_inventory_import_validation_osimage/trash/"
check: rc==0