Skip to content

Commit 5b5b717

Browse files
authored
fix missing headers issue in alpha ids (Azure#26866)
### Packages impacted by this PR ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
1 parent 8dee63f commit 5b5b717

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

sdk/communication/communication-alpha-ids/test/public/utils/recordedClient.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,18 @@ export async function createRecordedClientWithToken(
101101

102102
// casting is a workaround to enable min-max testing
103103
return {
104-
client: new AlphaIdsClient(endpoint, credential, recorder.configureClientOptions({})),
104+
client: new AlphaIdsClient(
105+
endpoint,
106+
credential,
107+
recorder.configureClientOptions({
108+
additionalPolicies: [
109+
{
110+
policy: createMSUserAgentPolicy(),
111+
position: "perCall",
112+
},
113+
],
114+
})
115+
),
105116
recorder,
106117
};
107118
}
@@ -118,7 +129,18 @@ export async function createRecordedClientWithToken(
118129

119130
// casting is a workaround to enable min-max testing
120131
return {
121-
client: new AlphaIdsClient(endpoint, credential, recorder.configureClientOptions({})),
132+
client: new AlphaIdsClient(
133+
endpoint,
134+
credential,
135+
recorder.configureClientOptions({
136+
additionalPolicies: [
137+
{
138+
policy: createMSUserAgentPolicy(),
139+
position: "perCall",
140+
},
141+
],
142+
})
143+
),
122144
recorder,
123145
};
124146
}

0 commit comments

Comments
 (0)