Skip to content

Commit 892d3d8

Browse files
authored
Ignore x-ms-client-request-id header in recordings (#3018)
Fixes #2411
1 parent abb39d1 commit 892d3d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdk/core/azure_core_test/src/proxy/matchers.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ impl Default for CustomDefaultMatcher {
8787
fn default() -> Self {
8888
CustomDefaultMatcher {
8989
compare_bodies: None,
90-
// TODO: Remove once all recordings are updated (https://github.com/Azure/azure-sdk-for-rust/issues/2411).
91-
excluded_headers: vec!["x-ms-client-request-id"],
90+
excluded_headers: Vec::new(),
9291
ignored_headers: DEFAULT_IGNORED_HEADERS.to_vec(),
9392
ignore_query_ordering: None,
9493
ignored_query_parameters: Vec::new(),
@@ -112,6 +111,6 @@ fn serialize_custom_default_matcher() {
112111
.into();
113112
assert_eq!(
114113
serde_json::to_string(&v).unwrap(),
115-
r#"{"compareBodies":false,"excludedHeaders":"x-ms-client-request-id","ignoredHeaders":"foo,bar"}"#
114+
r#"{"compareBodies":false,"ignoredHeaders":"foo,bar"}"#
116115
)
117116
}

0 commit comments

Comments
 (0)