aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/data
diff options
context:
space:
mode:
authorJ08nY2025-09-25 16:28:49 +0200
committerJ08nY2025-09-25 16:28:49 +0200
commitdaf9ec03ea0b7706079c834bef62d978caed29b1 (patch)
tree997f251567dff857a8e9889b92ea8e319596d31a /tests/data
parentbce2ef9d06f52a98eb543d0760e0f9cd5108bed6 (diff)
downloadsec-certs-daf9ec03ea0b7706079c834bef62d978caed29b1.tar.gz
sec-certs-daf9ec03ea0b7706079c834bef62d978caed29b1.tar.zst
sec-certs-daf9ec03ea0b7706079c834bef62d978caed29b1.zip
Make a JSON schema for CC Certificate and Dataset objects.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/cc/certificate/fictional_cert.json220
1 files changed, 110 insertions, 110 deletions
diff --git a/tests/data/cc/certificate/fictional_cert.json b/tests/data/cc/certificate/fictional_cert.json
index 327aaf46..15b7f507 100644
--- a/tests/data/cc/certificate/fictional_cert.json
+++ b/tests/data/cc/certificate/fictional_cert.json
@@ -1,116 +1,116 @@
{
- "_type": "sec_certs.sample.cc.CCCertificate",
- "dgst": "8049938203b26f7b",
- "status": "archived",
- "category": "Sample category",
- "name": "Sample certificate name",
- "manufacturer": "Sample manufacturer",
- "scheme": "Sample scheme",
- "security_level": {
- "_type": "Set",
- "elements": [
- "Sample security level"
- ]
+ "_type": "sec_certs.sample.cc.CCCertificate",
+ "dgst": "8049938203b26f7b",
+ "status": "archived",
+ "category": "Sample category",
+ "name": "Sample certificate name",
+ "manufacturer": "Sample manufacturer",
+ "scheme": "DE",
+ "security_level": {
+ "_type": "Set",
+ "elements": [
+ "Sample security level"
+ ]
+ },
+ "not_valid_before": "1900-01-02",
+ "not_valid_after": "1900-01-03",
+ "manufacturer_web": "https://path.to/manufacturer/web",
+ "protection_profile_links": {
+ "_type": "Set",
+ "elements": [
+ "https://sample.pp"
+ ]
+ },
+ "maintenance_updates": {
+ "_type": "Set",
+ "elements": [
+ {
+ "_type": "sec_certs.sample.cc.CCCertificate.MaintenanceReport",
+ "maintenance_date": "1900-01-01",
+ "maintenance_title": "Sample maintenance",
+ "maintenance_report_link": "https://maintenance.up",
+ "maintenance_st_link": "https://maintenance.up"
+ }
+ ]
+ },
+ "state": {
+ "_type": "sec_certs.sample.cc.CCCertificate.InternalState",
+ "report": {
+ "_type": "sec_certs.sample.document_state.DocumentState",
+ "download_ok": false,
+ "convert_garbage": false,
+ "convert_ok": false,
+ "extract_ok": false,
+ "pdf_hash": null,
+ "txt_hash": null
},
- "not_valid_before": "1900-01-02",
- "not_valid_after": "1900-01-03",
- "manufacturer_web": "https://path.to/manufacturer/web",
- "protection_profile_links": {
- "_type": "Set",
- "elements": [
- "https://sample.pp"
- ]
- },
- "maintenance_updates": {
- "_type": "Set",
- "elements": [
- {
- "_type": "sec_certs.sample.cc.CCCertificate.MaintenanceReport",
- "maintenance_date": "1900-01-01",
- "maintenance_title": "Sample maintenance",
- "maintenance_report_link": "https://maintenance.up",
- "maintenance_st_link": "https://maintenance.up"
- }
- ]
+ "st": {
+ "_type": "sec_certs.sample.document_state.DocumentState",
+ "download_ok": false,
+ "convert_garbage": false,
+ "convert_ok": false,
+ "extract_ok": false,
+ "pdf_hash": null,
+ "txt_hash": null
},
- "state": {
- "_type": "sec_certs.sample.cc.CCCertificate.InternalState",
- "report": {
- "_type": "sec_certs.sample.document_state.DocumentState",
- "download_ok": false,
- "convert_garbage": false,
- "convert_ok": false,
- "extract_ok": false,
- "pdf_hash": null,
- "txt_hash": null
- },
- "st": {
- "_type": "sec_certs.sample.document_state.DocumentState",
- "download_ok": false,
- "convert_garbage": false,
- "convert_ok": false,
- "extract_ok": false,
- "pdf_hash": null,
- "txt_hash": null
- },
- "cert": {
- "_type": "sec_certs.sample.document_state.DocumentState",
- "download_ok": false,
- "convert_garbage": false,
- "convert_ok": false,
- "extract_ok": false,
- "pdf_hash": null,
- "txt_hash": null
- }
+ "cert": {
+ "_type": "sec_certs.sample.document_state.DocumentState",
+ "download_ok": false,
+ "convert_garbage": false,
+ "convert_ok": false,
+ "extract_ok": false,
+ "pdf_hash": null,
+ "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,
+ "cert_filename": null
+ },
+ "heuristics": {
+ "_type": "sec_certs.sample.cc.CCCertificate.Heuristics",
+ "extracted_versions": null,
+ "cpe_matches": null,
+ "verified_cpe_matches": null,
+ "related_cves": null,
+ "cert_lab": null,
+ "cert_id": null,
+ "annotated_references": null,
+ "extracted_sars": null,
+ "direct_transitive_cves": null,
+ "indirect_transitive_cves": null,
+ "next_certificates": null,
+ "prev_certificates": null,
+ "report_references": {
+ "_type": "sec_certs.sample.certificate.References",
+ "directly_referenced_by": null,
+ "directly_referencing": null,
+ "indirectly_referenced_by": null,
+ "indirectly_referencing": 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,
- "cert_filename": null
+ "st_references": {
+ "_type": "sec_certs.sample.certificate.References",
+ "directly_referenced_by": null,
+ "directly_referencing": null,
+ "indirectly_referenced_by": null,
+ "indirectly_referencing": null
},
- "heuristics": {
- "_type": "sec_certs.sample.cc.CCCertificate.Heuristics",
- "extracted_versions": null,
- "cpe_matches": null,
- "verified_cpe_matches": null,
- "related_cves": null,
- "cert_lab": null,
- "cert_id": null,
- "annotated_references": null,
- "extracted_sars": null,
- "direct_transitive_cves": null,
- "indirect_transitive_cves": null,
- "next_certificates": null,
- "prev_certificates": null,
- "report_references": {
- "_type": "sec_certs.sample.certificate.References",
- "directly_referenced_by": null,
- "directly_referencing": null,
- "indirectly_referenced_by": null,
- "indirectly_referencing": null
- },
- "st_references": {
- "_type": "sec_certs.sample.certificate.References",
- "directly_referenced_by": null,
- "directly_referencing": null,
- "indirectly_referenced_by": null,
- "indirectly_referencing": null
- },
- "scheme_data": null,
- "protection_profiles": null,
- "eal": null
- },
- "report_link": "https://path.to/report/link",
- "st_link": "https://path.to/st/link",
- "cert_link": "https://path.to/cert/link"
+ "scheme_data": null,
+ "protection_profiles": null,
+ "eal": null
+ },
+ "report_link": "https://path.to/report/link",
+ "st_link": "https://path.to/st/link",
+ "cert_link": "https://path.to/cert/link"
}