From 9c646eb9d7396eecf4599e49d335527beccbb3e4 Mon Sep 17 00:00:00 2001 From: Wassilios Lytras Date: Tue, 4 Jan 2022 15:04:34 +0100 Subject: [PATCH] Fix tests --- .../tests/fixtures/cert_mecas2_public.pem | 37 +++---- pyas2lib/tests/fixtures/cert_test.p12 | Bin 2676 -> 2421 bytes pyas2lib/tests/fixtures/cert_test.pem | 97 +++++++++-------- pyas2lib/tests/fixtures/cert_test_public.pem | 40 ++++--- pyas2lib/tests/fixtures/mecas2_compressed.as2 | Bin 1431 -> 4467 bytes .../mecas2_compressed_signed_encrypted.as2 | Bin 4885 -> 5034 bytes pyas2lib/tests/fixtures/mecas2_encrypted.as2 | Bin 1912 -> 1800 bytes pyas2lib/tests/fixtures/mecas2_signed.as2 | 99 +++++++++--------- .../fixtures/mecas2_signed_encrypted.as2 | Bin 4861 -> 5002 bytes pyas2lib/tests/livetest_with_mecas2.py | 10 +- pyas2lib/tests/test_with_mecas2.py | 6 +- 11 files changed, 144 insertions(+), 145 deletions(-) diff --git a/pyas2lib/tests/fixtures/cert_mecas2_public.pem b/pyas2lib/tests/fixtures/cert_mecas2_public.pem index 7bacc9b..99cdfaa 100644 --- a/pyas2lib/tests/fixtures/cert_mecas2_public.pem +++ b/pyas2lib/tests/fixtures/cert_mecas2_public.pem @@ -1,20 +1,21 @@ -----BEGIN CERTIFICATE----- -MIID6DCCAtCgAwIBAgIEV3EEFTANBgkqhkiG9w0BAQUFADCBtTEvMC0GCSqGSIb3DQEJARYgd2Vi -bWFzdGVyQG1haWxhZGRyZXNzb25kb21haW4udG8xCzAJBgNVBAYTAmRlMRMwEQYDVQQIDApTdGF0 -ZSBuYW1lMRYwFAYDVQQHDA1Mb2NhbGl0eSBuYW1lMRUwEwYDVQQKDAxZb3VyIGNvbXBhbnkxIDAe -BgNVBAsMF1lvdXIgY29tcGFueSBkZXBhcnRtZW50MQ8wDQYDVQQDDAZtZWNhczIwHhcNMTYwNjI3 -MTA0NjQ1WhcNMTcwNjI3M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4IBAQBUP3uPOyvSwbJdKJftYOfdEtSFgQJRMFyJb/zY3BhtFW9ylVkze+pQLLjDy4nL +F7nGpa36v5TxXbSSfP3o4NS1Rc4rb5g/hGi0Lx1iyfCYDbCVI5t8NdM8jfxkjb6bYQkja7479N9+ +bCvM8pKFflfEe2sfi4t6qqa4qXYYtVSwTJspD8pgRnMdAS5hd/DkseWwqHEOfLnWiwtAgS8aFyaf +GdZKfToVsLnkFDwbu3gcGhxX+eZz93uuXc9hK9xNYl+DGCv9b3M5S6ynQRP4h4Y6+RXH/MkRHp4C +eH3dWhrG2os1gUfiQYSuFJGJ+SWV1XR9r7jkBo0qm+Gi5PIcExbH -----END CERTIFICATE----- diff --git a/pyas2lib/tests/fixtures/cert_test.p12 b/pyas2lib/tests/fixtures/cert_test.p12 index 757ee9b489cd445d86c564c747b02f6ce535bcf8..6cb6f51abbf5a7bf0a4987a1c38978a40d761618 100644 GIT binary patch delta 2383 zcmV-V39$C`6!j87FoFqj0s#Xsf(bVU2`Yw2hW8Bt2LYgh2`B`D2_!Ir2_P_n1J?!# zDuzgg_YDCD2B3li$S{Hf!~y{TFoFZUkw6}Qa3_&)k;ydz0tf(rf&-BAwMKj`(*|ma zb59tEG>(*ljIgBB%&ef`$xt5{;np!pxJT>vANiqffDviPvo@_p)YfHqgSFuE;gLwx zUs*0_5@&K!9cKBacQn!|?yC3Rz04!*eF?b{4Im5D^pu@V89r`ezij!aZaP^=Nn-+k zfy3vbl$ibSxBp{AiLTnLhOFa~gr*I)47Q3Zp9#6Wx4s0kRXaNGt=HU>|75dFBuQ7` zq@Mpmje~e0Fxr*Aob&d$CcaDucBMiAgiCu#9QYD}woJG(V3i6hnwGiut8G5dzJZ2ph8 z_+y%xR&ozfU_!R@$KmR>ZKg#h@Y{qvn{p9cO%flb68;8)uZh`KcEGtEVutmB(B~&D z)D=VFx9bgHH%QSxgg=XhD1qQMXDGy*dz1OScNTi5()qoT>Y&veG+Jhqnn%sD4GfHx z@rqpE8cQf=Y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Ne&KU%b{(UejKGYsb`A=Qsn^^FmX#^K*L^A5CMd3D0aQEoq1^NLqKlW_x$=U2UkO zwk5w}R(12KrTmA{<1z#G%w5NcGH+_4Rt1bXs&}|-^?efnWNAtrt;Kk(2{pMyl58|K>6^G(~6Sgfo-h*wOaMzXlacy8ff4q9XR5X?ei81PG9&qD}Q6+Efw5h z>`HN8-`Y(a;Uy>M$*1^d)$HO2O6aV;t|z)Lt5hwt$b^;mky-l=ym}KVbz%QwfFy~`;uO_QIU4uPk z!I#cN9v8%|Y@F6XDbO|*a@othTbm0!%O**3TJXQ zSif0BT>E0po*yEq=N}eFX*T8dETHagp!;SyT~-CncG?DKGGZKnD~*M}UD_KkV{XQ5 zZ4obL%>q;DIDYQE8}WmLZ@IcRym40Bw()4Ud05{>eT@FuJirm~7(BUU`{#l9CzI31 zWXTrZa3kK~apn)*ZvGgP*#7*@{z%$b%G zPs%7^iCfQJYti=>$@Wph_cYlD5AuKe9jsCb33dW5K_TJ(#fM+^*FCmr ztFb+mog(W^(anF<=NM++Resy~Jd*F68@{>Z9KtrscOLIY`F7F%1-bE)lmGw# diff --git a/pyas2lib/tests/fixtures/mecas2_signed.as2 b/pyas2lib/tests/fixtures/mecas2_signed.as2 index 62ed5e9..b3223cf 100644 --- a/pyas2lib/tests/fixtures/mecas2_signed.as2 +++ b/pyas2lib/tests/fixtures/mecas2_signed.as2 @@ -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: -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: +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 @@ -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 -Fw0xNzA2Mjc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ndv4HrIB9zwC3H/1jdSrNsfFQFzLFpW7mwSV6K7V+kU+9jOR+4aD0saQU +q5ZS4CpSvzdjXiBmTMXc3uc7m3rHD7cIxfX5u1Fa4UDzAWXecoI2bpiJsbUz4P/tZx9D0fDvDDZ3 +Xhy/njAAAAAAAAA= +------=_Part_211_306083396.1641304626706-- diff --git a/pyas2lib/tests/fixtures/mecas2_signed_encrypted.as2 b/pyas2lib/tests/fixtures/mecas2_signed_encrypted.as2 index fb7e0ad47aeaee2ef08662805fcaabc1d5b0c10b..a1053a205db3bf8977013e196fd99e4587b6a3a5 100644 GIT binary patch delta 4646 zcmZ`)cU03$w+$uKAU!G~geDzAhg=A~3P=r?UITAfgLI?_Z+E=rRwBGN>p zDj*;rND&BCTEK_*t?yg!pEqmGnmK#+nc4fSHS1jPCGxX4`}*L}J~&Y?w2vFk9RZV; zlvl`*CNXAk#7c?=qW!TLUmpZaLQL{8t0)TNjsCwFoW>vRjPb+#$#-;d@ke8^2$(w# z=Z6p%clX8O#9VxxJ<2U#^R7T|kY2L6bGS}0a0 z_Lz=@lI+tLxCAi_RKOha{rtZH5MB`u<7#BAT4hu8FJ%H)sTtp-o;q-qvWDu(V)PWSB28~kJ zBkeC;pTg<>tAm6D3?h#t0a1LY{_VbYA35#VVyHrC&n#guKeC)*gR?r=jkXi%AWbWG z);zv3|FJIihjx52wU^aOMZ1M__|U+Gf>|#m1TL|#7rhPJ9Jj3xn>umioJ_N76`TCr z3AhdN54L;r0eCIoJyNtJ7IMH7-sKLVYNgBnCyZcb&n)oDRX(+KXiPni+UiLPbwiK- zyyG{{)|AjA^2_ocU3x#`D!@|pJ#?4MyLDOErH0{*pw8|p^?`p%I+An~+ILKvivyJT zjXAtKwe(923!hSAewD^mpm+=hN8^{Zwnd9v5xi)*j}FY7MWu)m+a@UP*1$3_E+o5O zLU)}`YU1EDs5=TQXm>rMll&GC-I*rCf8Z|m>=Ah+*?OA}Sv&d7+6`5f>$@ZwO#9)t zptbT3DP3F(cWM;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P9unS46Mf7N#q%6hjzskKhK$i*LCR81H3vj9-O^=hpze7;)Z+sJ$4 z#{4x-76B4pBHrt2sgc(M;vs_*?vs;)d+6meY>R&Zr;SPU!Rzeb=d$C|f?odJvPU2~ xsRvyLUFtcxq3WTD7zu=nT%B%mE#?jbTsIJG-BEh1o+Pa{SQ16VLbo< diff --git a/pyas2lib/tests/livetest_with_mecas2.py b/pyas2lib/tests/livetest_with_mecas2.py index 12649da..11b1ef6 100644 --- a/pyas2lib/tests/livetest_with_mecas2.py +++ b/pyas2lib/tests/livetest_with_mecas2.py @@ -44,7 +44,7 @@ def test_compressed_message(self): for k, v in response.headers.items(): raw_mdn += "{}: {}\n".format(k, v) - raw_mdn = raw_mdn + "\n" + response.text + raw_mdn = (raw_mdn + "\n").encode("utf-8") + response.content out_mdn = as2.Mdn() status, detailed_status = out_mdn.parse( @@ -68,7 +68,7 @@ def test_encrypted_message(self): for k, v in response.headers.items(): raw_mdn += "{}: {}\n".format(k, v) - raw_mdn = raw_mdn + "\n" + response.text + raw_mdn = (raw_mdn + "\n").encode("utf-8") + response.content out_mdn = as2.Mdn() status, detailed_status = out_mdn.parse( @@ -92,7 +92,7 @@ def test_signed_message(self): raw_mdn = "" for k, v in response.headers.items(): raw_mdn += "{}: {}\n".format(k, v) - raw_mdn = raw_mdn + "\n" + response.text + raw_mdn = (raw_mdn + "\n").encode("utf-8") + response.content out_mdn = as2.Mdn() status, detailed_status = out_mdn.parse( @@ -117,7 +117,7 @@ def test_encrypted_signed_message(self): raw_mdn = "" for k, v in response.headers.items(): raw_mdn += "{}: {}\n".format(k, v) - raw_mdn = raw_mdn + "\n" + response.text + raw_mdn = (raw_mdn + "\n").encode("utf-8") + response.content out_mdn = as2.Mdn() status, detailed_status = out_mdn.parse( @@ -143,7 +143,7 @@ def test_encrypted_signed_compressed_message(self): raw_mdn = "" for k, v in response.headers.items(): raw_mdn += "{}: {}\n".format(k, v) - raw_mdn = raw_mdn + "\n" + response.text + raw_mdn = (raw_mdn + "\n").encode("utf-8") + response.content out_mdn = as2.Mdn() status, detailed_status = out_mdn.parse( diff --git a/pyas2lib/tests/test_with_mecas2.py b/pyas2lib/tests/test_with_mecas2.py index 19ab743..4c4d3de 100644 --- a/pyas2lib/tests/test_with_mecas2.py +++ b/pyas2lib/tests/test_with_mecas2.py @@ -64,7 +64,7 @@ def test_signed_message(self): # Compare the mic contents of the input and output messages self.assertTrue(in_message.signed) - self.assertEqual(in_message.digest_alg, "sha1") + self.assertEqual(in_message.digest_alg, "sha256") self.assertEqual(self.test_data, in_message.content) def test_encrypted_signed_message(self): @@ -82,7 +82,7 @@ def test_encrypted_signed_message(self): self.assertTrue(in_message.encrypted) self.assertEqual(in_message.enc_alg, "tripledes_192_cbc") self.assertTrue(in_message.signed) - self.assertEqual(in_message.digest_alg, "sha1") + self.assertEqual(in_message.digest_alg, "sha256") self.assertEqual(self.test_data, in_message.content) def test_encrypted_signed_compressed_message(self): @@ -100,7 +100,7 @@ def test_encrypted_signed_compressed_message(self): self.assertTrue(in_message.encrypted) self.assertEqual(in_message.enc_alg, "tripledes_192_cbc") self.assertTrue(in_message.signed) - self.assertEqual(in_message.digest_alg, "sha1") + self.assertEqual(in_message.digest_alg, "sha256") self.assertEqual(self.test_data, in_message.content) def test_unsigned_mdn(self):