[Kimchi-devel] [PATCH V2][Wok 00/12] FVT testcases wok framework

Lucio Correia luciojhc at linux.vnet.ibm.com
Tue May 31 14:16:13 UTC 2016


Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>

On 31-05-2016 03:53, Archana Singh wrote:
>
>
> On 5/30/2016 11:08 PM, Lucio Correia wrote:
>> I'm getting 0 tests ran in my F23 x86, is that correct?
> Yes, as currently we do not have any fvt testcases added. It just a
> framework. Once this framework in place, testcases can be added.
>>
>> $ make check-fvt
>> ./run_tests.sh
>> New python executable in /home/dev/wok/tests/fvt/venv/bin/python
>> Installing setuptools, pip, wheel...done.
>> Collecting jsonschema (from -r
>> /home/dev/wok/tests/fvt/requirements.txt (line 22))
>>   Downloading jsonschema-2.5.1-py2.py3-none-any.whl
>> Collecting requests (from -r /home/dev/wok/tests/fvt/requirements.txt
>> (line 23))
>>   Downloading requests-2.10.0-py2.py3-none-any.whl (506kB)
>>     100% |████████████████████████████████| 512kB 2.2MB/s
>> Collecting functools32; python_version == "2.7" (from jsonschema->-r
>> /home/dev/wok/tests/fvt/requirements.txt (line 22))
>>   Downloading functools32-3.2.3-2.zip
>> Building wheels for collected packages: functools32
>>   Running setup.py bdist_wheel for functools32 ... done
>>   Stored in directory:
>> /home/dev/.cache/pip/wheels/3c/d0/09/cd78d0ff4d6cfecfbd730782a7815a4571cd2cd4d2ed6e69d9
>>
>> Successfully built functools32
>> Installing collected packages: functools32, jsonschema, requests
>> Successfully installed functools32-3.2.3.post2 jsonschema-2.5.1
>> requests-2.10.0
>>
>> ----------------------------------------------------------------------
>> Ran 0 tests in 0.000s
>>
>> OK
>> rm -fr venv
>>
>>
>> On 30-05-2016 04:10, archus at linux.vnet.ibm.com wrote:
>>> From: Archana Singh <archus at linux.vnet.ibm.com>
>>>
>>> Patch for adding FVT testcases wok framework which can be used across
>>> plugins.
>>> The changes are:
>>> 1) Added fvt package inside tests directory.
>>> 2) Added config file inside fvt package to have session details.
>>> 3) restapilib.py to have common classes/methods for REST API calls.
>>> 4) fvt_base.py, a base test class to take care of doing
>>> common setup and treadown required for any fvt test cases like
>>> creating/destroying session using config file and restapilib.py.
>>> 5) run_test.sh.in script to install all the dependencies and to run
>>> all FVT.
>>> 6) make file changes to have 'make check-fvt' for running all the FVT.
>>> 7) Instruction added in REDME.md for make check-fvt.
>>> 8) Added tests/fvt/config into IBM license blacklist.
>>>
>>> Archana Singh (12):
>>>    FVT: Package for functional verification testcases.
>>>    FVT: Wok level config file to have 'sectionsi required for fvt common
>>>      across plugins.
>>>    FVT: Lists all dependecies for fvt testcases.
>>>    FVT: Common classes/methods for API calls as per config file
>>>      configuration.
>>>    FVT: Base test class, takes care common actions required for any FVT
>>>      test cases.
>>>    FVT: Install all the dependencies from requirements.txt and runs FVT
>>>      testcases
>>>    FVT: Makefile needed for build and run fvt.
>>>    FVT: Added fvt as subdirs and check-fvt to run fvt testcases using
>>>      make.
>>>    FVT: Added FVT Makefile path in AC_CONFIG_FILES list.
>>>    FVT: Added check-fvt to run FVT testcases using make and venv dir to
>>>      be cleaned.
>>>    FVT: Added Readme instruction for running fvt testcases.
>>>    Added tests/fvt/config file into backlist.
>>>
>>>   IBM-license-blacklist      |   1 +
>>>   Makefile.am                |   6 +
>>>   configure.ac               |   1 +
>>>   docs/README.md             |   8 +
>>>   tests/Makefile.am          |   7 +
>>>   tests/fvt/Makefile.am      |  43 +++
>>>   tests/fvt/__init__.py      |  18 ++
>>>   tests/fvt/config           |   7 +
>>>   tests/fvt/fvt_base.py      |  92 ++++++
>>>   tests/fvt/requirements.txt |  23 ++
>>>   tests/fvt/restapilib.py    | 738
>>> +++++++++++++++++++++++++++++++++++++++++++++
>>>   tests/fvt/run_tests.sh.in  |  92 ++++++
>>>   12 files changed, 1036 insertions(+)
>>>   create mode 100644 tests/fvt/Makefile.am
>>>   create mode 100644 tests/fvt/__init__.py
>>>   create mode 100644 tests/fvt/config
>>>   create mode 100644 tests/fvt/fvt_base.py
>>>   create mode 100644 tests/fvt/requirements.txt
>>>   create mode 100644 tests/fvt/restapilib.py
>>>   create mode 100755 tests/fvt/run_tests.sh.in
>>>
>>
>>
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list