2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

add label for xcat-inventory test cases

This commit is contained in:
huweihua 2018-09-27 00:48:35 -04:00
parent 8fb1fc8dbe
commit d8f69ef52c
10 changed files with 90 additions and 2 deletions

View File

@ -1,5 +1,6 @@
start:xcat_inventory_option_h
description:This case is used to test xcat-inventory usage information
label:others,xcat_inventory
cmd:xcat-inventory -h
check:ouptut=~usage: xcat-inventory
check:ouptut!~usage: xcat-inventory export
@ -24,6 +25,7 @@ end
start:xcat_inventory_option_V
description:This case is used to test xcat-inventory option V which used to get version information
label:others,xcat_inventory
cmd:xcat-inventory -V
check:ouptut=~\d\.\d
check:rc==0
@ -31,6 +33,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.
label:others,xcat_inventory
cmd:xcat-inventory aaa
check:output=~ Error: not a valid subcommand to run
check:output=~ usage:
@ -39,6 +42,7 @@ end
start:xcat_inventory_export_option_t_invalid_type
description:This case is used to test xcat-inventory export subcommand to handle invalid type for option t
label:others,xcat_inventory
cmd:xcat-inventory export -t aaa
check:output=~Invalid object type
check:output!~Traceback (most recent call last):
@ -47,6 +51,7 @@ end
start:xcat_inventory_export_option_format_invalid_type
description:This case is used to test xcat-inventory export subcommand to handle invalid type for option format
label:others,xcat_inventory
cmd:xcat-inventory export --format aaa
check:output=~Invalid exporting format: aaa
check:output!~Traceback (most recent call last):
@ -55,6 +60,7 @@ end
start:xcat_inventory_export_option_f
description:This case is used to test xcat-inventory export subcommand to handle option f
label:others,xcat_inventory
cmd:dir="/tmp/xcat_inventory_export_option_f";echo ${dir}".old";if [ -d "${dir}" ];then mv ${dir} ${dir}".old"; fi; mkdir -p $dir
check:rc==0
cmd:lsdef bogusnode > /dev/null 2>&1;if [[ $? -eq 0 ]]; then lsdef bogusnode -z >/tmp/xcat_inventory_export_option_f/bogusnode.stanza ;rmdef bogusnode;fi
@ -99,6 +105,7 @@ end
start:xcat_inventory_import_option_f_invalid_file
description:This case is used to test xcat-inventory import subcommand to handle invalid file for option f
label:others,xcat_inventory
cmd:mkdir -p /tmp/xcat_inventory_import_option_f_invalid_file
check:rc==0
#to handle a non-existed file
@ -150,6 +157,7 @@ end
start:xcat_inventory_import_option_t_invalid_type
description:This case is used to test xcat-inventory import subcommand to handle invalid type for option t
label:others,xcat_inventory
cmd:xcat-inventory import -t aaa
check:output=~Invalid object type
check:output!~Traceback (most recent call last):
@ -159,6 +167,7 @@ end
start:xcat_inventory_import_miss_option
description:This case is used to test xcat-inventory import subcommand to handle missing -t or -o option
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_nodes_delimited_with_comma_by_json
check:rc==0
cmd:#!/usr/bin/bash

View File

@ -1,5 +1,6 @@
start:xcat_inventory_import_validation_network
description:This case is used to test network validation function of xcat-inventory import yaml and json file. To test "net" "mask" "dynamicrange" and "staticrange" attributes
label:others,xcat_inventory
cmd:lsdef -t network -o autotestnet > /dev/null 2>&1;if [[ $? -eq 0 ]]; then lsdef -t network -o autotestnet -z >/tmp/xcat_inventory_import_validation_network_bak/autotestnet.stanza ;rmdef -t network -o autotestnet;fi
check:rc==0
cmd:mkdir -p /tmp/xcat_inventory_import_validation_network_bak

View File

