mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
add more test cases for inventory_ci label
This commit is contained in:
parent
109e08f37b
commit
818da380e8
@ -1,7 +1,7 @@
|
||||
start:import_osimage_with_environments_in_yaml
|
||||
description:this case is to verify if osimage import could support environment variables.
|
||||
os:Linux
|
||||
label:others,inventory_ci,invoke_provision
|
||||
label:others,invoke_provision
|
||||
cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN
|
||||
check:rc==0
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
start:export_import_osimage_with_INCLUDE_in_file
|
||||
description:This case is used to test xcat-inventory export and import one linux osimage definition which has INCLUDE in the attribute's specified files. The attributes are pkglist, otherpkglist,exlist,synclists,template,postinstall and partitionfile.
|
||||
label:others,xcat_inventory
|
||||
label:others,inventory_ci
|
||||
cmd:dir="/tmp/imagedata/";if [ -e "${dir}" ];then mv ${dir} ${dir}".bak"; fi; mkdir -p $dir
|
||||
check:rc==0
|
||||
cmd:dir="/tmp/imagedata/export";if [ -e "${dir}" ];then mv ${dir} ${dir}".bak"; fi; mkdir -p $dir
|
||||
|
@ -2051,7 +2051,7 @@ check:rc==0
|
||||
end
|
||||
|
||||
start:import_validation_node_device_type
|
||||
label:others,xcat_inventory
|
||||
label:others,inventory_ci
|
||||
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "device_type" attribute
|
||||
cmd:mkdir -p /tmp/import_validation_node_device_type_bak
|
||||
check:rc==0
|
||||
@ -2414,7 +2414,7 @@ end
|
||||
|
||||
|
||||
start:import_validation_node_role
|
||||
label:others,xcat_inventory
|
||||
label:others,inventory_ci
|
||||
descrroletion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role" attribute
|
||||
cmd:mkdir -p /tmp/import_validation_node_role_bak
|
||||
check:rc==0
|
||||
|
@ -995,7 +995,7 @@ cmd:file="/tmp/partitionfile"; rm -rf $file; if [ -d ${file}".bak" ];then mv ${f
|
||||
end
|
||||
|
||||
start:export_import_multiple_osimages_by_dir
|
||||
label:others,xcat_inventory
|
||||
label:others,inventory_ci
|
||||
description:This case is used to test xcat-inventory export and import several linux osimages definition by dir.
|
||||
cmd:if [ -e /tmp/otherpkglist ]; then cp -f /tmp/otherpkglist /tmp/otherpkglist.bak; fi
|
||||
cmd:echo "test" >> /tmp/otherpkglist
|
||||
@ -1127,7 +1127,7 @@ cmd:file="/opt/xcat/share/xcat/install/rh/template"; rm -rf $file; if [ -d ${fil
|
||||
end
|
||||
|
||||
start:export_import_all_osimages_by_dir
|
||||
label:others,xcat_inventory
|
||||
label:others,inventory_ci
|
||||
description:This case is used to test xcat-inventory export and import all linux osimage definition by files.
|
||||
cmd:lsdef -t osimage -z | tee /tmp/osimage.list
|
||||
check:rc==0
|
||||
@ -1264,7 +1264,7 @@ cmd:if [ -e /tmp/osimages.bak ]; then mv -f /tmp/osimages.bak /tmp/osimages; fi
|
||||
end
|
||||
|
||||
start:export_import_osimages_by_dir_with_c
|
||||
label:others,xcat_inventory
|
||||
label:others,inventory_ci
|
||||
description:This case is used to test xcat-inventory export and import linux osimage definition witch -c option.
|
||||
cmd:dir="/tmp/export";if [ -e "${dir}" ];then mv ${dir} ${dir}".bak"; fi; mkdir -p $dir
|
||||
cmd:imgdir='/tmp/export';for img in $(lsdef -t osimage -s|awk -F' ' '{print $1}'); do lsdef -t osimage -o $img -z > $imgdir/${img}.stanza;done
|
||||
|
@ -1,6 +1,6 @@
|
||||
start:export_import_an_osimage_directory
|
||||
description: import an osimage diretory with `xcat-inventroy import -d <osimage directory>`
|
||||
label:others,xcat_inventory
|
||||
label:others,inventory_ci
|
||||
#backup any existing test_myimage
|
||||
cmd:mkdir -p /tmp/export_import_an_osimage_directory/backup
|
||||
check:rc==0
|
||||
|
Loading…
x
Reference in New Issue
Block a user