Skip to content

Commit

Permalink
replace with name field (Azure#17824)
Browse files Browse the repository at this point in the history
  • Loading branch information
poanchen authored and Minnie Liu committed Jan 23, 2021
1 parent afe0968 commit 2302da2
Show file tree
Hide file tree
Showing 10 changed files with 459 additions and 407 deletions.
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/iotcentral_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/iotcentral/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\Users\rodelga\Documents\azure-sdk-for-net\sdk\iotcentral\Microsoft.Azure.Management.IotCentral\src\Generated
2020-06-29 18:54:29 UTC
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/iotcentral/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\Users\pochen\Github\azure-sdk-for-net\sdk\iotcentral\Microsoft.Azure.Management.IotCentral\src\Generated
2021-01-06 01:06:39 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 379847f2a8e8927a5d6c950e22d080fd04815277
Commit: b5851f013e3e954c7356e7d7384ae5188f6944ca
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<Description>Provides management capabilities for Microsoft Azure IotCentral.</Description>
<AssemblyTitle>Microsoft Azure IotCentral Management</AssemblyTitle>
<AssemblyName>Microsoft.Azure.Management.IotCentral</AssemblyName>
<Version>2.3.0</Version>
<Version>3.0.0</Version>
<PackageTags>Microsoft Azure IotCentral;IotCentral management;IotCentral;</PackageTags>
<PackageReleaseNotes>
<![CDATA[
This release allows application patch API to update the application sku.
This release fix the incorrect field appTemplateName to name.
]]>
</PackageReleaseNotes>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[assembly: AssemblyTitle("Microsoft Azure IotCentral Management Library")]
[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure IotCentral Resources.")]

[assembly: AssemblyVersion("2.3.0.0")]
[assembly: AssemblyFileVersion("2.3.0.0")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Microsoft Azure .NET SDK")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ namespace IotCentral.Tests.Helpers
public class IotCentralTestUtilities
{
public static string DefaultLocation = "EastUS";
public static string DefaultResourceName = "dotnetsdkapp";
public static string DefaultUpdateResourceName = "dotnetsdkappupdate";
public static string DefaultSubdomain = "dotnetsdksubdomain";
public static string DefaultUpdateSubdomain = "dotnetsdksubdomainupdate";
public static string DefaultResourceGroupName = "DotNetSdkIotCentralRG";
public static string DefaultUpdateResourceGroupName = "DotNetSdkIotCentralRGUpdate";
public static string DefaultResourceName = "defaultdotnetsdkapp";
public static string DefaultUpdateResourceName = "defaultdotnetsdkappupdate";
public static string DefaultSubdomain = "defaultdotnetsdksubdomain";
public static string DefaultUpdateSubdomain = "defaultdotnetsdksubdomainupdate";
public static string DefaultResourceGroupName = "DefaultDotNetSdkIotCentralRG";
public static string DefaultUpdateResourceGroupName = "DefaultDotNetSdkIotCentralRGUpdate";

public static IotCentralClient GetIotCentralClient(MockContext context, RecordedDelegatingHandler handler = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,21 @@ public void TestResourceWhenNullLocation()
Assert.True(exceptionThrown);
}

[Fact]
public void TestAppTemplateNameField()
{
using (MockContext context = MockContext.Start(this.GetType()))
{
Initialize(context);

var iotAppsTemplates = this.iotCentralClient.Apps.ListTemplates().ToList();

Assert.True(iotAppsTemplates.Count > 0);
Assert.NotNull(iotAppsTemplates[0].Name);
Assert.Equal("Store Analytics – Condition Monitoring", iotAppsTemplates[0].Name);
}
}

private void CheckAppNameAndSubdomainTaken(string resourceName, string subdomain)
{
OperationInputs resourceNameInputs = new OperationInputs(resourceName, "IoTApps");
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 2302da2

Please sign in to comment.