Skip to content

Commit

Permalink
{AppConfig} Add sanitization of data in test recording files (Azure#3…
Browse files Browse the repository at this point in the history
albertofori authored Oct 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 31cb7e7 commit 095d524
Showing 22 changed files with 442,618 additions and 30,740 deletions.

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
@@ -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):
@@ -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):
@@ -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):

@@ -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):
@@ -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):
@@ -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):
@@ -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):
@@ -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):
@@ -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):
@@ -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):
@@ -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):
@@ -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')
@@ -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):

0 comments on commit 095d524

Please sign in to comment.