Test Design of xcat inventory diff - xcat2/xcat-core GitHub Wiki
This document provides an overview of test xcat-inventory diff command. This test plan is intended for the use of xCAT FVT team.
The test is against xCAT version 2.14.4. The build of xCAT will be picked up from the xcat.org
- Compare 2 inventory files
-
Create 2 inventory files, objects:
node site osimage network
, compared with the first one, the second need to contain content as below:- Add/delete dict type data
- Add/delete string from list data
- Modify value of attribute
-
Compare these 2 files by
xcat-inventory diff --files <file1> <file2>
-
Check output whether is same with prepared output file
- Compare 1 inventory with xCAT DB
-
Backup current inventory info
-
Import inventory file to xCAT DB
-
Compare the inventory file exported withe xCAT DB by
xcat-inventory diff --source <file>
-
Check output whether is same with prepared output file
-
Recover environment
- Compare 1 inventory with xCAT DB with
--all
option
-
Compare the inventory file exported withe xCAT DB by
xcat-inventory diff --source <file> --all
-
Check output whether contains diff string
- Error commands test
-
Run
xcat-inventory diff --files <file1> <file2> --all
, check error message -
Run
xcat-inventory diff --source <file> --filename <filename>
, check error message -
Run
xcat-inventory diff
, check error message -
Run
xcat-inventory diff --files <file1> <file2> --source <file>
, check error message -
Run
xcat-inventory diff --filename <filename>
, check error message -
Run
xcat-inventory diff --files <no_exist_file> <file2>
, check error message