Skip to content

Revert client signature endpoint to base_url to avoid breaking for Mgmt SDK#2758

Merged
iscai-msft merged 4 commits intomainfrom
fix-client-signature
Aug 9, 2024
Merged

Revert client signature endpoint to base_url to avoid breaking for Mgmt SDK#2758
iscai-msft merged 4 commits intomainfrom
fix-client-signature

Conversation

@msyyc
Copy link
Copy Markdown
Member

@msyyc msyyc commented Aug 9, 2024

Revert client signature endpoint to base_url to avoid breaking for Mgmt SDK

const options = addOptions(spec, PLUGIN_DIR, flags);
const commandPromises = options.map((option) => {
const command = `tsp compile ${spec} --emit=${PLUGIN_DIR} ${option}`;
const command = `tsp compile ${spec} --emit=${toPosix(PLUGIN_DIR)} ${option}`;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emitter-options shall be posix path style otherwise cause warning: microsoft/typespec#4023

subscription_id: str,
*,
endpoint: str = "https://management.azure.com",
base_url: str = "https://management.azure.com",
Copy link
Copy Markdown
Member Author

@msyyc msyyc Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await client.top_level_tracked_resources.get(RESOURCE_GROUP_NAME, "top")
# make sure signautre name is correct
await client.top_level_tracked_resources.get(
resource_group_name=RESOURCE_GROUP_NAME, top_level_tracked_resource_name="top"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add test case to avoid client signature breaking in the future.

@msyyc msyyc marked this pull request as ready for review August 9, 2024 03:23
@iscai-msft iscai-msft merged commit 8871e46 into main Aug 9, 2024
@iscai-msft iscai-msft deleted the fix-client-signature branch August 9, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants