Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
10f6ad0
Change the accessbility to virtual for Resource.Id
Mar 24, 2021
ccc17c7
merge from usptream
Apr 5, 2021
5060f5c
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash Apr 12, 2021
9a9a651
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash Apr 21, 2021
7764cb5
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
Apr 23, 2021
832483a
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
Apr 28, 2021
3066cd2
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
May 6, 2021
9597dc7
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
May 6, 2021
86547b0
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash May 10, 2021
4fa650c
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash May 10, 2021
6f858c5
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash May 17, 2021
fb80156
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
m-nash May 25, 2021
4f1408d
Merge branch 'feature/mgmt-track2' of https://github.com/Azure/azure-…
Jun 4, 2021
0109e92
Add tests for ArmClient
Jun 4, 2021
7c443e3
Address review comment
Jun 7, 2021
fbd4174
Update recordings
Jun 7, 2021
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.

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
@@ -1,18 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.Threading.Tasks;
using Azure.Core.TestFramework;
using NUnit.Framework;

namespace Azure.ResourceManager.Core.Tests.Scenario
{
class ArmClientTests : ResourceManagerTestBase
{
private string _rgName;
private readonly string _location = "southcentralus";

public ArmClientTests(bool isAsync)
: base(isAsync)//, RecordedTestMode.Record)
{
Expand Down Expand Up @@ -40,18 +38,25 @@ public void GetGenericOperationsTests()

var genericResourceOperationsList = Client.GetGenericResourceOperations(ids);

foreach(GenericResourceOperations operations in genericResourceOperationsList)
foreach (GenericResourceOperations operations in genericResourceOperationsList)
{
Assert.AreEqual(operations.Id, ids[0]);
Assert.AreEqual(ids[0], operations.Id.StringValue);
ids.RemoveAt(0);
}
}

[TestCase]
public void GetGenericResourcesOperationsTests()
{
string id = $"/providers/Microsoft.Compute/virtualMachines/myVm";
Assert.AreEqual(id, Client.GetGenericResourcesOperations(new TenantResourceIdentifier(id)).Id.StringValue);
}

[TestCase]
public void GetGenericResourceOperationsSingleIDTests()
{
string id = $"/subscriptions/{TestEnvironment.SubscriptionId}/resourceGroups/foo-1/";
Assert.AreEqual(Client.GetGenericResourceOperations(id).Id, id);
Assert.AreEqual(id, Client.GetGenericResourceOperations(id).Id.StringValue);
}

[TestCase]
Expand Down Expand Up @@ -120,8 +125,8 @@ public void GetGenericResourceOperationWithNullSetOfIds()
[TestCase]
public void GetGenericResourceOperationWithNullId()
{
string x = null;
Assert.Throws<ArgumentNullException>(() => { Client.GetGenericResourceOperations(x); });
string x = null;
Assert.Throws<ArgumentNullException>(() => { Client.GetGenericResourceOperations(x); });
}

[TestCase]
Expand Down

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.

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.

Loading