streams: Add notifications for posting policy changes.

An explanatory note on the changes in zulip.yaml and
curl_param_value_generators is warranted here. In our automated
tests for our curl examples, the test for the API endpoint that
changes the posting permissions of a stream comes before our
existing curl test for adding message reactions.

Since there is an extra notification message due to the change in
posting permissions, the message IDs used in tests that come after
need to be incremented by 1.

This is a part of #20289.
This commit is contained in:
Eeshan Garg
2021-12-14 19:04:35 -05:00
committed by Tim Abbott
parent 047a119d46
commit c30458e174
12 changed files with 127 additions and 34 deletions

View File

@@ -126,8 +126,9 @@ def iago_message_id() -> Dict[str, object]:
def add_emoji_to_message() -> Dict[str, object]:
user_profile = helpers.example_user("iago")
# from OpenAPI format data in zulip.yaml
message_id = 43
# The message ID here is hardcoded based on the corresponding value
# for the example message IDs we use in zulip.yaml.
message_id = 44
emoji_name = "octopus"
emoji_code = "1f419"
reaction_type = "unicode_emoji"