@ -1,6 +1,7 @@
start:export_import_single_ppc_by_json
description:This case is used to test xcat-inventory export and import one ppc definition by json between 2 exact same MNs. This case can cover hmc,lpar. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_ppc_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_ppc_by_json_$$DSTMN/'
@ -53,6 +54,7 @@ end
start:export_import_single_ppc_by_yaml
description:This case is used to test xcat-inventory export and import one ppc definition by yaml between 2 exact same MNs. This case can cover hmc,lpar. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_ppc_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_ppc_by_yaml_$$DSTMN/'
@ -105,6 +107,7 @@ end
start:export_import_single_kvm_by_json
description:This case is used to test xcat-inventory export and import one kvm definition by json between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_kvm_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_kvm_by_json_$$DSTMN/'
@ -158,6 +161,7 @@ end
start:export_import_single_kvm_by_yaml
description:This case is used to test xcat-inventory export and import one kvm definition by yaml between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_kvm_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_kvm_by_yaml_$$DSTMN/'
@ -211,6 +215,7 @@ end
start:export_import_single_pdu_by_json
description:This case is used to test xcat-inventory export and import one pdu definition by json between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_pdu_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_pdu_by_json_$$DSTMN/'
@ -263,6 +268,7 @@ end
start:export_import_single_pdu_by_yaml
description:This case is used to test xcat-inventory export and import one pdu definition by yaml between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_pdu_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_pdu_by_yaml_$$DSTMN/'
@ -315,6 +321,7 @@ end
start:export_import_single_boston_by_yaml
description:This case is used to test xcat-inventory export and import one boston node definition by yaml between 2 exact same MNs. This case can also cover p8 physical node, x86 physical node. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_boston_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_boston_by_yaml_$$DSTMN/'
@ -366,6 +373,7 @@ end
start:export_import_single_boston_by_json
description:This case is used to test xcat-inventory export and import one boston node definition by json between 2 exact same MNs. This case can also cover p8 physical node, x86 physical node. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_boston_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_boston_by_json_$$DSTMN/'
@ -417,6 +425,7 @@ end
start:export_import_single_witherspoon_by_yaml
description:This case is used to test xcat-inventory export and import one witherspoon node definition by yaml between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_witherspoon_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_witherspoon_by_yaml_$$DSTMN/'
@ -468,6 +477,7 @@ end
start:export_import_single_witherspoon_by_json
description:This case is used to test xcat-inventory export and import one witherspoon node definition by json between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_witherspoon_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_witherspoon_by_json_$$DSTMN/'
@ -520,6 +530,7 @@ end
start:export_import_single_switch_by_json
description:This case is used to test xcat-inventory export and import one switch node definition by json between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_switch_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_switch_by_json_$$DSTMN/'
@ -571,6 +582,7 @@ end
start:export_import_single_switch_by_yaml
description:This case is used to test xcat-inventory export and import one switch node definition by yaml between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_switch_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_switch_by_yaml_$$DSTMN/'
@ -623,6 +635,7 @@ end
start:export_import_nodes_delimited_with_comma_by_yaml
description:This case is used to test xcat-inventory export and import the definition of nodes delimited with comma by yaml between 2 exact same MNs.Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_nodes_delimited_with_comma_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_nodes_delimited_with_comma_by_yaml_$$DSTMN/'
@ -674,6 +687,7 @@ end
start:export_import_nodes_delimited_with_comma_by_json
description:This case is used to test xcat-inventory export and import the definition of nodes delimited with comma by json between 2 exact same MNs.Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_nodes_delimited_with_comma_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_nodes_delimited_with_comma_by_json_$$DSTMN/'
@ -725,6 +739,7 @@ end
start:xcat_inventory_try_to_export_nonexisted_node
description:This case is used to test xcat-inventory export a nonexisted node
label:others,xcat_inventory
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_nonexisted_node
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
@ -743,6 +758,7 @@ end
start:xcat_inventory_try_to_import_nonexisted_node
description:This case is used to test xcat-inventory import a nonexisted node
label:others,xcat_inventory
cmd:mkdir -p /tmp/xcat_inventory_try_to_import_nonexisted_node
check:rc==0
cmd:lsdef bogusnode > /dev/null 2>&1;if [[ $? -eq 0 ]]; then lsdef bogusnode -z >/tmp/xcat_inventory_try_to_import_nonexisted_node/bogusnode.stanza ;rmdef bogusnode;fi
@ -768,6 +784,7 @@ check:rc==0
end
start:xcat_inventory_try_to_export_all_type_is_node_default_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is node by default format. I.e, do not specify the format of export.
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_node_default_format
check:rc==0
@ -810,6 +827,7 @@ end
start:xcat_inventory_try_to_export_all_type_is_node_yaml_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is node by yaml format.
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_node_yaml_format
check:rc==0
@ -852,6 +870,7 @@ end
start:xcat_inventory_try_to_export_all_type_is_node_json_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is node by json format.
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_node_json_format
check:rc==0
@ -892,6 +911,7 @@ check:rc==0
end
start:xcat_inventory_try_to_import_all_type_is_node_yaml_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory import all definition which type is node from a yaml file.
cmd:mkdir -p /tmp/xcat_inventory_try_to_import_all_type_is_node_yaml_format
check:rc==0
@ -1216,6 +1236,7 @@ end
start:xcat_inventory_try_to_import_all_type_is_node_json_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory import all definition which type is node from a yaml file.
cmd:mkdir -p /tmp/xcat_inventory_try_to_import_all_type_is_node_json_format
check:rc==0
@ -1618,6 +1639,7 @@ check:rc==0
end
start:export_more_nodes_import_part_nodes_json
label:others,xcat_inventory
description:This case is used to test xcat-inventory import all definition which type is node from a yaml file.
cmd:mkdir -p /tmp/export_more_nodes_import_part_nodes_json
check:rc==0
@ -1660,6 +1682,7 @@ check:rc==0
end
start:export_more_nodes_import_part_nodes_yaml
label:others,xcat_inventory
description:This case is used to test xcat-inventory import all definition which type is node from a yaml file.
cmd:mkdir -p /tmp/export_more_nodes_import_part_nodes_yaml
check:rc==0
@ -1702,6 +1725,7 @@ check:rc==0
end
start:export_single_node_then_modify_yaml_then_import
label:others,xcat_inventory
description:This case is used to test xcat-inventory import a node , then modify the export yaml file, then import the yaml file
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
cmd:mkdir -p /tmp/export_single_node_then_modify_yaml_then_import
@ -1782,6 +1806,7 @@ end
start:export_single_node_then_modify_json_then_import
description:This case is used to test xcat-inventory import a node , then modify the export json file, then import the json file
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_single_node_then_modify_json_then_import
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_single_node_then_modify_json_then_import_$$DSTMN/'
@ -1856,6 +1881,7 @@ check:rc==0
end
start:export_import_single_group_json
label:others,xcat_inventory
description:This case is used to test xcat-inventory export and import the definition of group
cmd:mkdir -p /tmp/export_import_single_group_json
check:rc==0
@ -1918,6 +1944,7 @@ check:rc==0
end
start:export_import_single_group_yaml
label:others,xcat_inventory
description:This case is used to test xcat-inventory export and import the definition of group
cmd:mkdir -p /tmp/export_import_single_group_yaml
check:rc==0
@ -1980,6 +2007,7 @@ check:rc==0
end
start:import_validation_node_obj_type
label:others,xcat_inventory
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "obj_type" attribute
cmd:mkdir -p /tmp/import_validation_node_obj_type_bak
check:rc==0
@ -2004,6 +2032,7 @@ check:rc==0
end
start:import_validation_node_obj_info_groups
label:others,xcat_inventory
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "obj_info.groups" attribute
cmd:mkdir -p /tmp/import_validation_node_obj_info_groups_bak
check:rc==0
@ -2024,6 +2053,7 @@ check:rc==0
end
start:import_validation_node_device_type
label:others,xcat_inventory
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
@ -2054,6 +2084,7 @@ check:rc==0
end
start:import_validation_node_device_info_arch
label:others,xcat_inventory
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "device_info.arch" attribute
cmd:mkdir -p /tmp/import_validation_node_device_info_arch_bak
check:rc==0
@ -2084,6 +2115,7 @@ check:rc==0
end
start:import_validation_node_security_info_snmp_securitylevel
label:others,xcat_inventory
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "security_info.snmp.securitylevel" attribute
cmd:mkdir -p /tmp/import_validation_node_security_info_snmp_securitylevel_bak
check:rc==0
@ -2112,6 +2144,7 @@ check:rc==0
end
start:import_validation_node_security_info_snmp_authprotocol
label:others,xcat_inventory
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "security_info.snmp.authprotocol" attribute
cmd:mkdir -p /tmp/import_validation_node_security_info_snmp_authprotocol_bak
check:rc==0
@ -2143,6 +2176,7 @@ end
start:import_validation_node_security_info_snmp_privacyprotocol
label:others,xcat_inventory
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "security_info.snmp.privacyprotocol" attribute
cmd:mkdir -p /tmp/import_validation_node_security_info_snmp_privacyprotocol_bak
check:rc==0
@ -2172,6 +2206,7 @@ end
start:import_validation_node_security_info_remotecontrol_remoteprotocol
label:others,xcat_inventory
descrremoteprotocoltion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "security_info.remotecontrol.remoteprotocol" attribute
cmd:mkdir -p /tmp/import_validation_node_security_info_remotecontrol_remoteprotocol_bak
check:rc==0
@ -2198,6 +2233,7 @@ check:rc==0
end
start:import_validation_node_network_info_primarynic_ip
label:others,xcat_inventory
description:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "network_info.primarynic.ip" attribute
cmd:mkdir -p /tmp/import_validation_node_network_info_primarynic_ip_bak
check:rc==0
@ -2224,6 +2260,7 @@ check:rc==0
end
start:import_validation_node_network_info_primarynic_mac
label:others,xcat_inventory
descrmaction:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "network_info.primarynic.mac" attribute
cmd:mkdir -p /tmp/import_validation_node_network_info_primarynic_mac_bak
check:rc==0
@ -2248,6 +2285,7 @@ check:rc==0
end
start:import_validation_node_nics_network_info_nics_ips
label:others,xcat_inventory
descrnics_network_info_nics_ipstion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "network_info.nics.ips" attribute
cmd:mkdir -p /tmp/import_validation_node_nics_network_info_nics_ips_bak
check:rc==0
@ -2275,6 +2313,7 @@ end
start:import_validation_node_network_info_primarynic_switchport
label:others,xcat_inventory
descrswitchporttion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "network_info.primarynic.switchport" attribute
cmd:mkdir -p /tmp/import_validation_node_network_info_primarynic_switchport_bak
check:rc==0
@ -2298,6 +2337,7 @@ end
start:import_validation_node_engines_hardware_mgt_engine_engine_type
label:others,xcat_inventory
descrengine_typetion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "engines.hardware_mgt_engine.engine_type" attribute
cmd:mkdir -p /tmp/import_validation_node_engines_hardware_mgt_engine_engine_type_bak
check:rc==0
@ -2342,6 +2382,7 @@ end
start:import_validation_node_engines_netboot_engine_engine_type
label:others,xcat_inventory
descrengine_typetion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "engines.netboot_engine.engine_type" attribute
cmd:mkdir -p /tmp/import_validation_node_engines_netboot_engine_engine_type_bak
check:rc==0
@ -2375,6 +2416,7 @@ end
start:import_validation_node_role
label:others,xcat_inventory
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
@ -2401,6 +2443,7 @@ check:rc==0
end
start:import_validation_node_role_info_setuptftp
label:others,xcat_inventory
descrsetuptftption:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setuptftp" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setuptftp_bak
check:rc==0
@ -2427,6 +2470,7 @@ check:rc==0
end
start:import_validation_node_role_info_setupnameserver
label:others,xcat_inventory
descrsetupnameservertion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupnameserver" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupnameserver_bak
check:rc==0
@ -2455,6 +2499,7 @@ end
start:import_validation_node_role_info_setupdhcp
label:others,xcat_inventory
descrsetupdhcption:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupdhcp" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupdhcp_bak
check:rc==0
@ -2480,6 +2525,7 @@ cmd:rm -rf /tmp/import_validation_node_role_info_setupdhcp_bak
end
start:import_validation_node_role_info_setupntp
label:others,xcat_inventory
descrsetupntption:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupntp" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupntp_bak
check:rc==0
@ -2505,6 +2551,7 @@ cmd:rm -rf /tmp/import_validation_node_role_info_setupntp_bak
end
start:import_validation_node_role_info_setupldap
label:others,xcat_inventory
descrsetupldaption:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupldap" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupldap_bak
check:rc==0
@ -2530,6 +2577,7 @@ cmd:rm -rf /tmp/import_validation_node_role_info_setupldap_bak
end
start:import_validation_node_role_info_setupproxydhcp
label:others,xcat_inventory
descrsetupproxydhcption:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupproxydhcp" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupproxydhcp_bak
check:rc==0
@ -2555,6 +2603,7 @@ cmd:rm -rf /tmp/import_validation_node_role_info_setupproxydhcp_bak
end
start:import_validation_node_role_info_setupipforward
label:others,xcat_inventory
descrsetupipforwardtion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupipforward" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupipforward_bak
check:rc==0
@ -2580,6 +2629,7 @@ cmd:rm -rf /tmp/import_validation_node_role_info_setupipforward_bak
end
start:import_validation_node_role_info_setupconserver
label:others,xcat_inventory
descrsetupnfstion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupconserver" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupconserver_bak
check:rc==0
@ -2609,6 +2659,7 @@ end
start:import_validation_node_role_info_setupnfs
label:others,xcat_inventory
descrsetupconservertion:This case is used to test node validation function of xcat-inventory import yaml and json file. To test "role_info.setupnfs" attribute
cmd:mkdir -p /tmp/import_validation_node_role_info_setupnfs_bak
check:rc==0

