aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/index.rst
blob: 7d7ece7253ad729047135c1ccfb1018517cc1766 (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
60
61
62
63
64
65
66
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. (c) 

CIRV-HDV Developer Guide
========================


Intended Audience
^^^^^^^^^^^^^^^^^

This document is intended to aid those who want to modify the hdv code Or 
to extend it to add new features.

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

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

Clone repo as follows:

.. code-block:: bash

      $ git clone "git clone "ssh://YourLFID@gerrit.opnfv.org:29418/cirv-hdv""


then install required python packages:

.. code-block:: bash

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


Structure
^^^^^^^^^ 
  
.. code-block:: console

    ./redfish
    ├─conf   # config directory
    ├─logs   # hdv.log would be generated here.


.. code-block:: console

    $ ls redfish/*.py
    redfish/__init__.py  
    redfish/hdv_redfish.py    #The main code implementation by parsing config.yaml and cases.yaml
    redfish/conftest.py       # File automitacally runs before hdv_redfish.py used to take input and add paramters to fixtures.
    redfish/log_utils.py      #log utils
    redfish/errors.py         #error code definition for the tool during parse.
    redfish/http_handler.py   #http_handler
    redfish/yaml_utils.py	  #yaml utils for test.

    $ ls redfish/conf
    pdf2.0  # OPNFV Pod Descriptor File, Used by hdv for accessing servers
    cases.yaml   #test cases yaml file
    report.yaml  #final test report


    $ ls redfish/logs
    hdv.log     # test log file