Skip to content

Commit

Permalink
Merge pull request #39 from chadgates/fix/brokentests
Browse files Browse the repository at this point in the history
Fix/brokentests
  • Loading branch information
abhishek-ram authored Jan 8, 2022
2 parents c8cc68f + dc7d644 commit 66954dc
Show file tree
Hide file tree
Showing 11 changed files with 144 additions and 145 deletions.
37 changes: 19 additions & 18 deletions pyas2lib/tests/fixtures/cert_mecas2_public.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
-----BEGIN CERTIFICATE-----
MIID6DCCAtCgAwIBAgIEV3EEFTANBgkqhkiG9w0BAQUFADCBtTEvMC0GCSqGSIb3DQEJARYgd2Vi
bWFzdGVyQG1haWxhZGRyZXNzb25kb21haW4udG8xCzAJBgNVBAYTAmRlMRMwEQYDVQQIDApTdGF0
ZSBuYW1lMRYwFAYDVQQHDA1Mb2NhbGl0eSBuYW1lMRUwEwYDVQQKDAxZb3VyIGNvbXBhbnkxIDAe
BgNVBAsMF1lvdXIgY29tcGFueSBkZXBhcnRtZW50MQ8wDQYDVQQDDAZtZWNhczIwHhcNMTYwNjI3
MTA0NjQ1WhcNMTcwNjI3MTA0NjQ1WjCBtTEvMC0GCSqGSIb3DQEJARYgd2VibWFzdGVyQG1haWxh
ZGRyZXNzb25kb21haW4udG8xCzAJBgNVBAYTAmRlMRMwEQYDVQQIDApTdGF0ZSBuYW1lMRYwFAYD
VQQHDA1Mb2NhbGl0eSBuYW1lMRUwEwYDVQQKDAxZb3VyIGNvbXBhbnkxIDAeBgNVBAsMF1lvdXIg
Y29tcGFueSBkZXBhcnRtZW50MQ8wDQYDVQQDDAZtZWNhczIwggEiMA0GCSqGSIb3DQEBAQUAA4IB
DwAwggEKAoIBAQCQqgqomGqMl1+nNHPhYE759aRapZqKnPb73z5X3YTQ+Ss0WhEYFiYPC3Dfgv1r
mxr73s5ipOZepLfsPzMIWn6L5/1jmbcMs3dbpmYUR7YRXn6ov4MQZM7HVTzKwwHb1Y6x5knZ6zWs
lT0J2ep+BnfPQkPfnhAUl6jdX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WJIMSEwHwYDVQQLDBhEbyBub3QgdXNl
IGluIHByb2R1Y3Rpb24xHTAbBgNVBAMMFG1lbmRlbHNvbiB0ZXN0IGtleSAzMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjVOG3wM5krK1Sux4ZFrYgLzf6Ru3RmlCE9UmRyFyJlzUF2aH
F2lq7KW1HISMA0doJARksnHHVeQn5AeItpCwA4ypqItkKXjYGOeR00ZuyiH22qNoVv+pfA9DP3TE
kopx75ux1KFu6/sdATsu7nFaiPyh2Qk6XE4sZ0FL+qRh+1UZDqo1zxVAOC62nBxZPc5I/rg9JPI7
KLrBc8uu1gNTYEAQPUxEDJlGFwnPpm4xeMKWSpQhP3/+QxLnOkWI7awcJFIxeaF/1ug5cyH+4xwf
gLV65sEKKXgzjvHHnpiDc3Fhq2WHQR5gx58D4JbZlAlMMCU7dJDJvQp5dZBFhxE0qQIDAQABozEw
LzAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA0GCSqGSIb3
DQEBCwUAA4IBAQBUP3uPOyvSwbJdKJftYOfdEtSFgQJRMFyJb/zY3BhtFW9ylVkze+pQLLjDy4nL
F7nGpa36v5TxXbSSfP3o4NS1Rc4rb5g/hGi0Lx1iyfCYDbCVI5t8NdM8jfxkjb6bYQkja7479N9+
bCvM8pKFflfEe2sfi4t6qqa4qXYYtVSwTJspD8pgRnMdAS5hd/DkseWwqHEOfLnWiwtAgS8aFyaf
GdZKfToVsLnkFDwbu3gcGhxX+eZz93uuXc9hK9xNYl+DGCv9b3M5S6ynQRP4h4Y6+RXH/MkRHp4C
eH3dWhrG2os1gUfiQYSuFJGJ+SWV1XR9r7jkBo0qm+Gi5PIcExbH
-----END CERTIFICATE-----
Binary file modified pyas2lib/tests/fixtures/cert_test.p12
Binary file not shown.
97 changes: 47 additions & 50 deletions pyas2lib/tests/fixtures/cert_test.pem
Original file line number Diff line number Diff line change
@@ -1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saWIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9GdYaZ2nb
Swv9ciVgnd5YGgKk9MyVgg6qY+gnrarJ2Ii2gMl2CtiaCSIMpVCaq7LRqIXIsGY/
7N+/WtESUL8SAmDu+5J5OYWBw5WbrYazpvx9EIRjd3mM0ejzU3U3q/P4D7OhiaJF
kNpc5Tuup/PCtKkdMLvCPITJQkt2dlWrvrR8Kl3CWCJHqLZytOmOKBO+1hleT9XN
waaf3nSc6t9YXq/RUQdUQKkcmiAhqWixyjh4v9o0QFo8qnvIGF0n4i+E1LNaIVSD
Pe6ULkWfpQLc1Ik9QceTyw/yAwUwoI1f016UeQIGCjGoErYCRNtyb74IutETMTcb
oIIEoA1T1SM5AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAAA3Gh0CSnfu7RvT37wq
eNWaIeWl3akLbgHAkDoW500D/l6g+zXXYFXZ0bafh0bNV2WKv/lLxc8GW53J2t0k
A/QYUoaWWZBMogResu99eKafZZECcYZdWbXQpvpfwwLq57sPISUko7yEYNWn2DS3
ro26dQmPkyV78x3TXJuQL4ofEVDcB9jYWGIqPZ/n9alBK95ogJF/G6Mq+XYWSYtH
0He6YW1UASYgtNRHwPLMro6RYlJDsdOWTKkbs3kjroAUtaAj50S3mKjy5J0ERLTn
d+hTtFpCQCoe6m5xGsj3jssuFLT4js5MRzAo7qETcNYkeOCBWkZYOKXH3e5gMqk1
RtI=
-----END CERTIFICATE-----

