Skip to content

HPF PR: dev <- AzureRT:dev #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 29, 2016
Merged
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
2 changes: 1 addition & 1 deletion src/AzureRT.testsettings
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Description>These are test settings for AzureRT test run.</Description>
<Deployment>
<DeploymentItem filename="ServiceManagement\Compute\Commands.ServiceManagement.Test\Resources\" />
<DeploymentItem filename="Package\Debug\" />
<DeploymentItem filename="ServiceManagement\Compute\Commands.ServiceManagement.Test\bin\Debug\" />
</Deployment>
<Execution parallelTestCount="0">
<Timeouts testTimeout="3000000" />
Expand Down
2 changes: 1 addition & 1 deletion src/ResourceManager.ForRefactoringOnly.sln
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.Reso
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "Common\Commands.Common\Commands.Common.csproj", "{5EE72C53-1720-4309-B54B-5FB79703195F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Storage", "Common\Storage\Commands.Storage\Commands.Storage.csproj", "{08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Storage", "Storage\Commands.Storage\Commands.Storage.csproj", "{08CF7DA7-0392-4A19-B79B-E1FF67CDB81A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ServiceManagement.Common", "ServiceManagement\Common\Commands.ServiceManagement.Common\Commands.ServiceManagement.Common.csproj", "{CFF09E81-1E31-444E-B4D4-A21E946C29E2}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,20 @@ namespace Microsoft.WindowsAzure.Commands.ServiceManagement.Test.FunctionalTests
{
public class WindowsAzurePowershellCmdlet : PowershellCmdlet
{
private static readonly string[] modules = new[]
{
Path.Combine(Utilities.windowsAzurePowershellPath, Utilities.windowsAzurePowershellServiceModule)
};

public WindowsAzurePowershellCmdlet(CmdletsInfo cmdlet) : base(cmdlet, ConstructModules())
{
}

public static string[] Modules
{
get
{
return modules;
}
}

private static PowershellModule[] ConstructModules()
{
var modules = new[]
{
new PowershellModule(Utilities.windowsAzurePowershellServiceModule, Utilities.windowsAzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellModuleServiceManagementPirModule, Utilities.windowsAzurePowershellDefaultPath),
new PowershellModule(Utilities.AzurePowershellModuleServiceManagementPreviewModule, Utilities.windowsAzurePowershellDefaultPath),
new PowershellModule(Utilities.AzurePowershellProfileModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellServiceManagementModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellCommandsModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellStorageModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellModuleServiceManagementPirModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellModuleServiceManagementPreviewModule, Utilities.AzurePowershellPath),
};
return modules;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,21 @@ namespace Microsoft.WindowsAzure.Commands.ServiceManagement.Test.FunctionalTests
{
public class WindowsAzurePowershellScript : PowershellCmdletScript
{
private static readonly string[] modules = new[]
{
Path.Combine(Utilities.windowsAzurePowershellPath, Utilities.windowsAzurePowershellServiceModule)
};

public WindowsAzurePowershellScript(List<string> cmdlets) : base(cmdlets, ConstructModules())
{
}
public WindowsAzurePowershellScript() : base(ConstructModules())
{
}

public static string[] Modules
{
get
{
return modules;
}
}

private static PowershellModule[] ConstructModules()
{
return new[]
{
new PowershellModule(Utilities.windowsAzurePowershellServiceModule, Utilities.windowsAzurePowershellPath)
new PowershellModule(Utilities.AzurePowershellProfileModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellCommandsModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellStorageModule, Utilities.AzurePowershellPath),
new PowershellModule(Utilities.AzurePowershellServiceManagementModule, Utilities.AzurePowershellPath)
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ internal class Utilities
{
#region Constants

public static string windowsAzurePowershellPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ServiceManagement\\Azure");
public static string windowsAzurePowershellDefaultPath = AppDomain.CurrentDomain.BaseDirectory;
public static string AzurePowershellPath = AppDomain.CurrentDomain.BaseDirectory;

public const string windowsAzurePowershellServiceModule = "Azure.psd1";
public const string AzurePowershellProfileModule = "Microsoft.WindowsAzure.Commands.Profile.dll";
public const string AzurePowershellCommandsModule = "Microsoft.WindowsAzure.Commands.dll";
public const string AzurePowershellStorageModule = "Microsoft.WindowsAzure.Commands.Storage.dll";
public const string AzurePowershellServiceManagementModule = "Microsoft.WindowsAzure.Commands.ServiceManagement.dll";
public const string AzurePowershellModuleServiceManagementPirModule = "Microsoft.WindowsAzure.Commands.ServiceManagement.PlatformImageRepository.dll";
public const string AzurePowershellModuleServiceManagementPreviewModule = "Microsoft.WindowsAzure.Commands.ServiceManagement.Preview.dll";

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $script:aliases = @{
"Remove-WAPackSBNamespace" = "Remove-AzureSBNamespace";

# Compute aliases
"New-AzureDns" = "New-AzureDnsConfig";
"New-AzureDnsConfig" = "New-AzureDns";

# HDInsight aliases
"Invoke-Hive" = "Invoke-AzureHDInsightHiveJob";
Expand Down