Add a test to ensure test coverage regardless of the vhost order (#6873)

Add a new test to make sure that we are covering all the branches of get_virtual_hosts() regardless of the order that Augeas returns the found VirtualHost paths.

Fixes: #6813

* Add a test to ensure test coverage regardless of the order of returned vhosts

* Use deepcopy instead, and increase coverage requirement back to 100%
This commit is contained in:
Joona Hoikkala
2019-03-27 10:10:52 -07:00
committed by Brad Warren
parent 491d6c8f45
commit b30a5e5b73
2 changed files with 25 additions and 4 deletions
+1 -4
View File
@@ -14,10 +14,7 @@ DEFAULT_PACKAGES = [
COVER_THRESHOLDS = {
'certbot': {'linux': 98, 'windows': 93},
'acme': {'linux': 100, 'windows': 99},
# certbot_apache coverage not being at 100% is a workaround for
# https://github.com/certbot/certbot/issues/6813. We should increase
# the minimum coverage back to 100% when this issue is resolved.
'certbot_apache': {'linux': 99, 'windows': 99},
'certbot_apache': {'linux': 100, 'windows': 100},
'certbot_dns_cloudflare': {'linux': 98, 'windows': 98},
'certbot_dns_cloudxns': {'linux': 99, 'windows': 99},
'certbot_dns_digitalocean': {'linux': 98, 'windows': 98},