quipucords / camayoc

Test automation framework that facilitates functional testing of quipucords.
https://camayoc.readthedocs.io/
GNU General Public License v3.0
5 stars 4 forks source link

Issues/334 #335

Closed himmAllRight closed 5 years ago

himmAllRight commented 5 years ago

The hard-coded qpc commands in the camayoc tests have been abstracted out to a client_cmd variable. This is set by exporting the CAMAYOC_CLIENT_CMD environment variable, before running the camayoc tests. By default, client_cmd will be set to qpc if the environment var is not provided.

This allows the camayoc test set to be run using either the upstream (qpc) or downstream (dsc) client commands (or any other compatible client names in the future).

For example, to run the cli tests using dsc instead of qpc:

export CAMAYOC_CLIENT_CMD="dsc"
make test-qpc-cli

Closes #334

codecov[bot] commented 5 years ago

Codecov Report

Merging #335 into master will increase coverage by 0.11%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #335      +/-   ##
==========================================
+ Coverage   76.23%   76.35%   +0.11%     
==========================================
  Files           5        5              
  Lines         202      203       +1     
==========================================
+ Hits          154      155       +1     
  Misses         48       48
Impacted Files Coverage Δ
camayoc/utils.py 68.88% <100%> (+0.7%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 79de605...32253c6. Read the comment docs.