Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

/* reference web links to install python, git, ... */

 

sudo dnf -y update

 

sudo dnf -y install python-pip

 

sudo dnf -y install python-devel

 sudo dnf -y install gcc

/* install docker */


2.2.4 Installing Dovetail

...

Additional log files may be of interests: refstack.log, opnfv_yardstick_tcXXX.out ...

 

Example: Openstack refstack test case example

can see the log details in refstack.log, which has the  passed/skipped/failed test cases result, the failed test cases have rich debug information

for the users to see why this test case fails. 

 

Example: OPNFV Yardstick test case example

for yardstick tool, its log is stored in yardstick.log

for each test case result in Yardstick, the logs are stored in opnfv_yardstick_tcXXX.out, respectively.

 

/* OPNFV web interface */

wait for the complement of LF, test community, etc.

2.3.3 Updating Dovetail or Test Suite

...

2.4.3 Running Individual Test Cases or for Special Cases

Refstack client to run Defcore testcases

By default, for Defcore test cases run by Refstack-client, which are consumed by DoveTail,  are run followed with automatically generated configuration file, i.e., tempest.conf.

In some circumstances, the automatic configuration file may not quite satisfied with the SUT, DoveTail provide a way for users to set its configuration file according to its own SUT manually,

besides, the users should define Defcore testcase file, i.e., defcore.txt, at the same time. The steps are shown as,

when "Installing Dovetail Docker Container" method is used,


% sudo mkdir /home/opnfv/dovetail/userconfig

% cd /home/opnfv/dovetail/userconfig

% touch tempest.conf defcore.txt

% vim tempest.conf

% vim defcore.txt


the recommend way to set tempest.conf is shown in https://aptira.com/testing-openstack-tempest-part-1/

the recommended way to edit defcore.txt is to open https://refstack.openstack.org/api/v1/guidelines/2016.08/tests?target=compute&type=required&alias=true&flag=false and copy all the test cases into defcore.txt.

Then use “docker run” to create a container,


% sudo docker run --privileged=true -it -v <openrc_path>:<openrc_path> \

-v /home/opnfv/dovetail/results:/home/opnfv/dovetail/results \

-v /home/opnfv/dovetail/userconfig:/home/opnfv/dovetail/userconfig \

-v /var/run/docker.sock:/var/run/docker.sock \

--name <DoveTail_Container_Name> (optional) \

opnfv/dovetail:<Tag> /bin/bash


 

there is a need to adjust the CVP_1_0_0 testsuite, for dovetail, defcore.tc001.yml and defcore.tc002.yml are used for automatic and manual running method, respectively.

Inside the dovetail container,


 

% cd /home/opnfv/dovetail/compliance

 

% vim CVP_1_0_0.yml


 

to add defcore.tc002 and annotate defcore.tc001.

 

when "Installing Dovetail Directly" method is used, before to run the dovetail commands, there is a need to set configuration file and defcore test cases file

% cd $DOVETAIL_HOME/dovetail

% mkdir userconfig

% cd userconfig

% touch tempest.conf defcore.txt

% vim tempest.conf

% vim defcore.txt


recommended way to set tempest.conf and defcore.txt is same as above in  "Installing Dovetail Docker Container" method section.

 

 For Defcore test cases manually running method, there is a need to adjust the compliance_set test suite,

for dovetail, defcore.tc001.yml and defcore.tc002.yml are used for automatic and manual running method, respectively.  


 

% cd $DOVETAIL_HOME/dovetail/compliance

 

% vim CVP_1_0_0.yml


to add defcore.tc002 and annotate defcore.tc001


3 Dovetail Client CLI Manual

This section contains a brief manual for all the features available through the Dovetail client command line interface (CLI).

...