-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2331 from craddm/remove-data-provider-internet
Remove support for `Internet` Service Tag for Data Provider IP addresses
- Loading branch information
Showing
5 changed files
with
21 additions
and
54 deletions.
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
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 |
---|---|---|
|
@@ -170,24 +170,6 @@ def test_all_databases_must_be_unique(self) -> None: | |
databases=[DatabaseSystem.POSTGRESQL, DatabaseSystem.POSTGRESQL], | ||
) | ||
|
||
def test_data_provider_tag_internet( | ||
self, | ||
config_subsection_remote_desktop: ConfigSubsectionRemoteDesktopOpts, | ||
config_subsection_storage_quota_gb: ConfigSubsectionStorageQuotaGB, | ||
): | ||
sre_config = ConfigSectionSRE( | ||
admin_email_address="[email protected]", | ||
remote_desktop=config_subsection_remote_desktop, | ||
storage_quota_gb=config_subsection_storage_quota_gb, | ||
data_provider_ip_addresses="Internet", | ||
) | ||
assert isinstance(sre_config.data_provider_ip_addresses, AzureServiceTag) | ||
assert sre_config.data_provider_ip_addresses == "Internet" | ||
|
||
def test_data_provider_tag_invalid(self): | ||
with pytest.raises(ValueError, match="Input should be 'Internet'"): | ||
ConfigSectionSRE(data_provider_ip_addresses="Not a tag") | ||
|
||
def test_ip_overlap_admin(self): | ||
with pytest.raises(ValueError, match="IP addresses must not overlap."): | ||
ConfigSectionSRE( | ||
|