Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test case for NCP-w type determination, update CHANGELOG #93

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project from version 0.9.3 onwards are documented in this file.

## 0.11.3 - 2024-07-17

### Fixes

- NCP-w legal person and natural person final certificates are incorrectly detected as pre-certificates (#92 - fixed by @robstradling)

## 0.11.2 - 2024-07-16

### Fixes
Expand Down
44 changes: 44 additions & 0 deletions tests/etsi/test_etsi_type_determiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,47 @@ def test_qncp_w_ov_eidas_final_certificate():
0a3sOHC4LATcVfZ3OSt+2Vdk5nHsLxGB2Xla1pI/4u/go3p2B3fFv6zAtPVsTyDh
qyg2qSji3w==
-----END CERTIFICATE-----''')


def test_ncp_w_legal_person_final_certificate():
_assert_pem_is_certificate_type(CertificateType.NCP_W_LEGAL_PERSON_FINAL_CERTIFICATE, '''-----BEGIN CERTIFICATE-----
MIIHJzCCBQ+gAwIBAgIQVZHNRxiZp9LoR1nlajD1DDANBgkqhkiG9w0BAQsFADCB
oTELMAkGA1UEBhMCR1IxNjA0BgNVBAoTLUhFTExFTklDIEVYQ0hBTkdFUyAtIEFU
SEVOUyBTVE9DSyBFWENIQU5HRSBTQTEvMC0GA1UEAxMmQVRIRVggUXVhbGlmaWVk
IFdFQiBDZXJ0aWZpY2F0ZXMgQ0EtRzMxDzANBgNVBAcTBkF0aGVuczEYMBYGA1UE
YRMPVkFURUwtMDk5NzU1MTA4MB4XDTI0MDQx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