View File

@ -1,6 +1,7 @@
start:export_import_single_osimage_by_yaml
description:This case is used to test xcat-inventory export and import one linux osimage definition by yaml between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_osimage_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_osimage_by_yaml_$$DSTMN/'
@ -44,6 +45,7 @@ end
start:export_import_single_osimage_by_json
description:This case is used to test xcat-inventory export and import one linux osimage definition by json between 2 exact same MNs. Before running this case, make sure these two MNs have been installed same exactly, and the current MN can connect the other MN by ssh without password. This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_single_osimage_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_single_osimage_by_json_$$DSTMN/'
@ -87,6 +89,7 @@ end
start:xcat_inventory_try_to_export_all_type_is_osimage_default_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is osimage by default format, i.e. json format.
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_osimage_default_format
check:rc==0
@ -127,6 +130,7 @@ check:rc==0
end
start:xcat_inventory_try_to_export_all_type_is_osimage_json_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is osimage by json format.
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_osimage_json_format
check:rc==0
@ -167,6 +171,7 @@ check:rc==0
end
start:xcat_inventory_try_to_export_all_type_is_osimage_yaml_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is osimage by yaml format.
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_osimage_yaml_format
check:rc==0
@ -208,6 +213,7 @@ end
start:xcat_inventory_try_to_import_all_type_is_osimage_yaml_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory import all definition which type is osimage from a yaml file.
cmd:mkdir -p /tmp/xcat_inventory_try_to_import_all_type_is_osimage_yaml_format
check:rc==0
@ -470,6 +476,7 @@ check:rc==0
end
start:xcat_inventory_try_to_import_all_type_is_osimage_json_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory import all definition which type is osimage from a json file.
cmd:mkdir -p /tmp/xcat_inventory_try_to_import_all_type_is_osimage_json_format
check:rc==0
@ -802,6 +809,7 @@ end
start:export_single_osimage_then_modify_json_then_import
label:others,xcat_inventory
description:This case is used to test xcat-inventory import a osimage , then modify the export json file, then import the json file
cmd:mkdir -p /tmp/export_single_osimage_then_modify_json_then_import
check:rc==0
@ -858,6 +866,7 @@ check:rc==0
end
start:export_single_osimage_then_modify_yaml_then_import
label:others,xcat_inventory
description:This case is used to test xcat-inventory import a osimage , then modify the export yaml file, then import the yaml file
cmd:mkdir -p /tmp/export_single_osimage_then_modify_yaml_then_import
check:rc==0
@ -915,6 +924,7 @@ end
start:export_import_single_osimage_by_dir
label:others,xcat_inventory
description:This case is used to test xcat-inventory export and import one linux osimage definition by files.
cmd:if [ -e /tmp/otherpkglist ]; then cp -f /tmp/otherpkglist /tmp/otherpkglist.bak; fi
cmd:echo "test" >> /tmp/otherpkglist
@ -985,6 +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
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
@ -1116,6 +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
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
@ -1257,6 +1269,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
description:This case is used to test xcat-inventory export and import linux osimage definition witch -c option.
label:others,xcat_inventory
cmd:dir="/tmp/export";if [ -e "${dir}" ];then mv ${dir} ${dir}".bak"; fi; mkdir -p $dir

