Adjusted tests to deal with non-rendering of unsigned pEp messages ENGINE-434
authorKrista Bennett <krista@pep-project.org>
Thu, 24 May 2018 05:40:05 +0200
branchENGINE-434
changeset 2687b439ce4097ff
parent 2686 00b4c506d25f
child 2691 6e7b73c67701
Adjusted tests to deal with non-rendering of unsigned pEp messages
test/msg_2.0.asc
test/src/engine_tests/PepSubjectReceivedTests.cc
     1.1 --- a/test/msg_2.0.asc	Wed May 23 12:22:35 2018 +0200
     1.2 +++ b/test/msg_2.0.asc	Thu May 24 05:40:05 2018 +0200
     1.3 @@ -6,82 +6,82 @@
     1.4   <three-OMGWTFBBQ.edfddffd839274982347239847@pep-project.org>
     1.5  X-pEp-Version: 2.0
     1.6  MIME-Version: 1.0
     1.7 -Content-Type: multipart/mixed; boundary="208cd46c63b42beb5d7fb9702682daa3"
     1.8 +Content-Type: multipart/mixed; boundary="eb7b9ff74466de835e191c92adc9bbb"
     1.9  
    1.10 ---208cd46c63b42beb5d7fb9702682daa3
    1.11 +--eb7b9ff74466de835e191c92adc9bbb
    1.12  Content-Type: text/plain; charset="utf-8"
    1.13  Content-Transfer-Encoding: quoted-printable
    1.14  Content-Disposition: inline; filename="msg.txt"
    1.15  
    1.16  this message was encrypted with p=E2=89=A1p https://pEp-project.org
    1.17 ---208cd46c63b42beb5d7fb9702682daa3
    1.18 +--eb7b9ff74466de835e191c92adc9bbb
    1.19  Content-Type: application/pgp-encrypted
    1.20  
    1.21  Version: 1
    1.22 ---208cd46c63b42beb5d7fb9702682daa3
    1.23 +--eb7b9ff74466de835e191c92adc9bbb
    1.24  Content-Type: application/octet-stream
    1.25  Content-Disposition: attachment; filename="msg.asc"
    1.26  
    1.27  -----BEGIN PGP MESSAGE-----
    1.28  
    1.29 -hQEMA1oCBdlzCD9NAQgAlRp+DFl5NyjR6cqXHAV1PMrgIWBiGcpBOc1slGj0gPg3
    1.30 -IcBZt6a8ArqwchTdaws7Nbqeg/gisvWCRdp0wb0HdlJ9ARt5BEMpzI9YDi8gc139
    1.31 -TSh9eZxAS/oBico1vy7ggpbGo//H+O8MgWvHZBM/pbHCnhDTZLhzTLhghrBA98oP
    1.32 -P4B5hlPSX20PrIREquzac/SCKRPOOodSUsCL0S2/IGd9SMw58lJ7/L7Q57EQBl/w
    1.33 -o63Dyu9NZglSGW6GGfUM2jp0tFR3ZvdrsPotl+sjh7GtFxpw+/IkUibMLoShX+8y
    1.34 -EGj351HoNg8zPFsAVWIe+xjmt8J9bPLFZej7v4Q0bIUBDAOo6/9vKSPoQgEH/RPX
    1.35 -E92QfzX4LVkbmjjAYw2NOr135jeqjThdm7pcwbW38PHkbfoEhkVEFl6bu4aX1ceg
    1.36 -c0XzkD/0pCsta3oRw6j2OMdtYYWxjR0IOhuICqHX1SrS4xa98iZSwKYZRLW4XMqd
    1.37 -dolK2nZktPnHonM3MIyrI1osbxZhTNF41IGgI90SZ4WE10ysYPrGaALCxU4QUD2N
    1.38 -yTXErbTA7Vv+BjdjB+JmCI/jpBPIkxBNGkPDhEo5bdUMS8qJO7SRNPUaGO4R+Dii
    1.39 -/57yY7h08jVa0O6NR7k0Aj6s82Haysq2Wm9pQWSxzMdQKgcvXs0HcG8KBRdelEnq
    1.40 -usz9gHVJuJz4sd92NoDS6wF8/GYWNZhkGX4LQlH3p6D5BUNFJSOrdM4jOuOytgb9
    1.41 -Gz4jxPUCuvxvc5cEuVUyTyyzgaq0EMCalBOymrPp7jL47SmxkO3WGqyYEC34m99m
    1.42 -2iEHkfp0k4GeCjAlgokGEwYGdWJZ98tQ+Ir41YpAXlYd9yDGoNWaKJUgSiBvElWZ
    1.43 -i3afhPe+o1oIy8oewkaSXY+e5zjBu08bBbvmLeWkq/SXpefrTIHO24xE+WXPg8rG
    1.44 -PHvHO7TJE824WZINmccdpkVvIgZjem6oBHP5LWcDDC8MUxYaq77cLhfMdtI4IV8t
    1.45 -Mvl9PyISp6ITJQxLZAMVujMV803ocxu8UQ7qfis1IJBnEJGY0KbgSOlpQJbLjtfv
    1.46 -+83vkQcNA6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 -hUhC+nDcTncaat93OtfcLAmLa2RwNUueMOlZS99tPogjFvAGmWcEfVshVDnP1FpA
    1.62 -mgQr6kXKUb/w7L2QdWVBzxphLrFRqKvH+5B3tO2Q7MuvurZQISMP7MRMHdFW8FvP
    1.63 -e4vTYjtlpG6I1MxsWG20XfwYgbnQQ8TfqBoj3PCtpZmIzKghd6QgjCXc6YritPd0
    1.64 -wp5ZpM+FnXswmCRqOKigaVaEWvRtFzVvrs+Mo5V5bP8tVrniuxQzJDvvJ71AGKps
    1.65 -pgOLuvmNkh+6p66XJ1wMAAC063Q95oh4U5Ba6jJ9nz0GdsVFdo6WKfLjoZUD/RmJ
    1.66 -98L9UKheVkmxH6MF1WyOoStfdXH5dlrm94+rrk4FkbPakQDo7PiiL6Pzvvb7rrW8
    1.67 -Vy4DybwssaK7iaHDL8Q0I9eHQeJwZOTy45WpOFCWsv4uGuROB3xI+SxD3f354wv4
    1.68 -sX2BCRHfbWaG3iNy7z2lU1RPpOZ1yC1Kx1fmT31LZJRgQayYNOVHcWcz2P0NTFsE
    1.69 -Ev7TtWJ8LHOV2mfMejp/cxpi8JqdxJaogOHv7M9f92acfsUmJo8wUc72zlUrd40h
    1.70 -wphjJ8ckhUtLZqnbk6i8681bwjhU5rYUBr2/KQvLGJFHoX+6douFdKcgJ1J6TP//
    1.71 -KNSyEMJU+W4IHNZJeYG1Z9S25UFKsG5SJxP0GZXtXGjxz5ZtRC8GJoeXTjMZBtXI
    1.72 -HvY15SNoNAxbsWz7si3K4jM12RusuCXgq8DgepAX2aorZ5bslJvoGhRx9g/y6pHA
    1.73 -CuuK8J7W6JsfZwo27zLxHXaR52AKpzKvceonndUbUW4kKaeeFLpLgjQGxmFu5lR7
    1.74 -Q/1ZNzTEhwea2KAmhFh5Il9Wj2Ko/4VsCj84qYl73dlmYWnsox3IbbAE/BzaLM0J
    1.75 -fwy5K7Eq9GpKheK+X3g3KLIcxiRr0s2kVkZihXlIRCadj53iyB0E/LVptqsWlLti
    1.76 -o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kA0jBJ0QoUBDAOo6/9vKSPoQgEIAJrX
    1.93 +Vtm7dSPlgcoySkN1sEyHTd4Gegap3tTnaLir6FL6Q2zLPYaGcHFiDuwqaelG6oIY
    1.94 +5bhFoJL3ZfpFFbm71g46AqsrIghhaGNtQo5mNn3ZY6t0LwptjKI1eyRDd0N7a0ui
    1.95 +y5qZ5gySdvwm53aOdPp014pPtgEQysbM/SkJV0wI/ICnROdDnFr/uERjyrTDWIbb
    1.96 +F1If9PqTA+oNBEOSUExOmubd1pByqMV0IzYqGBZFbuMEOkhGaypxxr/O3K2MjG5s
    1.97 +ZEDxpPNy6F9pZ/N6gU2/LC2PBkoFWJcesT7pea6Li6IAas88dZfAGbEvgeqzFzxW
    1.98 +ncNq5VDzX4gSrCO/u73S6wHbJ1gaF/+MBW1czs4u5UwppBvM+Auu3+/W3Y2VULpj
    1.99 +G7Xf/wEZz6sVvkXzdiY3LIuf4Oj78fhsWaQEQ34FgdE6PlzIcUyaUMFze+8zzaQy
   1.100 +lI13dvoMtRVOd+XLZRm0DRtIr3ME9QiLVNm+DhYEsvZKfBj20ZLQlNbgz5rn7+mf
   1.101 +o6I75CyP+nwRvHwJGUASdYxA2iQ9OEu9WCliOoCnD5MREepXkaToptzov4wE+jm2
   1.102 +yQbIllabM+gSFTcl2ufKRz7dPvAu6VB3j6HokN8zgGbC5Ddmd2MbEuqzr7/hXbaq
   1.103 +Z2TKLhm0A5pdIMSWYig1tn5vLrwX10NXooekCb6zW7OyLAz3s7vrpSroz6Kg1pzl
   1.104 +DwEGG71wbASy1+1jqqrNwO9x+cTYjKqpYkLhmFW7R9peyRhP3S5j6I+h2Su+AWK7
   1.105 +6GO24YzvOrqWEsmcXWbjnRG5RqfNBvqUbojciA9fyAq/rlsXWY47fpROOmyWxD71
   1.106 +VzNNq6WUSLA4QmVMLV0aVSty9BSNMkj7JUULfdhWaHGU/6t6AG6XWsF5ckCUONb+
   1.107 +T/WRUmsT0eF+eRO4d4hcYmqro4Wtx0jvgbTjcMU22IJP3UBiuWwlMI9kmtid6kNE
   1.108 +Q/liJ1NAtEchxXjFge8YeSJnfTZM9zokQi4axrRB3NFbiO0RqMUY5h5/h0ZfcvQr
   1.109 +30YujTqVgRVcDbG4aRQgjxu10NUdjdxCdcw98RLnbIvEFZGm87aMicxKxzE7yqMg
   1.110 +AZO/tl8BzM8ISW9ejbtuSWQtQmO0TFfIw7ef1pKllGUN3nkxf6WR46P6A4Yl1qWy
   1.111 +VwXwlZ/ZFGZ4wxONeWAgZvQM+2aWL56YpdV+58J0ulHg5l9cmQrXZPBjOIp6Ik9a
   1.112 +TkzGF1n0R8vH61F3LlF4hxoP/LufLuJKErLjD5QWyBfAVcQ+zrw+3Q0moe/OMwTQ
   1.113 +pM8jydtNGW6YKQJdFKtztDeF9iVz3p0z0H1Rz02jtTwzXi8kEfNrA6vOeg6u1TrK
   1.114 +gQVjF3MDQry0kCTc4qpVXcmkHSz6vdWeAEWs5UxsfalRnrQRNnPseM0GM59qxeLr
   1.115 +gi8EtbWmW/L2C13B3ZZLRumjuX3HpvjdnShaJZMrhrWVBo2I2E/AIAeA11TIH8Qm
   1.116 +b+y8YGUzORMn+gboxWZRhT8u+oF4rgvq1hbhBfKklV2DdkybeT1gLGRxbWNlHu9T
   1.117 +/4ClUvVNwrO0OoWKGbBrWgve+Qbwjxl4saPkbtQZKYGw3Ulfp2V4R8rQWjd3fccy
   1.118 +LEJctQaD/AbMeKDK69pb22K/PEUHeOJCOp/xeO+PaypREozBpfz9jPDkA61kkizC
   1.119 +/e/HZBrHVp1wpskccgWOT2XkA9LMhe5PRUsHjfMSUj71JcU8xcJi8zp8UZn1Ti2X
   1.120 +zIUDigY8co/GhPvhNg7m9E9j9teqRNOAylsh0ddRYR5zpUK0n7R1ZXhWQnqH/PzJ
   1.121 +piccWz2o6Ztyj8swcRmyE2A7bwRz2N/+eZRVJ1tHDtexTxWQ0buln+RdaYlep771
   1.122 +/O0tF04I5KJcgeOjER3MJZhdDxi0WCR2ZQZBff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/KqROhgibPgCSJSfa/wkjM8i7S7BJoxEz
   1.138 +Kz+/+FD4RDK5LS1cmKdXzkVC9lgtqpYcdqDf7cnJeqdk9pWw7+mh944eErTZXjT9
   1.139 +yi/oTTF5DBo1BBqRaiHk3WNmG663woUKeFZ5D4/6k4Cnze8HmJNU3tcQOQJmWIv9
   1.140 +AWMfKxEyHdCSggt0ZEmxz8IubqpHI97UEKhm3xizO4yja5JVjIEi67S9aYA0aV7L
   1.141 +a6ADW2WAufbtNc5zSCs3eJrRj0eSvQwilHRuZAbZBvRjp6RrT8rQAf79cZBOg91c
   1.142 +ZdsGbBOLsAFI52xuVZea1rhJwoCy+qGyxzwS3dDn2VGXHRZCazx2p7c6ointGyA5
   1.143 +A0QYb9BuBHCfqEEJ
   1.144 +=hjMf
   1.145  -----END PGP MESSAGE-----
   1.146  
   1.147 ---208cd46c63b42beb5d7fb9702682daa3--
   1.148 +--eb7b9ff74466de835e191c92adc9bbb--
     2.1 --- a/test/src/engine_tests/PepSubjectReceivedTests.cc	Wed May 23 12:22:35 2018 +0200
     2.2 +++ b/test/src/engine_tests/PepSubjectReceivedTests.cc	Thu May 24 05:40:05 2018 +0200
     2.3 @@ -64,7 +64,7 @@
     2.4      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
     2.5      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
     2.6      final_ptr = msg_ptr;
     2.7 -    flags = 0;
     2.8 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
     2.9      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.10      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.11    
    2.12 @@ -97,7 +97,7 @@
    2.13      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.14      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.15      final_ptr = msg_ptr;
    2.16 -    flags = 0;
    2.17 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.18      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.19      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.20    
    2.21 @@ -197,7 +197,7 @@
    2.22      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.23      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.24      final_ptr = msg_ptr;
    2.25 -    flags = 0;
    2.26 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.27      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.28      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.29    
    2.30 @@ -230,7 +230,7 @@
    2.31      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.32      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.33      final_ptr = msg_ptr;
    2.34 -    flags = 0;
    2.35 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.36      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.37      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.38    
    2.39 @@ -264,7 +264,7 @@
    2.40      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.41      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.42      final_ptr = msg_ptr;
    2.43 -    flags = 0;
    2.44 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.45      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.46      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.47    
    2.48 @@ -297,7 +297,7 @@
    2.49      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.50      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.51      final_ptr = msg_ptr;
    2.52 -    flags = 0;
    2.53 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.54      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.55      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.56    
    2.57 @@ -330,7 +330,7 @@
    2.58      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.59      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.60      final_ptr = msg_ptr;
    2.61 -    flags = 0;
    2.62 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.63      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.64      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.65    
    2.66 @@ -363,7 +363,7 @@
    2.67      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.68      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.69      final_ptr = msg_ptr;
    2.70 -    flags = 0;
    2.71 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.72      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.73      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.74    
    2.75 @@ -397,7 +397,7 @@
    2.76      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.77      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.78      final_ptr = msg_ptr;
    2.79 -    flags = 0;
    2.80 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.81      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.82      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.83    
    2.84 @@ -431,7 +431,7 @@
    2.85      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.86      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.87      final_ptr = msg_ptr;
    2.88 -    flags = 0;
    2.89 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.90      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
    2.91      final_ptr = dest_msg ? dest_msg : msg_ptr;
    2.92    
    2.93 @@ -464,7 +464,7 @@
    2.94      TEST_ASSERT_MSG((status == PEP_STATUS_OK), "status == PEP_STATUS_OK");
    2.95      TEST_ASSERT_MSG((msg_ptr), "msg_ptr");
    2.96      final_ptr = msg_ptr;
    2.97 -    flags = 0;
    2.98 +    flags = PEP_decrypt_deliver_pgpmime_badsigned; // We created this test before deciding not to display unsigned messages
    2.99      status = decrypt_message(session, msg_ptr, &dest_msg, &keylist, &rating, &flags);
   2.100      final_ptr = dest_msg ? dest_msg : msg_ptr;
   2.101