diff options
author | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2019-02-19 12:38:10 +0200 |
---|---|---|
committer | Dan Xu <xudan16@huawei.com> | 2019-03-13 10:48:45 +0000 |
commit | b4e6a756ebeb019048cb03a0562534870b772cae (patch) | |
tree | 19035c5e15dbe4b227a76e3deaeffbd68afeb68f /docs | |
parent | 0856c3ab2083ed8b8f16572c0f0b249aab203e69 (diff) |
Calculate checksum for input VNF
This patch adds checksum information inside ONAP related test case run
results. The checksum is produced by the VNF input which can either be
a CSAR file or an archive of Heat templates.
Change-Id: I0ed58bdc9cc4031da08fd2ac220ef294520ef447
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/testing/user/userguide/vnf_test_guide.rst | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/docs/testing/user/userguide/vnf_test_guide.rst b/docs/testing/user/userguide/vnf_test_guide.rst index 72b5fa4b..63ed04bf 100644 --- a/docs/testing/user/userguide/vnf_test_guide.rst +++ b/docs/testing/user/userguide/vnf_test_guide.rst @@ -82,11 +82,13 @@ all Dovetail related config files and results files: For example, here we set Dovetail home directory to be ``${HOME}/dovetail``. Afterwards, we will create a directory named ``pre_config`` inside this directory -to store all Dovetail config related files: +to store all Dovetail config related files and a directory named ``results``, where +test results are going to be saved: .. code-block:: bash $ mkdir -p ${DOVETAIL_HOME}/pre_config + $ mkdir -p ${DOVETAIL_HOME}/results There should be a file `env_config.sh` inside this directory to provide some info. @@ -99,20 +101,17 @@ For TOSCA based VNFs, it should look like this: export CSAR_FILE="/path/to/VNF/copied/in/container/name.csar" -For HEAT based VNFs, it should create `vnf_dir` under `pre_config` and copy all -HEAT template VNF packages to `vnf_dir`. - -.. code-block:: bash - - $ mkdir -p ${DOVETAIL_HOME}/pre_config/vnf_dir - +For HEAT based VNFs, the user should copy an archive of the HEAT template VNF +packages to `pre_config`. The archive must be in gzip tar (tar.gz) format. +In addition, the archive must contain only a directory with the same name +(e.g. vnf_a.tar.gz must only include a directory named vnf_a). Configuration file `env_config.sh` should look like this for HEAT based VNFs: .. code-block:: bash $ cat ${DOVETAIL_HOME}/pre_config/env_config.sh - export VNF_DIRECTORY="/path/to/pre_config/vnf_dir" + export VNF_ARCHIVE_NAME="vnf_archive_name" Use the command below to create a Dovetail container and get access to its shell: |