Remove unstable APIs for /hierarchy. (#12851)

Removes the unstable endpoint as well as a duplicated field
which was modified during stabilization.
This commit is contained in:
Patrick Cloke 2022-05-26 07:10:28 -04:00 committed by GitHub
parent b5707ceaba
commit 1885ee0113
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 28 deletions

View file

@ -179,7 +179,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
result_children_ids.append(
[
(cs["room_id"], cs["state_key"])
for cs in result_room.get("children_state")
for cs in result_room["children_state"]
]
)
@ -772,7 +772,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": public_room,
"world_readable": False,
"join_rules": JoinRules.PUBLIC,
"join_rule": JoinRules.PUBLIC,
},
),
(
@ -780,7 +780,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": knock_room,
"world_readable": False,
"join_rules": JoinRules.KNOCK,
"join_rule": JoinRules.KNOCK,
},
),
(
@ -788,7 +788,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": not_invited_room,
"world_readable": False,
"join_rules": JoinRules.INVITE,
"join_rule": JoinRules.INVITE,
},
),
(
@ -796,7 +796,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": invited_room,
"world_readable": False,
"join_rules": JoinRules.INVITE,
"join_rule": JoinRules.INVITE,
},
),
(
@ -804,7 +804,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": restricted_room,
"world_readable": False,
"join_rules": JoinRules.RESTRICTED,
"join_rule": JoinRules.RESTRICTED,
"allowed_room_ids": [],
},
),
@ -813,7 +813,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": restricted_accessible_room,
"world_readable": False,
"join_rules": JoinRules.RESTRICTED,
"join_rule": JoinRules.RESTRICTED,
"allowed_room_ids": [self.room],
},
),
@ -822,7 +822,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": world_readable_room,
"world_readable": True,
"join_rules": JoinRules.INVITE,
"join_rule": JoinRules.INVITE,
},
),
(
@ -830,7 +830,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": joined_room,
"world_readable": False,
"join_rules": JoinRules.INVITE,
"join_rule": JoinRules.INVITE,
},
),
)
@ -911,7 +911,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
{
"room_id": fed_room,
"world_readable": False,
"join_rules": JoinRules.INVITE,
"join_rule": JoinRules.INVITE,
},
)