View File

@ -1,5 +1,6 @@
start:export_import_an_osimage_directory
description: import an osimage diretory with `xcat-inventroy import -d <osimage directory>`
label:others,xcat_inventory
#backup any existing test_myimage
cmd:mkdir -p /tmp/export_import_an_osimage_directory/backup
check:rc==0
@ -38,6 +39,7 @@ end
start:export_import_multiple_osimages_from_osimage_directory
description: import multiple osimage diretories with `xcat-inventroy import -d <osimage directory>`
label:others,xcat_inventory
#backup any existing test_myimage,test_myimage2
cmd:mkdir -p /tmp/export_import_multiple_osimages_from_osimage_directory/backup
check:rc==0
@ -91,6 +93,7 @@ end
start:export_import_specified_from_osimage_directory
description: import specified osimage from osimage diretory with `xcat-inventroy import -d <osimage directory> -t osimage -o`
label:others,xcat_inventory
#backup any existing test_myimage
cmd:mkdir -p /tmp/export_import_specified_from_osimage_directory/backup
check:rc==0

View File

@ -1,6 +1,6 @@
start: xcat_inventory_import_validation_osimage
description: verify the validation mechanisom while importing osimage object
label:others,xcat_inventory
cmd: rm -rf /tmp/xcat_inventory_import_validation_osimage
cmd: mkdir -p /tmp/xcat_inventory_import_validation_osimage
cmd: mkdir -p /tmp/xcat_inventory_import_validation_osimage/trash/

