You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/utils/expected_serialization_prof.../fallback_to_str.txt

91 lines
14 KiB
Plaintext

{
_TestParameters(profile_name='fallback_to_str', value=None): _TestOutput(payload='null', round_trip=None, tags=()),
_TestParameters(profile_name='fallback_to_str', value=None, tags=(Deprecated(msg='x'),)): _TestOutput(payload='null', round_trip=None, tags=()),
_TestParameters(profile_name='fallback_to_str', value=True): _TestOutput(payload='true', round_trip=True, tags=()),
_TestParameters(profile_name='fallback_to_str', value=True, tags=(Deprecated(msg='x'),)): _TestOutput(payload='true', round_trip=True, tags=()),
_TestParameters(profile_name='fallback_to_str', value=1): _TestOutput(payload='1', round_trip=1, tags=()),
_TestParameters(profile_name='fallback_to_str', value=1, tags=(Deprecated(msg='x'),)): _TestOutput(payload='1', round_trip=1, tags=()),
_TestParameters(profile_name='fallback_to_str', value=1.1): _TestOutput(payload='1.1', round_trip=1.1, tags=()),
_TestParameters(profile_name='fallback_to_str', value=1.1, tags=(Deprecated(msg='x'),)): _TestOutput(payload='1.1', round_trip=1.1, tags=()),
_TestParameters(profile_name='fallback_to_str', value='hi'): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
_TestParameters(profile_name='fallback_to_str', value='hi', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
_TestParameters(profile_name='fallback_to_str', value='汉语'): _TestOutput(payload='"\\u6c49\\u8bed"', round_trip='汉语', tags=()),
_TestParameters(profile_name='fallback_to_str', value='汉语', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\u6c49\\u8bed"', round_trip='汉语', tags=()),
_TestParameters(profile_name='fallback_to_str', value=b'hi'): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
_TestParameters(profile_name='fallback_to_str', value=b'hi', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"hi"', round_trip='hi', tags=()),
_TestParameters(profile_name='fallback_to_str', value=datetime.datetime(2024, 1, 2, 3, 4, 5, 6, fold=1, tzinfo=datetime.timezone.utc)): _TestOutput(payload='"2024-01-02T03:04:05.000006+00:00"', round_trip='2024-01-02T03:04:05.000006+00:00', tags=()),
_TestParameters(profile_name='fallback_to_str', value=datetime.datetime(2024, 1, 2, 3, 4, 5, 6, fold=1, tzinfo=datetime.timezone.utc), tags=(Deprecated(msg='x'),)): _TestOutput(payload='"2024-01-02T03:04:05.000006+00:00"', round_trip='2024-01-02T03:04:05.000006+00:00', tags=()),
_TestParameters(profile_name='fallback_to_str', value=datetime.time(1, 2, 3, 4, tzinfo=datetime.timezone.utc, fold=1)): _TestOutput(payload='"01:02:03.000004+00:00"', round_trip='01:02:03.000004+00:00', tags=()),
_TestParameters(profile_name='fallback_to_str', value=datetime.time(1, 2, 3, 4, tzinfo=datetime.timezone.utc, fold=1), tags=(Deprecated(msg='x'),)): _TestOutput(payload='"01:02:03.000004+00:00"', round_trip='01:02:03.000004+00:00', tags=()),
_TestParameters(profile_name='fallback_to_str', value=datetime.date(2024, 1, 2)): _TestOutput(payload='"2024-01-02"', round_trip='2024-01-02', tags=()),
_TestParameters(profile_name='fallback_to_str', value=datetime.date(2024, 1, 2), tags=(Deprecated(msg='x'),)): _TestOutput(payload='"2024-01-02"', round_trip='2024-01-02', tags=()),
_TestParameters(profile_name='fallback_to_str', value=(1,)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value=(1,), tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value=[1]): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value=[1], tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value=[1], lazy=True): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value=[1], tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value=CustomSequence([1])): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value=CustomSequence([1]), tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value='hello'): _TestOutput(payload='"hello"', round_trip='hello', tags=()),
_TestParameters(profile_name='fallback_to_str', value='hello', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"hello"', round_trip='hello', tags=()),
_TestParameters(profile_name='fallback_to_str', value=42): _TestOutput(payload='42', round_trip=42, tags=()),
_TestParameters(profile_name='fallback_to_str', value=42, tags=(Deprecated(msg='x'),)): _TestOutput(payload='42', round_trip=42, tags=()),
_TestParameters(profile_name='fallback_to_str', value=42.0): _TestOutput(payload='42.0', round_trip=42.0, tags=()),
_TestParameters(profile_name='fallback_to_str', value=42.0, tags=(Deprecated(msg='x'),)): _TestOutput(payload='42.0', round_trip=42.0, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1}): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value={1}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()),
_TestParameters(profile_name='fallback_to_str', value={'a': 1}): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={'a': 1}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={'a': 1}, lazy=True): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={'a': 1}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
_TestParameters(profile_name='fallback_to_str', value=CustomMapping({'a': 1})): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
_TestParameters(profile_name='fallback_to_str', value=CustomMapping({'a': 1}), tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}, lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(1, 2): 'three'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}, lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={frozenset({1, 2}): 'three'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"[1, 2]": "three"}', round_trip={'[1, 2]': 'three'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: 'two'}): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: 'two'}, lazy=True): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}, lazy=True): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1.1: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={True: 'two'}): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={True: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={True: 'two'}, lazy=True): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={True: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={None: 'two'}): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={None: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={None: 'two'}, lazy=True): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={None: 'two'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"None": "two"}', round_trip={'None': 'two'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value=b'\x00'): _TestOutput(payload='"\\u0000"', round_trip='\x00', tags=()),
_TestParameters(profile_name='fallback_to_str', value=b'\x00', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\u0000"', round_trip='\x00', tags=()),
_TestParameters(profile_name='fallback_to_str', value=b'\x80'): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
_TestParameters(profile_name='fallback_to_str', value=b'\x80', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
_TestParameters(profile_name='fallback_to_str', value='\udc80'): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
_TestParameters(profile_name='fallback_to_str', value='\udc80', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"\\udc80"', round_trip=AnsibleRuntimeError('Refusing to deserialize an invalid UTF8 string value.'), tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: '1'}): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: '1'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: '1'}, lazy=True): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={1: '1'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"1": "1"}', round_trip={'1': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}, lazy=True): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '1'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"hi": "1"}', round_trip={'hi': '1'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}, lazy=True): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={b'hi': '2'}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"hi": "2"}', round_trip={'hi': '2'}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}, lazy=True): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
_TestParameters(profile_name='fallback_to_str', value={(b'hi',): 3}, tags=(Deprecated(msg='x'),), lazy=True): _TestOutput(payload='{"[\\"hi\\"]": 3}', round_trip={'["hi"]': 3}, tags=()),
}