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

[Test Proxy] Align sanitizers, matchers, and transforms #25258

Merged
merged 3 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
22 changes: 20 additions & 2 deletions tools/azure-sdk-tools/devtools_testutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,49 @@
from .proxy_startup import start_test_proxy, stop_test_proxy, test_proxy
from .proxy_testcase import recorded_by_proxy
from .sanitizers import (
add_api_version_transform,
add_body_key_sanitizer,
add_body_regex_sanitizer,
add_body_string_sanitizer,
add_client_id_transform,
add_continuation_sanitizer,
add_general_regex_sanitizer,
add_general_string_sanitizer,
add_header_regex_sanitizer,
add_header_string_sanitizer,
add_header_transform,
add_oauth_response_sanitizer,
add_remove_header_sanitizer,
add_request_subscription_id_sanitizer,
add_storage_request_id_transform,
add_uri_regex_sanitizer,
add_uri_string_sanitizer,
add_uri_subscription_id_sanitizer,
set_bodiless_matcher,
set_custom_default_matcher,
set_default_settings,
set_headerless_matcher,
)
from .helpers import ResponseCallback, RetryCounter
from .fake_credentials import FakeTokenCredential

__all__ = [
"add_api_version_transform",
"add_body_key_sanitizer",
"add_body_regex_sanitizer",
"add_body_string_sanitizer",
"add_client_id_transform",
"add_continuation_sanitizer",
"add_general_regex_sanitizer",
"add_general_string_sanitizer",
"add_header_regex_sanitizer",
"add_header_string_sanitizer",
"add_header_transform",
"add_oauth_response_sanitizer",
"add_remove_header_sanitizer",
"add_request_subscription_id_sanitizer",
"add_storage_request_id_transform",
"add_uri_regex_sanitizer",
"add_uri_string_sanitizer",
"add_uri_subscription_id_sanitizer",
"AzureMgmtTestCase",
"AzureMgmtPreparer",
"AzureMgmtRecordedTestCase",
Expand All @@ -70,6 +87,7 @@
"set_bodiless_matcher",
"set_custom_default_matcher",
"set_default_settings",
"set_headerless_matcher",
"start_test_proxy",
"stop_test_proxy",
"ResponseCallback",
Expand Down
Loading