View File

@ -1,5 +1,6 @@
start:xcat_inventory_import_validation_passwd
description:This case is used to test passwd validation function of xcat-inventory import yaml and json file. To test "cryptmethod" attribute
label:others,xcat_inventory
cmd:tabdump -w 'key==autotest' passwd |grep autotest > /dev/null 2>&1;if [[ $? -eq 0 ]]; then xcat-inventory export -t passwd -o autotest >/tmp/xcat_inventory_import_validation_passwd_bak/autotest ;tabch -d 'key==autotest' passwd;fi
check:rc==0
cmd:mkdir -p /tmp/xcat_inventory_import_validation_passwd_bak

View File

@ -1,5 +1,6 @@
start:xcat_inventory_import_validation_route
description:This case is used to test route validation function of xcat-inventory import yaml and json file. To test "net" and "mask" attributes
label:others,xcat_inventory
cmd:mkdir -p /tmp/xcat_inventory_import_validation_route_bak
check:rc==0
cmd:lsdef -t route -o autotestnet > /dev/null 2>&1;if [[ $? -eq 0 ]]; then lsdef -t route -o autotestnet -z >/tmp/xcat_inventory_import_validation_route_bak/autotestnet.stanza ;rmdef -t route -o autotestnet;fi

View File

@ -1,6 +1,7 @@
start:export_import_site_by_yaml
description:This case is used to test xcat-inventory export and import site table by yaml between 2 excat same MNs. Before running this case, make sure these two MNs have been installed same excatly, and the current MN can connect the other MN by ssh without password.This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_site_by_yaml
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_site_by_yaml_$$DSTMN/'
@ -47,6 +48,7 @@ end
start:export_import_site_by_json
description:This case is used to test xcat-inventory export and import site table by json between 2 excat same MNs. Before running this case, make sure these two MNs have been installed same excatly, and the current MN can connect the other MN by ssh without password.This case also can be run in one MN, this is, export from currnet node then import back to currnet node, in this case, just need to set $$DSTMN=<currnet node ip>
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_import_site_by_json
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_import_site_by_json_$$DSTMN/'
@ -91,6 +93,7 @@ end
start:xcat_inventory_try_to_export_all_type_is_site_default_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is site to default file. I.e. json file
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_site_default_format
check:rc==0
@ -207,6 +210,7 @@ check:rc==0
end
start:xcat_inventory_try_to_export_all_type_is_site_json_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is site to default file. I.e. json file
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_site_json_format
check:rc==0
@ -323,6 +327,7 @@ check:rc==0
end
start:xcat_inventory_try_to_export_all_type_is_site_yaml_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory export all definition which type is site to default file. I.e. json file
cmd:mkdir -p /tmp/xcat_inventory_try_to_export_all_type_is_site_yaml_format
check:rc==0
@ -436,6 +441,7 @@ end
start:xcat_inventory_try_to_import_all_type_is_site_json_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory impport all definition which type is site from json file.
cmd:mkdir -p /tmp/xcat_inventory_try_to_import_all_type_is_site_json_format
check:rc==0
@ -866,6 +872,7 @@ check:rc==0
end
start:xcat_inventory_try_to_import_all_type_is_site_yaml_format
label:others,xcat_inventory
description:This case is used to test xcat-inventory impport all definition which type is site from json file.
cmd:mkdir -p /tmp/xcat_inventory_try_to_import_all_type_is_site_yaml_format
check:rc==0
@ -1235,6 +1242,7 @@ end
start:export_site_table_then_modify_yaml_then_import
This case is used to test xcat-inventory import a site , then modify the export yaml file, then import the yaml file
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_site_table_then_modify_yaml_then_import
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_site_table_then_modify_yaml_then_import_$$DSTMN/'
@ -1298,6 +1306,7 @@ end
start:export_site_table_then_modify_json_then_import
This case is used to test xcat-inventory import a site , then modify the export json file, then import the json file
Attribute: $$DSTMN - the ip of MN which is used to run import operation.
label:others,xcat_inventory
cmd:mkdir -p /tmp/export_site_table_then_modify_json_then_import
check:rc==0
cmd:ssh $$DSTMN 'mkdir -p /tmp/export_site_table_then_modify_json_then_import_$$DSTMN/'

View File

@ -1,6 +1,6 @@
start: xcat_inventory_import_validation_site
description: verify the validation mechanisom while importing site object
label:others,xcat_inventory
cmd: rm -rf /tmp/xcat_inventory_import_validation_site
cmd: mkdir -p /tmp/xcat_inventory_import_validation_site
cmd: mkdir -p /tmp/xcat_inventory_import_validation_site/trash/