aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJ08nY2022-10-19 17:39:32 +0200
committerJ08nY2022-10-19 17:39:32 +0200
commit6ccdf21ef34e9532e518ed6ae3a4dabb8565d290 (patch)
treedf5892fe8398844b1d2d03a67fa54bb51a32a7c5 /tests
parent943a26e782573bf9efc36017b08c82a1adb5dc37 (diff)
downloadsec-certs-6ccdf21ef34e9532e518ed6ae3a4dabb8565d290.tar.gz
sec-certs-6ccdf21ef34e9532e518ed6ae3a4dabb8565d290.tar.zst
sec-certs-6ccdf21ef34e9532e518ed6ae3a4dabb8565d290.zip
Add a way to get the full MIP and IUT datasets from web.
Diffstat (limited to 'tests')
-rw-r--r--tests/data/settings_test.yaml6
-rw-r--r--tests/test_fips_iut.py4
-rw-r--r--tests/test_fips_mip.py4
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/data/settings_test.yaml b/tests/data/settings_test.yaml
index 03ddbb62..82da0540 100644
--- a/tests/data/settings_test.yaml
+++ b/tests/data/settings_test.yaml
@@ -39,9 +39,15 @@ cert_threshold:
fips_latest_snapshot:
description: URL for the latest snapshot of FIPS dataset
value: https://seccerts.org/fips/dataset.json
+fips_iut_dataset:
+ description: URL for the dataset of FIPS IUT data
+ value: https://seccerts.org/fips/iut/dataset.json
fips_iut_latest_snapshot:
description: URL for the latest snapshot of FIPS IUT data
value: https://seccerts.org/fips/iut/latest.json
+fips_mip_dataset:
+ description: URL for the dataset of FIPS MIP data
+ value: https://seccerts.org/fips/mip/dataset.json
fips_mip_latest_snapshot:
description: URL for the latest snapshot of FIPS MIP data
value: https://seccerts.org/fips/mip/latest.json
diff --git a/tests/test_fips_iut.py b/tests/test_fips_iut.py
index 61761f27..2d8311c3 100644
--- a/tests/test_fips_iut.py
+++ b/tests/test_fips_iut.py
@@ -15,6 +15,10 @@ class TestFIPSIUT(TestCase):
self.assertIsNotNone(dset)
self.assertEqual(len(dset), 2)
+ def test_from_dataset_latest(self):
+ dset = IUTDataset.from_web_latest()
+ self.assertIsNotNone(dset)
+
def test_from_dump(self):
snap = IUTSnapshot.from_dump(self.test_data_dump)
self.assertIsNotNone(snap)
diff --git a/tests/test_fips_mip.py b/tests/test_fips_mip.py
index 170cfc4b..2f891035 100644
--- a/tests/test_fips_mip.py
+++ b/tests/test_fips_mip.py
@@ -15,6 +15,10 @@ class TestFIPSMIP(TestCase):
self.assertIsNotNone(dset)
self.assertEqual(len(dset), 3)
+ def test_from_dataset_latest(self):
+ dset = MIPDataset.from_web_latest()
+ self.assertIsNotNone(dset)
+
def test_from_dump(self):
snap = MIPSnapshot.from_dump(self.test_data_dump)
self.assertIsNotNone(snap)