This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove legacy code related to deprecated trust_identity_server_for_password_resets
config flag
#11333
Merged
Merged
Remove legacy code related to deprecated trust_identity_server_for_password_resets
config flag
#11333
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b4325aa
remove code legacy code related to depreciated config flag "trust_ide…
H-Shay 7857295
remove legacy code supporting depreciated config flag "trust_identity…
H-Shay d82615c
remove legacy code supporting depreciated config flag "trust_identity…
H-Shay 4bc12e0
add tests to ensure config error is thrown and synapse refuses to sta…
H-Shay a99e4d3
add changelog
H-Shay 1f07bdd
slightly change behavior to only check for deprecated flag if set to …
H-Shay fb5c060
Update changelog.d/11333.misc
H-Shay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove deprecated `trust_identity_server_for_password_resets` configuration flag. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,12 @@ def test_stats_enabled(self): | |
# The default Metrics Flags are off by default. | ||
config = HomeServerConfig.load_config("", ["-c", self.config_file]) | ||
self.assertFalse(config.metrics.metrics_flags.known_servers) | ||
|
||
def test_depreciated_identity_server_flag_throws_error(self): | ||
self.generate_config() | ||
# Needed to ensure that actual key/value pair added below don't end up on a line with a comment | ||
self.add_lines_to_config([" "]) | ||
Comment on lines
+100
to
+101
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm surprised — the other tests don't appear to need this. :/ |
||
# Check that presence of "trust_identity_server_for_password" throws config error | ||
self.add_lines_to_config(["trust_identity_server_for_password_resets: true"]) | ||
with self.assertRaises(ConfigError): | ||
HomeServerConfig.load_config("", ["-c", self.config_file]) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a fun note I realized that this has been broken since #10985 was merged for v1.45.0rc1.