"swagger": "2.0",
"info": {
"title": "Microsoft Storage Sync",
"description": "Microsoft Storage Sync Service API",
"version": "2019-06-01",
"x-ms-code-generation-settings": {
"name": "StorageSyncManagementClient"
}
the info.title should be StorageSyncManagementClient then generated tests will be right.
Also the generated testcase name will be
MgmtMicrosoftStorageSyncTest, not just MgmtStorageSyncTest.
And when create client it will import wrong path form azure.mgmt.storagesync.MicrosoftStorageSync.
we can fix it using x-ms-code-generation-settings in autorest.cli
the info.title should be
StorageSyncManagementClientthen generated tests will be right.Also the generated testcase name will be
MgmtMicrosoftStorageSyncTest, not justMgmtStorageSyncTest.And when create client it will import wrong path form
azure.mgmt.storagesync.MicrosoftStorageSync.we can fix it using
x-ms-code-generation-settingsin autorest.cli