2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2024-11-25 02:50:40 +00:00
2 Test Design of xcat inventory save keys
zet809 edited this page 2018-07-27 10:38:57 +08:00

Introduction

This document provides an overview of test xcat-inventory save credential keys for export and import. This test plan is intended for the use of xCAT FVT team.

The test is against xCAT version 2.14.3. The build of xCAT will be picked up from the xcat.org

The xcat inventory credential save design is under https://github.com/xcat2/xcat-inventory/pull/75

Affected files

The follow files will be effected.

    ├── etc
    │   └── xcat
    │       ├── ca
    │       │   ├── ca-cert.pem
    │       │   └── private
    │       │       └── ca-key.pem
    │       └── cert
    │           └── server-cred.pem
    └── root
        └── .xcat
            └── client-key.pem

Test steps

  1. backup all credential key files.
  2. Run "xcat-inventory export -t credential -d /tmp/credential" to save the files to directory /tmp/credential
  3. Check if the operation succeeds. And check the files are the same.
  4. Run "xcat-inventory import -t credential -d /tmp/credential" to import the files to xcat db
  5. Check if all the credential files are the same with the files which are saved in step 1.