Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{AppConfig} Add sanitization of data in test recording files #30024

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

128,373 changes: 121,798 additions & 6,575 deletions ...re/cli/command_modules/appconfig/tests/latest/recordings/test_azconfig_import_export.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

class AppConfigMgmtScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigMgmtScenarioTest, self).__init__(*args, **kwargs)

@ResourceGroupPreparer(parameter_name_for_location='location')
@AllowLargeResponse()
def test_azconfig_mgmt(self, resource_group, location):
Expand Down Expand Up @@ -376,6 +380,10 @@ def test_azconfig_public_network_access(self, resource_group, location):

class AppConfigCredentialScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigCredentialScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_credential(self, resource_group, location):
Expand Down Expand Up @@ -409,6 +417,10 @@ def test_azconfig_credential(self, resource_group, location):

class AppConfigIdentityScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigIdentityScenarioTest, self).__init__(*args, **kwargs)

@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_identity(self, resource_group, location):

Expand Down Expand Up @@ -449,6 +461,10 @@ def test_azconfig_identity(self, resource_group, location):

class AppConfigKVScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigKVScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_kv(self, resource_group, location):
Expand Down Expand Up @@ -762,6 +778,10 @@ def test_azconfig_kv_revision_list(self, resource_group, location):

class AppConfigImportExportScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigImportExportScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_import_export(self, resource_group, location):
Expand Down Expand Up @@ -1373,6 +1393,10 @@ def test_appconfig_to_appservice_import_export(self, resource_group, location):

class AppConfigImportExportNamingConventionScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigImportExportNamingConventionScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_import_export_naming_conventions(self, resource_group, location):
Expand Down Expand Up @@ -1479,6 +1503,10 @@ def test_azconfig_import_export_naming_conventions(self, resource_group, locatio

class AppConfigToAppConfigImportExportScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigToAppConfigImportExportScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_appconfig_to_appconfig_import_export(self, resource_group, location):
Expand Down Expand Up @@ -1676,6 +1704,10 @@ def test_appconfig_to_appconfig_import_export(self, resource_group, location):

class AppConfigJsonContentTypeScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigJsonContentTypeScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_json_content_type(self, resource_group, location):
Expand Down Expand Up @@ -2104,6 +2136,10 @@ def test_azconfig_json_content_type(self, resource_group, location):

class AppConfigFeatureScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigFeatureScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_feature(self, resource_group, location):
Expand Down Expand Up @@ -2517,6 +2553,10 @@ def test_azconfig_feature_namespacing(self, resource_group, location):

class AppConfigFeatureFilterScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigFeatureFilterScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_feature_filter(self, resource_group, location):
Expand Down Expand Up @@ -2771,6 +2811,10 @@ def test_azconfig_feature_filter(self, resource_group, location):

class AppConfigKeyValidationScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigKeyValidationScenarioTest, self).__init__(*args, **kwargs)

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
def test_azconfig_key_validation(self, resource_group, location):
Expand Down Expand Up @@ -2858,6 +2902,10 @@ def test_azconfig_key_validation(self, resource_group, location):

class AppConfigAadAuthLiveScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppConfigAadAuthLiveScenarioTest, self).__init__(*args, **kwargs)

@live_only()
@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name_for_location='location')
Expand Down Expand Up @@ -3015,6 +3063,11 @@ def test_azconfig_aad_auth(self, resource_group, location):


class AppconfigReplicaLiveScenarioTest(ScenarioTest):

def __init__(self, *args, **kwargs):
kwargs["recording_processors"] = kwargs.get("recording_processors", []) + [CredentialResponseSanitizer()]
super(AppconfigReplicaLiveScenarioTest, self).__init__(*args, **kwargs)

@ResourceGroupPreparer(parameter_name_for_location='location')
@AllowLargeResponse()
def test_azconfig_replica_mgmt(self, resource_group, location):
Expand Down