aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/data
diff options
context:
space:
mode:
authorJ08nY2024-02-08 00:58:58 +0100
committerJ08nY2024-02-08 00:58:58 +0100
commit4243fd6937bfdcab2dbcaa80e26fb8a03c579b0a (patch)
tree2fb3c1a91a0a682f2b65ab9678f1f0817881c50b /tests/data
parent131489e8a1f32d5119fbb2a1283827fe6f045c74 (diff)
downloadsec-certs-4243fd6937bfdcab2dbcaa80e26fb8a03c579b0a.tar.gz
sec-certs-4243fd6937bfdcab2dbcaa80e26fb8a03c579b0a.tar.zst
sec-certs-4243fd6937bfdcab2dbcaa80e26fb8a03c579b0a.zip
Add extraction of certificate data.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/cc/certificate/fictional_cert.json14
-rw-r--r--tests/data/cc/dataset/auxiliary_datasets/maintenances/maintenance_updates.json14
-rw-r--r--tests/data/cc/dataset/toy_dataset.json42
3 files changed, 60 insertions, 10 deletions
diff --git a/tests/data/cc/certificate/fictional_cert.json b/tests/data/cc/certificate/fictional_cert.json
index ff95795c..96f42c07 100644
--- a/tests/data/cc/certificate/fictional_cert.json
+++ b/tests/data/cc/certificate/fictional_cert.json
@@ -43,27 +43,37 @@
"_type": "sec_certs.sample.cc.CCCertificate.InternalState",
"st_download_ok": false,
"report_download_ok": false,
+ "cert_download_ok": false,
"st_convert_garbage": false,
"report_convert_garbage": false,
+ "cert_convert_garbage": false,
"st_convert_ok": false,
"report_convert_ok": false,
+ "cert_convert_ok": false,
"st_extract_ok": false,
"report_extract_ok": false,
+ "cert_extract_ok": false,
"st_pdf_hash": null,
"report_pdf_hash": null,
+ "cert_pdf_hash": null,
"st_txt_hash": null,
- "report_txt_hash": null
+ "report_txt_hash": null,
+ "cert_txt_hash": null
},
"pdf_data": {
"_type": "sec_certs.sample.cc.CCCertificate.PdfData",
"report_metadata": null,
"st_metadata": null,
+ "cert_metadata": null,
"report_frontpage": null,
"st_frontpage": null,
+ "cert_frontpage": null,
"report_keywords": null,
"st_keywords": null,
+ "cert_keywords": null,
"report_filename": null,
- "st_filename": null
+ "st_filename": null,
+ "cert_filename": null
},
"heuristics": {
"_type": "sec_certs.sample.cc.CCCertificate.Heuristics",
diff --git a/tests/data/cc/dataset/auxiliary_datasets/maintenances/maintenance_updates.json b/tests/data/cc/dataset/auxiliary_datasets/maintenances/maintenance_updates.json
index 4c1ff4c7..bc720a76 100644
--- a/tests/data/cc/dataset/auxiliary_datasets/maintenances/maintenance_updates.json
+++ b/tests/data/cc/dataset/auxiliary_datasets/maintenances/maintenance_updates.json
@@ -24,27 +24,37 @@
"_type": "sec_certs.sample.cc.CCCertificate.InternalState",
"st_download_ok": true,
"report_download_ok": true,
+ "cert_download_ok": false,
"st_convert_garbage": false,
"report_convert_garbage": false,
+ "cert_convert_garbage": false,
"st_convert_ok": false,
"report_convert_ok": false,
+ "cert_convert_ok": false,
"st_extract_ok": false,
"report_extract_ok": false,
+ "cert_extract_ok": false,
"st_pdf_hash": "d42e4364d037ba742fcd4050a9a84d0e6300f93eb68bcfe8c61f72c429c9ceca",
"report_pdf_hash": "80bada65614c1b037c13efa78996a8910700d0e05a3ca217286f76d7dacefe62",
+ "cert_pdf_hash": null,
"st_txt_hash": null,
- "report_txt_hash": null
+ "report_txt_hash": null,
+ "cert_txt_hash": null
},
"pdf_data": {
"_type": "sec_certs.sample.cc.CCCertificate.PdfData",
"report_metadata": null,
"st_metadata": null,
+ "cert_metadata": null,
"report_frontpage": null,
"st_frontpage": null,
+ "cert_frontpage": null,
"report_keywords": null,
"st_keywords": null,
+ "cert_keywords": null,
"report_filename": "383-7-159 MR v1.0e.pdf",
- "st_filename": "383-7-159 ST v1.4 CCRA.pdf"
+ "st_filename": "383-7-159 ST v1.4 CCRA.pdf",
+ "cert_filename": null
},
"heuristics": {
"_type": "sec_certs.sample.cc.CCCertificate.Heuristics",
diff --git a/tests/data/cc/dataset/toy_dataset.json b/tests/data/cc/dataset/toy_dataset.json
index e32cffa4..e60ecf2c 100644
--- a/tests/data/cc/dataset/toy_dataset.json
+++ b/tests/data/cc/dataset/toy_dataset.json
@@ -47,27 +47,37 @@
"_type": "sec_certs.sample.cc.CCCertificate.InternalState",
"st_download_ok": false,
"report_download_ok": false,
+ "cert_download_ok": false,
"st_convert_garbage": false,
"report_convert_garbage": false,
+ "cert_convert_garbage": false,
"st_convert_ok": false,
"report_convert_ok": false,
+ "cert_convert_ok": false,
"st_extract_ok": false,
"report_extract_ok": false,
+ "cert_extract_ok": false,
"st_pdf_hash": null,
"report_pdf_hash": null,
+ "cert_pdf_hash": null,
"st_txt_hash": null,
- "report_txt_hash": null
+ "report_txt_hash": null,
+ "cert_txt_hash": null
},
"pdf_data": {
"_type": "sec_certs.sample.cc.CCCertificate.PdfData",
"report_metadata": null,
"st_metadata": null,
+ "cert_metadata": null,
"report_frontpage": null,
"st_frontpage": null,
+ "cert_frontpage": null,
"report_keywords": null,
"st_keywords": null,
+ "cert_keywords": null,
"report_filename": null,
- "st_filename": null
+ "st_filename": null,
+ "cert_filename": null
},
"heuristics": {
"_type": "sec_certs.sample.cc.CCCertificate.Heuristics",
@@ -136,27 +146,37 @@
"_type": "sec_certs.sample.cc.CCCertificate.InternalState",
"st_download_ok": false,
"report_download_ok": false,
+ "cert_download_ok": false,
"st_convert_garbage": false,
"report_convert_garbage": false,
+ "cert_convert_garbage": false,
"st_convert_ok": false,
"report_convert_ok": false,
+ "cert_convert_ok": false,
"st_extract_ok": false,
"report_extract_ok": false,
+ "cert_extract_ok": false,
"st_pdf_hash": null,
"report_pdf_hash": null,
+ "cert_pdf_hash": null,
"st_txt_hash": null,
- "report_txt_hash": null
+ "report_txt_hash": null,
+ "cert_txt_hash": null
},
"pdf_data": {
"_type": "sec_certs.sample.cc.CCCertificate.PdfData",
"report_metadata": null,
"st_metadata": null,
+ "cert_metadata": null,
"report_frontpage": null,
"st_frontpage": null,
+ "cert_frontpage": null,
"report_keywords": null,
"st_keywords": null,
+ "cert_keywords": null,
"report_filename": null,
- "st_filename": null
+ "st_filename": null,
+ "cert_filename": null
},
"heuristics": {
"_type": "sec_certs.sample.cc.CCCertificate.Heuristics",
@@ -233,27 +253,37 @@
"_type": "sec_certs.sample.cc.CCCertificate.InternalState",
"st_download_ok": false,
"report_download_ok": false,
+ "cert_download_ok": false,
"st_convert_garbage": false,
"report_convert_garbage": false,
+ "cert_convert_garbage": false,
"st_convert_ok": false,
"report_convert_ok": false,
+ "cert_convert_ok": false,
"st_extract_ok": false,
"report_extract_ok": false,
+ "cert_extract_ok": false,
"st_pdf_hash": null,
"report_pdf_hash": null,
+ "cert_pdf_hash": null,
"st_txt_hash": null,
- "report_txt_hash": null
+ "report_txt_hash": null,
+ "cert_txt_hash": null
},
"pdf_data": {
"_type": "sec_certs.sample.cc.CCCertificate.PdfData",
"report_metadata": null,
"st_metadata": null,
+ "cert_metadata": null,
"report_frontpage": null,
"st_frontpage": null,
+ "cert_frontpage": null,
"report_keywords": null,
"st_keywords": null,
+ "cert_keywords": null,
"report_filename": null,
- "st_filename": null
+ "st_filename": null,
+ "cert_filename": null
},
"heuristics": {
"_type": "sec_certs.sample.cc.CCCertificate.Heuristics",