aboutsummaryrefslogtreecommitdiffstats
path: root/docs/release/userguide/index.rst
blob: 2fad89fb776a2417f8d0e1d034a6532f47777595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. (c)

CIRV-HDV User Guide
===================

Requirements
^^^^^^^^^^^^
* Python3
* pip
* git

Installation
^^^^^^^^^^^^^

Clone repo as follows:

.. code-block:: bash

      $ git clone "https://gerrit.opnfv.org/gerrit/cirv-hdv"


then install required python packages:

.. code-block:: bash

      $ pip install -r cirv-hdv/requirements.txt

The command will install following packages

* PyYAML
* urllib3
* requests
* netaddr
* openpyxl
* pytest
* allure-pytest

Run
^^^^
The hdv tools uses PDF2.0 to get servers information and cases file to read test cases.

Move to the ``/hdv/redfish`` directory and run Validation
 
.. code-block:: bash

      $ cd /hdv/redfish
      $ pytest --allure-dir=<output_directory> --config=<pdf_file> --cases=<cases_file> hdv_redfish.py
      $ allure serve <output_directory>

* allure-dir: Path to name of the folder which will be used later to create graphical reports using python-allure.

.. _link: https://github.com/opnfv/cirv-sdv/tree/master/sdv/pdf/template
* config: Path to pdf2.0 file comply CNTT-RI requirement. It is needed to access servers. For more information, follow the link - `link`_.

* cases: Path to case file, yaml file which store all the cases to validate.

You can look at the configuration guide for further information.