| 1 |
{ |
| 2 |
_TestParameters(profile_name='module_legacy_m2c', value=None): _TestOutput(payload='null', round_trip=None, tags=()), |
| 3 |
_TestParameters(profile_name='module_legacy_m2c', value=None, tags=(Deprecated(msg='x'),)): _TestOutput(payload='null', round_trip=None, tags=()), |
| 4 |
_TestParameters(profile_name='module_legacy_m2c', value=None, tags=(TrustedAsTemplate(),)): _TestOutput(payload='null', round_trip=None, tags=()), |
| 5 |
_TestParameters(profile_name='module_legacy_m2c', value=True): _TestOutput(payload='true', round_trip=True, tags=()), |
| 6 |
_TestParameters(profile_name='module_legacy_m2c', value=True, tags=(Deprecated(msg='x'),)): _TestOutput(payload='true', round_trip=True, tags=()), |
| 7 |
_TestParameters(profile_name='module_legacy_m2c', value=True, tags=(TrustedAsTemplate(),)): _TestOutput(payload='true', round_trip=True, tags=()), |
| 8 |
_TestParameters(profile_name='module_legacy_m2c', value=1): _TestOutput(payload='1', round_trip=1, tags=()), |
| 9 |
_TestParameters(profile_name='module_legacy_m2c', value=1, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": 1, "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedInt"}', round_trip=1, tags=(Deprecated(msg='x'),)), |
| 10 |
_TestParameters(profile_name='module_legacy_m2c', value=1, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 11 |
_TestParameters(profile_name='module_legacy_m2c', value=1.1): _TestOutput(payload='1.1', round_trip=1.1, tags=()), |
| 12 |
_TestParameters(profile_name='module_legacy_m2c', value=1.1, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": 1.1, "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedFloat"}', round_trip=1.1, tags=(Deprecated(msg='x'),)), |
| 13 |
_TestParameters(profile_name='module_legacy_m2c', value=1.1, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 14 |
_TestParameters(profile_name='module_legacy_m2c', value='hi'): _TestOutput(payload='"hi"', round_trip='hi', tags=()), |
| 15 |
_TestParameters(profile_name='module_legacy_m2c', value='hi', tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": "hi", "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedStr"}', round_trip='hi', tags=(Deprecated(msg='x'),)), |
| 16 |
_TestParameters(profile_name='module_legacy_m2c', value='hi', tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 17 |
_TestParameters(profile_name='module_legacy_m2c', value='汉语'): _TestOutput(payload='"\\u6c49\\u8bed"', round_trip='汉语', tags=()), |
| 18 |
_TestParameters(profile_name='module_legacy_m2c', value='汉语', tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": "\\u6c49\\u8bed", "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedStr"}', round_trip='汉语', tags=(Deprecated(msg='x'),)), |
| 19 |
_TestParameters(profile_name='module_legacy_m2c', value='汉语', tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 20 |
_TestParameters(profile_name='module_legacy_m2c', value=b'hi'): _TestOutput(payload='"hi"', round_trip='hi', tags=()), |
| 21 |
_TestParameters(profile_name='module_legacy_m2c', value=b'hi', tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": "hi", "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedBytes"}', round_trip='hi', tags=(Deprecated(msg='x'),)), |
| 22 |
_TestParameters(profile_name='module_legacy_m2c', value=b'hi', tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 23 |
_TestParameters(profile_name='module_legacy_m2c', 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=()), |
| 24 |
_TestParameters(profile_name='module_legacy_m2c', value=datetime.datetime(2024, 1, 2, 3, 4, 5, 6, fold=1, tzinfo=datetime.timezone.utc), tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": "2024-01-02T03:04:05.000006+00:00", "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedDateTime"}', round_trip='2024-01-02T03:04:05.000006+00:00', tags=(Deprecated(msg='x'),)), |
| 25 |
_TestParameters(profile_name='module_legacy_m2c', value=datetime.datetime(2024, 1, 2, 3, 4, 5, 6, fold=1, tzinfo=datetime.timezone.utc), tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 26 |
_TestParameters(profile_name='module_legacy_m2c', 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=()), |
| 27 |
_TestParameters(profile_name='module_legacy_m2c', value=datetime.time(1, 2, 3, 4, tzinfo=datetime.timezone.utc, fold=1), tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": "01:02:03.000004+00:00", "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedTime"}', round_trip='01:02:03.000004+00:00', tags=(Deprecated(msg='x'),)), |
| 28 |
_TestParameters(profile_name='module_legacy_m2c', value=datetime.time(1, 2, 3, 4, tzinfo=datetime.timezone.utc, fold=1), tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 29 |
_TestParameters(profile_name='module_legacy_m2c', value=datetime.date(2024, 1, 2)): _TestOutput(payload='"2024-01-02"', round_trip='2024-01-02', tags=()), |
| 30 |
_TestParameters(profile_name='module_legacy_m2c', value=datetime.date(2024, 1, 2), tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": "2024-01-02", "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedDate"}', round_trip='2024-01-02', tags=(Deprecated(msg='x'),)), |
| 31 |
_TestParameters(profile_name='module_legacy_m2c', value=datetime.date(2024, 1, 2), tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 32 |
_TestParameters(profile_name='module_legacy_m2c', value=(1,)): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 33 |
_TestParameters(profile_name='module_legacy_m2c', value=(1,), tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": [1], "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedTuple"}', round_trip=[1], tags=(Deprecated(msg='x'),)), |
| 34 |
_TestParameters(profile_name='module_legacy_m2c', value=(1,), tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 35 |
_TestParameters(profile_name='module_legacy_m2c', value=[1]): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 36 |
_TestParameters(profile_name='module_legacy_m2c', value=[1], tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": [1], "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedList"}', round_trip=[1], tags=(Deprecated(msg='x'),)), |
| 37 |
_TestParameters(profile_name='module_legacy_m2c', value=[1], tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 38 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomSequence([1])): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 39 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomSequence([1]), tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 40 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomSequence([1]), tags=(TrustedAsTemplate(),)): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 41 |
_TestParameters(profile_name='module_legacy_m2c', value='hello'): _TestOutput(payload='"hello"', round_trip='hello', tags=()), |
| 42 |
_TestParameters(profile_name='module_legacy_m2c', value='hello', tags=(Deprecated(msg='x'),)): _TestOutput(payload='"hello"', round_trip='hello', tags=()), |
| 43 |
_TestParameters(profile_name='module_legacy_m2c', value='hello', tags=(TrustedAsTemplate(),)): _TestOutput(payload='"hello"', round_trip='hello', tags=()), |
| 44 |
_TestParameters(profile_name='module_legacy_m2c', value=42): _TestOutput(payload='42', round_trip=42, tags=()), |
| 45 |
_TestParameters(profile_name='module_legacy_m2c', value=42, tags=(Deprecated(msg='x'),)): _TestOutput(payload='42', round_trip=42, tags=()), |
| 46 |
_TestParameters(profile_name='module_legacy_m2c', value=42, tags=(TrustedAsTemplate(),)): _TestOutput(payload='42', round_trip=42, tags=()), |
| 47 |
_TestParameters(profile_name='module_legacy_m2c', value=42.0): _TestOutput(payload='42.0', round_trip=42.0, tags=()), |
| 48 |
_TestParameters(profile_name='module_legacy_m2c', value=42.0, tags=(Deprecated(msg='x'),)): _TestOutput(payload='42.0', round_trip=42.0, tags=()), |
| 49 |
_TestParameters(profile_name='module_legacy_m2c', value=42.0, tags=(TrustedAsTemplate(),)): _TestOutput(payload='42.0', round_trip=42.0, tags=()), |
| 50 |
_TestParameters(profile_name='module_legacy_m2c', value={1}): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 51 |
_TestParameters(profile_name='module_legacy_m2c', value={1}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": [1], "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedSet"}', round_trip=[1], tags=(Deprecated(msg='x'),)), |
| 52 |
_TestParameters(profile_name='module_legacy_m2c', value={1}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 53 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomSet([1])): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 54 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomSet([1]), tags=(Deprecated(msg='x'),)): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 55 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomSet([1]), tags=(TrustedAsTemplate(),)): _TestOutput(payload='[1]', round_trip=[1], tags=()), |
| 56 |
_TestParameters(profile_name='module_legacy_m2c', value={'a': 1}): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()), |
| 57 |
_TestParameters(profile_name='module_legacy_m2c', value={'a': 1}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": {"a": 1}, "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedDict"}', round_trip={'a': 1}, tags=(Deprecated(msg='x'),)), |
| 58 |
_TestParameters(profile_name='module_legacy_m2c', value={'a': 1}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 59 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomMapping({'a': 1})): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()), |
| 60 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomMapping({'a': 1}), tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()), |
| 61 |
_TestParameters(profile_name='module_legacy_m2c', value=CustomMapping({'a': 1}), tags=(TrustedAsTemplate(),)): _TestOutput(payload='{"a": 1}', round_trip={'a': 1}, tags=()), |
| 62 |
_TestParameters(profile_name='module_legacy_m2c', value={(1, 2): 'three'}): _TestOutput(payload=TypeError("Key of type 'tuple' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 63 |
_TestParameters(profile_name='module_legacy_m2c', value={(1, 2): 'three'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload=TypeError("Key of type 'tuple' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 64 |
_TestParameters(profile_name='module_legacy_m2c', value={(1, 2): 'three'}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Key of type 'tuple' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 65 |
_TestParameters(profile_name='module_legacy_m2c', value={frozenset({1, 2}): 'three'}): _TestOutput(payload=TypeError("Key of type 'frozenset' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 66 |
_TestParameters(profile_name='module_legacy_m2c', value={frozenset({1, 2}): 'three'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload=TypeError("Key of type 'frozenset' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 67 |
_TestParameters(profile_name='module_legacy_m2c', value={frozenset({1, 2}): 'three'}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Key of type 'frozenset' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 68 |
_TestParameters(profile_name='module_legacy_m2c', value={1: 'two'}): _TestOutput(payload='{"1": "two"}', round_trip={'1': 'two'}, tags=()), |
| 69 |
_TestParameters(profile_name='module_legacy_m2c', value={1: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": {"1": "two"}, "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedDict"}', round_trip={'1': 'two'}, tags=(Deprecated(msg='x'),)), |
| 70 |
_TestParameters(profile_name='module_legacy_m2c', value={1: 'two'}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 71 |
_TestParameters(profile_name='module_legacy_m2c', value={1.1: 'two'}): _TestOutput(payload='{"1.1": "two"}', round_trip={'1.1': 'two'}, tags=()), |
| 72 |
_TestParameters(profile_name='module_legacy_m2c', value={1.1: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": {"1.1": "two"}, "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedDict"}', round_trip={'1.1': 'two'}, tags=(Deprecated(msg='x'),)), |
| 73 |
_TestParameters(profile_name='module_legacy_m2c', value={1.1: 'two'}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 74 |
_TestParameters(profile_name='module_legacy_m2c', value={True: 'two'}): _TestOutput(payload='{"true": "two"}', round_trip={'true': 'two'}, tags=()), |
| 75 |
_TestParameters(profile_name='module_legacy_m2c', value={True: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": {"true": "two"}, "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedDict"}', round_trip={'true': 'two'}, tags=(Deprecated(msg='x'),)), |
| 76 |
_TestParameters(profile_name='module_legacy_m2c', value={True: 'two'}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 77 |
_TestParameters(profile_name='module_legacy_m2c', value={None: 'two'}): _TestOutput(payload='{"null": "two"}', round_trip={'null': 'two'}, tags=()), |
| 78 |
_TestParameters(profile_name='module_legacy_m2c', value={None: 'two'}, tags=(Deprecated(msg='x'),)): _TestOutput(payload='{"value": {"null": "two"}, "tags": [{"msg": "x", "__ansible_type": "Deprecated"}], "__ansible_type": "_AnsibleTaggedDict"}', round_trip={'null': 'two'}, tags=(Deprecated(msg='x'),)), |
| 79 |
_TestParameters(profile_name='module_legacy_m2c', value={None: 'two'}, tags=(TrustedAsTemplate(),)): _TestOutput(payload=TypeError("Object of type 'TrustedAsTemplate' is not JSON serializable by the 'module_legacy_m2c' profile."), round_trip=None, tags=()), |
| 80 |
} |