Skip to content

Commit 8201a0b

Browse files
committed
Fix UTs
1 parent 97a1714 commit 8201a0b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/ScenarioTests/ApiManagementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ private void RunPowerShellTest(params string[] scripts)
153153

154154
SetupManagementClients();
155155

156-
_helper.SetupEnvironment(AzureModule.AzureProfile);
157-
_helper.SetupModules(AzureModule.AzureProfile, "ScenarioTests\\Common.ps1", "ScenarioTests\\" + GetType().Name + ".ps1");
156+
_helper.SetupEnvironment(AzureModule.AzureResourceManager);
157+
_helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\Common.ps1", "ScenarioTests\\" + GetType().Name + ".ps1");
158158

159159
_helper.RunPowerShellTest(scripts);
160160
}

src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ private void RunPowerShellTest(params string[] scripts)
176176

177177
SetupManagementClients();
178178

179-
_helper.SetupEnvironment(AzureModule.AzureProfile);
180-
_helper.SetupModules(AzureModule.AzureProfile, "ScenarioTests\\Common.ps1", "ScenarioTests\\" + GetType().Name + ".ps1");
179+
_helper.SetupEnvironment(AzureModule.AzureResourceManager);
180+
_helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\Common.ps1", "ScenarioTests\\" + GetType().Name + ".ps1");
181181

182182
_helper.RunPowerShellTest(scripts);
183183
}

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ResourceGroupTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.WindowsAzure.Commands.ScenarioTest;
16+
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
1617
using Xunit;
1718

1819
namespace Microsoft.Azure.Commands.Resources.Test.ScenarioTests
1920
{
20-
public class ResourceGroupTests
21+
public class ResourceGroupTests : RMTestBase
2122
{
2223
[Fact]
2324
[Trait(Category.AcceptanceType, Category.CheckIn)]

0 commit comments

Comments
 (0)