Cognitive Services version 2017-04-18#3221
Conversation
Generates SDK against Cognitive Services version 2017-04-18 swagger file. Fixes failed test cases accrodingly and adds 2 more test cases. Bump version to 1.0.0.0 as Cognitive Services has been GA.
Bump VersionPrefix in csproj to 1.0.0
|
Generated based on Cognitive Services swagger file 2017-04-18: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-cognitiveservices/2017-04-18/swagger/cognitiveservices.json |
| var rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); | ||
|
|
||
| var accounts = cognitiveServicesMgmtClient.CognitiveServicesAccounts.ListByResourceGroup(rgname); | ||
| var accounts = cognitiveServicesMgmtClient.Accounts.ListByResourceGroup(rgname); |
There was a problem hiding this comment.
@felixwa I see you are still using really old ResourceManger nuget package
Please use the latest nugets for all the dependencies that are used in the tests.
We are asking every RP to update their tests that uses latest nuget packages.
There was a problem hiding this comment.
@shahabhijeet I have updated all nuget packages for test project though for ResourceManager (Microsoft.Azure.ResourceManager) I think we have used the latest (1.1.0-preview). I don't see update option for it.
There was a problem hiding this comment.
@felixwa the latest version is here: https://www.nuget.org/packages/Microsoft.Azure.Management.ResourceManager/1.6.0-preview
There was a problem hiding this comment.
Okay, so actually it is a NEW NuGet package. Added.
| <PropertyGroup> | ||
| <Description>Microsoft Azure Management Cognitive Services Library</Description> | ||
| <VersionPrefix>0.3.0-preview</VersionPrefix> | ||
| <VersionPrefix>1.0.0</VersionPrefix> |
There was a problem hiding this comment.
@felixwa please replace the entire csproj with the following
Microsoft.Azure.Management.CognitiveServices Microsoft Azure Management Cognitive Services Library 1.0.0 Microsoft.Azure.Management.CognitiveServices Microsoft Azure Cognitive Services management;Cognitive Services;Cognitive Services management;REST HTTP client;windowsazureofficial;netcore451511 net452;netstandard1.4If you want to add ReadMe.txt please add .nuspec file, here is an example
https://docs.microsoft.com/en-us/nuget/schema/nuspec#including-content-files
There was a problem hiding this comment.
Updated accordingly.
I will add that additional notice in another PR.
Cleans up .csproj file as shahabhijeet suggested.
Fix format of csproj
Update NuGet pacakges in test project to the latest.
shahabhijeet
left a comment
There was a problem hiding this comment.
Once you are done making suggested changes, remove "needs-revision" flag and add "Need review" flag
| <Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> |
There was a problem hiding this comment.
@felixwa any reason these references are added?
All these references are already implicitly added to your project, you do not need them again.
Please remove, or let me know the reason you made this change?
There was a problem hiding this comment.
@felixwa in order to use latest ResourceManagement, you will have to add reference to the latest resource manager nuget 1.6.0-preview, and make that change inside CognitiveServicesManagementTestUtilities.cs (that creates the ResourceManagementClient).
We ask RP to re record all tests, that is idea for two reasons:
- ResourceManager 1.1.0-preview is really old and if you are still using it, you are not testing latest that is being used by your customers that are creating cognitive services resources.
- If you cannot re-record all tests, then start with recording tests that are being used by this particular PR.
Also please remove Compiler Constant #DNX451 from your test/SDK project.
The only constant you should be using is
#if FullNetFx (for Desktop framework version e.g. .NET 4.5.2 .NET 4.6 etc) and if you are targeting .NET Standard, please use
#if !FullNetFx
There was a problem hiding this comment.
- Removed those references. They were automatically added when I updated them in NuGet manager.
- Add Microsoft.Azure.Management.ResourceManager 1.6.0-preview reference and changed UT code a little bit accordingly.
- Re-recorded all unit tests.
- Removed that #DNX451 constant.
Generates SDK against Cognitive Services version 2017-04-18 swagger file. Fixes failed test cases accrodingly and adds 2 more test cases. Bump version to 1.0.0.0 as Cognitive Services has been GA.
Bump VersionPrefix in csproj to 1.0.0
Cleans up .csproj file as shahabhijeet suggested.
Fix format of csproj
Update NuGet pacakges in test project to the latest.
Remove DNX451 symbol
dae445a to
ccebabf
Compare
1. Adds ref to Microsoft.Azure.Management.ResourceManager 1.6.0-preview 2. Adjust some test code accordingly. 3. Re-record all unit tests.
Generates SDK against Cognitive Services version 2017-04-18 swagger
file.
Fixes failed test cases accrodingly and adds 2 more test cases.
Bump version to 1.0.0.0 as Cognitive Services has been GA.
Description
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
*.csprojandAssemblyInfo.csfiles have been updated with the new version of the SDK.