forked from MirrorHub/synapse
SYN-103: Remove "origin" and "destination" keys from edus
This commit is contained in:
parent
d085807070
commit
8d8a133c89
|
@ -122,11 +122,10 @@ class Edu(JsonEncodedObject):
|
||||||
"edu_type",
|
"edu_type",
|
||||||
]
|
]
|
||||||
|
|
||||||
# TODO: SYN-103: Remove "origin" and "destination" keys.
|
internal_keys = [
|
||||||
# internal_keys = [
|
"origin",
|
||||||
# "origin",
|
"destination",
|
||||||
# "destination",
|
]
|
||||||
# ]
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(JsonEncodedObject):
|
class Transaction(JsonEncodedObject):
|
||||||
|
|
|
@ -218,9 +218,6 @@ class FederationTestCase(unittest.TestCase):
|
||||||
"pdus": [],
|
"pdus": [],
|
||||||
"edus": [
|
"edus": [
|
||||||
{
|
{
|
||||||
# TODO: SYN-103: Remove "origin" and "destination"
|
|
||||||
"origin": "test",
|
|
||||||
"destination": "remote",
|
|
||||||
"edu_type": "m.test",
|
"edu_type": "m.test",
|
||||||
"content": {"testing": "content here"},
|
"content": {"testing": "content here"},
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,9 +44,6 @@ def _expect_edu(destination, edu_type, content, origin="test"):
|
||||||
"pdus": [],
|
"pdus": [],
|
||||||
"edus": [
|
"edus": [
|
||||||
{
|
{
|
||||||
# TODO: SYN-103: Remove "origin" and "destination" keys.
|
|
||||||
"origin": origin,
|
|
||||||
"destination": destination,
|
|
||||||
"edu_type": edu_type,
|
"edu_type": edu_type,
|
||||||
"content": content,
|
"content": content,
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,9 +33,6 @@ def _expect_edu(destination, edu_type, content, origin="test"):
|
||||||
"pdus": [],
|
"pdus": [],
|
||||||
"edus": [
|
"edus": [
|
||||||
{
|
{
|
||||||
# TODO: SYN-103: Remove "origin" and "destination" keys.
|
|
||||||
"origin": origin,
|
|
||||||
"destination": destination,
|
|
||||||
"edu_type": edu_type,
|
"edu_type": edu_type,
|
||||||
"content": content,
|
"content": content,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue