aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorAdam Janovsky2021-10-22 15:40:27 +0200
committerAdam Janovsky2021-10-22 15:40:27 +0200
commitde37ffef54e74f12cfcd4d09db6d0fe474d31495 (patch)
treeb82de5d9c384da3dad42a0043eabf6f52c1d0ca8 /tests
parentaff49d887a8bdab385146ce9b9a6d3e35acf0d3e (diff)
parent6e08f8ebdabd9b41f0aae195e70194a3a3126430 (diff)
downloadsec-certs-de37ffef54e74f12cfcd4d09db6d0fe474d31495.tar.gz
sec-certs-de37ffef54e74f12cfcd4d09db6d0fe474d31495.tar.zst
sec-certs-de37ffef54e74f12cfcd4d09db6d0fe474d31495.zip
merge dev into cve-matching
Diffstat (limited to 'tests')
-rw-r--r--tests/settings_test.yaml21
-rw-r--r--tests/test_fips_oop.py2
2 files changed, 22 insertions, 1 deletions
diff --git a/tests/settings_test.yaml b/tests/settings_test.yaml
index 9b07a8be..a5c8911f 100644
--- a/tests/settings_test.yaml
+++ b/tests/settings_test.yaml
@@ -1,4 +1,7 @@
---
+log_filepath:
+ description: Path to the file, relative to working directory, where the log will be stored
+ value: ./cert_processing_log.txt
smallest_certificate_id_to_connect:
description: During validation we don't connect certificates with number lower than
_this_ to connections
@@ -10,10 +13,28 @@ year_difference_between_validations:
use_text_with_newlines_during_parsing:
description: During keyword search, search in text with newlines
value: true
+n_threads:
+ description: How many threads to use for parallel computations
+ value: 8
+cc_cpe_matching_threshold:
+ description: Level of required string similarity between CPE and certificate name on CC CPE matching, 0-100. Lower values yield more false negatives, higher values more false positives
+ value: 70
+cc_cpe_max_matches:
+ description: Maximum number of candidate CPE items that may be related to given certificate, >0
+ value: 20
+cc_latest_snapshot:
+ description: Url from where to fetch the latest snapshot of fully processed CC dataset
+ value: https://www.ajanovsky.cz/cc_latest_snapshot.json
+cc_maintenances_latest_snapshot:
+ description: Url from where to fetch the latest snapshot of CC maintenance updates
+ value: https://www.ajanovsky.cz/cc_maintenances_latest_snapshot.json
ignore_first_page:
description: During keyword search, first page usually contains addresses - ignore it.
value: true
cert_threshold:
description: Used with --higher-precision-results. Determines the amount of mismatched algorithms to be considered faulty.
value: 5
+fips_latest_snapshot:
+ description: Url for the latest snapshot of FIPS dataset
+ value: https://seccerts.org/static/fips_dset_ad8734a39b856ca1a1b7b073713872359bae7545.json
diff --git a/tests/test_fips_oop.py b/tests/test_fips_oop.py
index a212d5b9..e7f3a01c 100644
--- a/tests/test_fips_oop.py
+++ b/tests/test_fips_oop.py
@@ -4,7 +4,7 @@ from tempfile import TemporaryDirectory
from sec_certs.dataset.fips import FIPSDataset
from sec_certs.dataset.fips_algorithm import FIPSAlgorithmDataset
-from sec_certs.configuration import config
+from sec_certs.config.configuration import config
from tests.fips_test_utils import generate_html