sytest "Can delete canonical alias" is enforcing "MAY" wording in the spec as mandatory
Sytest "Can delete canonical alias" checks if the server automatically removes an alias from a m.room.canonical_alias event if it is deleted via the /directory/ API.
However, it is probably wrong to enforce this behaviour in two different ways;
First, the spec talks only about alt_aliases being automatically updated, see the following text;
Note: Servers may choose to update the
alt_aliasesfor them.room.canonical_aliasstate event in the room when an alias is removed. Servers which choose to update the canonical alias event are recommended to, in addition to their other relevant permission checks, delete the alias and return a successful response even if the user does not have permission to update them.room.canonical_aliasevent.
This does not mention anything about the alias part of the state event.
Secondly, this is a MAY recommendation, which, in the words of RFC2119;
This word, or the adjective "OPTIONAL", mean that an item is truly optional.
Thus, in my opinion, this sytest shouldn't become a compliance-testing complement test, but i'd like some input on this.