40 changes: 18 additions & 22 deletions pyas2lib/tests/fixtures/cert_test_public.pem
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
-----BEGIN CERTIFICATE-----
MIID8DCCAtigAwIBAgIJAPt2MZjIdR/YMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNV
BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQxETAPBgNVBAMTCHB5YXMybGliMB4XDTE2MT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ogJF/G6Mq+XYWSYtH
0He6YW1UASYgtNRHwPLMro6RYlJDsdOWTKkbs3kjroAUtaAj50S3mKjy5J0ERLTn
d+hTtFpCQCoe6m5xGsj3jssuFLT4js5MRzAo7qETcNYkeOCBWkZYOKXH3e5gMqk1
RtI=
-----END CERTIFICATE-----
Binary file modified pyas2lib/tests/fixtures/mecas2_compressed.as2
Binary file not shown.
Binary file modified pyas2lib/tests/fixtures/mecas2_compressed_signed_encrypted.as2
Binary file not shown.
Binary file modified pyas2lib/tests/fixtures/mecas2_encrypted.as2
Binary file not shown.
99 changes: 52 additions & 47 deletions pyas2lib/tests/fixtures/mecas2_signed.as2
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
from: as2@company.com
content-length: 3669
content-type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="----=_Part_211_306083396.1641304626706"
as2-version: 1.2
ediint-features: multiple-attachments, CEM
message-id: <mendelson_opensource_AS2-1480406596475-6@mecas2_pyas2mac>
content-length: 4080
user-agent: mendelson opensource AS2 1.1 build 47 - www.mendelson-e-c.com
connection: close, TE
mime-version: 1.0
recipient-address: http://host.docker.internal:8000/pyas2/as2receive/
message-id: <mendelson_opensource_AS2-1641304626700-55@mecas2_pyas2lib>
as2-from: mecas2
as2-to: pyas2lib
subject: AS2 message
as2-to: pyas2mac
host: 127.0.0.1:8081
from: as2@company.com
connection: close, TE
date: Tue, 04 Jan 2022 13:57:06 UTC
disposition-notification-to: http://www.company.com:8080/as2/HttpReceiver
content-disposition: attachment; filename="smime.p7m"
host: host.docker.internal:8000
user-agent: mendelson opensource AS2 1.1 build 59 - www.mendelson-e-c.com
expect: 100-continue
as2-from: mecas2
disposition-notification-options: signed-receipt-protocol=optional, pkcs7-signature; signed-receipt-micalg=optional, sha1
disposition-notification-to: http://localhost:8080/as2/HttpReceiver
date: Tue, 29 Nov 2016 13:33:36 IST
recipient-address: http://127.0.0.1:8081/pyas2/as2receive
as2-version: 1.2
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="----=_Part_1_1464954728.1480403996634"

