Skip to content

Commit 48e3a8c

Browse files
committed
Updating tests for removal of startup script
1 parent a99afea commit 48e3a8c

File tree

5 files changed

+0
-35
lines changed

5 files changed

+0
-35
lines changed

src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using Microsoft.Azure.Commands.Common.Authentication;
1616
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
1717
using Microsoft.Azure.Commands.Common.Authentication.Models;
18-
using Microsoft.Azure.Commands.ResourceManager.Common;
1918
using Microsoft.Azure.Commands.ScenarioTest;
2019
using Microsoft.Azure.ServiceManagemenet.Common.Models;
2120
using Microsoft.Azure.Test;
@@ -25,16 +24,13 @@
2524
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2625
using System;
2726
using System.Reflection;
28-
using System.Reflection.Emit;
2927
using System.Collections.Generic;
3028
using System.Collections.ObjectModel;
3129
using System.Diagnostics;
3230
using System.IO;
3331
using System.Linq;
3432
using System.Management.Automation;
35-
using System.Management.Automation.Runspaces;
3633
using System.Net.Http;
37-
using System.Reflection;
3834
using System.Threading;
3935

4036
#if !NETSTANDARD
@@ -111,16 +107,6 @@ public string RMResourceModule
111107
}
112108
}
113109

114-
// This ResourceManagerStartup.ps1 contains Get-AzureRmAuthorizationChangeLog script
115-
public string RMResourceManagerStartup
116-
{
117-
get
118-
{
119-
return Path.Combine(this.PackageDirectory,
120-
@"ResourceManager\AzureResourceManager\AzureRM.Resources\ResourceManagerStartup.ps1");
121-
}
122-
}
123-
124110
public string RMInsightsModule
125111
{
126112
get

src/ResourceManager/Profile/Commands.Profile.Test/ProfileController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ private void RunPsTestWorkflow(
106106
callingClassName + ".ps1",
107107
helper.RMProfileModule,
108108
helper.RMResourceModule,
109-
helper.RMResourceManagerStartup,
110109
helper.RMInsightsModule);
111110

112111
try

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ public void RunPsTestWorkflow(
147147
"ScenarioTests\\" + callingClassName + ".ps1",
148148
helper.RMProfileModule,
149149
helper.RMResourceModule,
150-
helper.RMResourceManagerStartup,
151150
helper.RMInsightsModule);
152151

153152
try

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ public RoleAssignmentTests(ITestOutputHelper output)
3737
XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
3838
}
3939

40-
[Fact(Skip = "Test is failing in CI build for no matching request found but passes locally.")]
41-
[Trait(Category.AcceptanceType, Category.CheckIn)]
42-
public void RaAuthorizationChangeLog()
43-
{
44-
ResourcesController.NewInstance.RunPsTest("Test-RaAuthorizationChangeLog");
45-
}
46-
4740
[Fact]
4841
[Trait(Category.AcceptanceType, Category.CheckIn)]
4942
public void RaClassicAdmins()

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/RoleAssignmentTests.ps1

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -302,18 +302,6 @@ function Test-RaUserPermissions
302302
Assert-Throws{ New-AzureRmResourceGroup -Name 'NewGroupFromTest' -Location 'WestUS'}
303303
}
304304

305-
<#
306-
.SYNOPSIS
307-
Tests verifies Get-AzureRmAuthorizationChangeLog
308-
#>
309-
function Test-RaAuthorizationChangeLog
310-
{
311-
$log1 = Get-AzureRmAuthorizationChangeLog -startTime 2016-07-28 -EndTime 2016-07-28T22:30:00Z
312-
313-
# Assert
314-
Assert-True { $log1.Count -ge 1 } "At least one record should be returned for the user"
315-
}
316-
317305
<#
318306
.SYNOPSIS
319307
Tests verifies creation and deletion of a RoleAssignments by Scope irrespective of the case

0 commit comments

Comments
 (0)