rails/activesupport/test/messages
Jonathan Hefner af6d83521c Support :message_pack as message serializer
This commit adds support for `:message_pack` as a serializer for
`MessageEncryptor` and `MessageVerifier`, and, consequently, as an
option for `config.active_support.message_serializer`.

The `:message_pack` serializer is implemented via
`ActiveSupport::Messages::SerializerWithFallback` and can fall back to
deserializing with `AS::JSON`.  Additionally, the `:marshal`, `:json`,
and `:json_allow_marshal` serializers can now fall back to deserializing
with `AS::MessagePack`.

This commit also adds support for `:message_pack_allow_marshal` as a
serializer, which can fall back to deserializing with `Marshal` as well
as `AS::JSON`.
2023-05-08 14:39:00 -05:00
..
message_codec_tests.rb Unify Message{Encryptor,Verifier} serializer config 2023-05-08 12:09:45 -05:00
message_encryptor_metadata_test.rb Refactor message metadata tests 2022-12-28 14:22:48 -06:00
message_encryptor_rotator_test.rb Use throw for message error handling control flow 2023-02-12 15:16:25 -06:00
message_metadata_tests.rb Unify Message{Encryptor,Verifier} serializer config 2023-05-08 12:09:45 -05:00
message_rotator_tests.rb Use throw for message error handling control flow 2023-02-12 15:16:25 -06:00
message_verifier_metadata_test.rb Configure serialization of metadata per MessageVerifier object 2023-04-15 17:14:58 -05:00
message_verifier_rotator_test.rb Factor rotator tests into dedicated classes 2023-02-08 15:15:20 -06:00
rotation_configuration_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
serializer_with_fallback_test.rb Support :message_pack as message serializer 2023-05-08 14:39:00 -05:00