------=_Part_1_1464954728.1480403996634
Date: Tue, 4 Jan 2022 13:57:06 +0000 (UTC)

------=_Part_211_306083396.1641304626706
Content-Type: application/EDI-Consent
Content-Transfer-Encoding: binary
Content-Disposition: attachment; filename=payload.txt
Expand Down Expand Up @@ -51,40 +53,43 @@ CNT+2:3'
UNT+26+1'
UNZ+1+5'

------=_Part_1_1464954728.1480403996634
------=_Part_211_306083396.1641304626706
Content-Type: application/pkcs7-signature; name=smime.p7s; smime-type=signed-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIAwggPoMIIC
0KADAgECAgRXcQQVMA0GCSqGSIb3DQEBBQUAMIG1MS8wLQYJKoZIhvcNAQkBFiB3ZWJtYXN0ZXJA
bWFpbGFkZHJlc3NvbmRvbWFpbi50bzELMAkGA1UEBhMCZGUxEzARBgNVBAgMClN0YXRlIG5hbWUx
FjAUBgNVBAcMDUxvY2FsaXR5IG5hbWUxFTATBgNVBAoMDFlvdXIgY29tcGFueTEgMB4GA1UECwwX
WW91ciBjb21wYW55IGRlcGFydG1lbnQxDzANBgNVBAMMBm1lY2FzMjAeFw0xNjA2MjcxMDQ2NDVa
Fw0xNzA2MjcxMDQ2NDVaMIG1MS8wLQYJKoZIhvcNAQkBFiB3ZWJtYXN0ZXJAbWFpbGFkZHJlc3Nv
bmRvbWFpbi50bzELMAkGA1UEBhMCZGUxEzARBgNVBAgMClN0YXRlIG5hbWUxFjAUBgNVBAcMDUxv
Y2FsaXR5IG5hbWUxFTATBgNVBAoMDFlvdXIgY29tcGFueTEgMB4GA1UECwwXWW91ciBjb21wYW55
IGRlcGFydG1lbnQxDzANBgNVBAMMBm1lY2FzMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
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ZUBtZW5kZWxzb24uZGUxCzAJBgNVBAYTAkRFMQ8wDQYDVQQI
DAZCZXJsaW4xDzANBgNVBAcMBkJlcmxpbjEiMCAGA1UECgwZbWVuZGVsc29uLWUtY29tbWVyY2Ug
R21iSDEhMB8GA1UECwwYRG8gbm90IHVzZSBpbiBwcm9kdWN0aW9uMR0wGwYDVQQDDBRtZW5kZWxz
b24gdGVzdCBrZXkgMwIEWipbHDANBglghkgBZQMEAgEFAKCBzjAYBgkqhkiG9w0BCQMxCwYJKoZI
hvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0yMjAxMDQxMzU3MDZaMC0GCSqGSIb3DQEJNDEgMB4wDQYJ
YIZIAWUDBAIBBQChDQYJKoZIhvcNAQELBQAwLwYJKoZIhvcNAQkEMSIEIBuj4bISzhEViRCH8qSI
ekN7J6OnAVFiQQ5MtYoCbwzKMDQGCSqGSIb3DQEJDzEnMCUwCgYIKoZIhvcNAwcwDgYIKoZIhvcN
AwICAgCAMAcGBSsOAwIHMA0GCSqGSIb3DQEBCwUABIIBACdGMMegPJGQixibKOjsMPtYdtqZ/2su
x//gbf4aRHjHKIFdzPZqnIXWQf3b0wMUn52cT4uRMZdXyOu6QSIMPbLTwnA4ixexHTN/CEpeamfV
GTyuufTvgfa6BugDBYu+vzcQWyUqWtTa3FkG+xFKxkt+G69Y5Q4zsdykXAHeLcuBv6dt737q1teu
kbVnr+bbUi3hx6/blW7Ndv4HrIB9zwC3H/1jdSrNsfFQFzLFpW7mwSV6K7V+kU+9jOR+4aD0saQU
q5ZS4CpSvzdjXiBmTMXc3uc7m3rHD7cIxfX5u1Fa4UDzAWXecoI2bpiJsbUz4P/tZx9D0fDvDDZ3
Xhy/njAAAAAAAAA=
------=_Part_211_306083396.1641304626706--
Binary file modified pyas2lib/tests/fixtures/mecas2_signed_encrypted.as2
Binary file not shown.
Loading

0 comments on commit 66954dc

Please sign in to comment.