Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.1.0</Version>
<Version>2.2.0</Version>
<PackageTags>Microsoft Azure IotCentral;IotCentral management;IotCentral;</PackageTags>
<PackageReleaseNotes>
<![CDATA[
This release adds new skus: ST0, ST1, ST2 for Microsoft.Azure.Management.IotCentral.
This release change error to be CloudException, and remove regex check for IOTC app.
]]>
</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.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.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
@@ -1 +1 @@
Start-AutoRestCodeGeneration -ResourceProvider "iotcentral/resource-manager" -AutoRestVersion "latest" -SdkGenerationDirectory "$PSScriptRoot\Generated"
Start-AutoRestCodeGeneration -ResourceProvider "iotcentral/resource-manager" -AutoRestVersion "v2" -SdkGenerationDirectory "$PSScriptRoot\Generated"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace IotCentral.Tests.ScenarioTests
using Newtonsoft.Json.Linq;
using Xunit;
using Microsoft.Rest;
using Microsoft.Rest.Azure;

public class IotCentralLifeCycleTests : IotCentralTestBase
{
Expand Down Expand Up @@ -147,32 +148,6 @@ public void TestAppWhenNullAppSkuInfo()
Assert.True(exceptionThrown);
}

[Fact]
public void TestAppWhenInvalidSubdomain()
{
var exceptionThrown = false;
try
{
App app = new App()
{
Location = IotCentralTestUtilities.DefaultLocation,
Sku = new AppSkuInfo()
{
Name = "ST1"
},
Subdomain = "SOME-INVALID-SUBDOMAIN",
DisplayName = IotCentralTestUtilities.DefaultUpdateResourceName
};
app.Validate();
}
catch (Exception ex)
{
exceptionThrown = true;
Assert.Equal(typeof(ValidationException), ex.GetType());
}
Assert.True(exceptionThrown);
}

[Fact]
public void TestAppSkuInfoWhenNullInput()
{
Expand Down Expand Up @@ -207,24 +182,6 @@ public void TestOperationInputsWhenNullInput()
Assert.True(exceptionThrown);
}

[Fact]
public void TestOperationInputsWhenInvalidInput()
{
var exceptionThrown = false;
try
{
var nameInput = "SOMEINVALIDINPUT";
OperationInputs operationInput = new OperationInputs(nameInput);
operationInput.Validate();
}
catch (Exception ex)
{
exceptionThrown = true;
Assert.Equal(typeof(ValidationException), ex.GetType());
}
Assert.True(exceptionThrown);
}

[Fact]
public void TestResourceWhenNullLocation()
{
Expand Down