2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-24 12:10:25 +00:00

refine xcat-inventory test case according to new output message in 0.1.2

This commit is contained in:
yangsbj
2018-05-22 02:55:39 -04:00
parent 4fe7627e31
commit f0311c195b
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ end
start:xcat_inventory_invalid_subcmd
description:This case is used to test xcat-inventory export subcommand to handle invalid subcommand. The vaild subcommand are export and import.
cmd:xcat-inventory aaa
check:output=~ xcat-inventory: error: argument <subcommand>: invalid choice:
check:output=~ Error: not a valid subcommand to run
check:output=~ usage:
check:rc!=0
end
@@ -67,7 +67,7 @@ cmd:mkdir -p /tmp/xcat_inventory_import_option_f_invalid_file
check:rc==0
#to handle a non-existed file
cmd:xcat-inventory import -f aaa
check:output=~The specified path does not exist
check:output=~The specified inventory file does not exist
check:output !~Traceback
check:rc!=0
#To handle a invalid json file

View File

@@ -730,7 +730,7 @@ check:rc==0
cmd:lsdef bogusnode > /dev/null 2>&1;if [[ $? -eq 0 ]]; then lsdef bogusnode -z >/tmp/xcat_inventory_try_to_export_nonexisted_node/bogusnode.stanza ;rmdef bogusnode;fi
check:rc==0
cmd: xcat-inventory export --format=json -t node -o bogusnode
check:output=~Error: cannot find objects: 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!