latchset / custodia

An API to manage secrets storage and retrieval
GNU General Public License v3.0
85 stars 27 forks source link

Functional tests for auth. plugins #232

Open celestian opened 7 years ago

celestian commented 7 years ago

There is a basic set of functional tests for auth. plugins.

For this set it is essential to use parameters, so we don't use fixtures but context manager which prepare right configuration and start Custodia server for us.

For more testing is good idea to prepare class which can prepare more difficult configuration automatically.

codecov-io commented 7 years ago

Codecov Report

Merging #232 into master will increase coverage by 0.65%. The diff coverage is 87.61%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #232      +/-   ##
=========================================
+ Coverage   72.74%   73.4%   +0.65%     
=========================================
  Files          41      42       +1     
  Lines        4433    4614     +181     
  Branches      449     484      +35     
=========================================
+ Hits         3225    3387     +162     
- Misses       1052    1057       +5     
- Partials      156     170      +14
Impacted Files Coverage Δ
tests/functional/base.py 86.69% <84.9%> (+0.33%) :arrow_up:
tests/functional/test_plugin_auth.py 96.07% <96.07%> (ø)

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 a76747b...b6d26ca. Read the comment docs.

celestian commented 7 years ago

I just removed invalid comments from configuration templates.