Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
fdfee61
Merge pull request #7 from ogail/master
ogail Dec 4, 2014
b7dfdd5
Added some service objectives to the list.
akromm-zz Dec 19, 2014
aa6bdc9
Updating mock sessions file for v12 tests. Updated v12 connection con…
akromm-zz Dec 23, 2014
359439f
Merge branch 'dev' of https://github.com/azure/azure-powershell into …
akromm-zz Dec 23, 2014
82901a0
Merge pull request #4 from Azure/dev
jtlibingus Dec 26, 2014
b5af664
Fixing a failing test.
akromm-zz Jan 2, 2015
e211c63
Add new cmdlets for storage SAS token stored policy.
EmmaZhu Jan 5, 2015
6d45858
Merge branch 'dev' of https://github.com/Azure/azure-powershell-pr in…
akromm-zz Jan 5, 2015
ce380c5
Merge branch 'dev' of https://github.com/Azure/azure-powershell-pr in…
akromm-zz Jan 6, 2015
5c78199
Merge pull request #22 from EmmaZhu/dev
ogail Jan 6, 2015
2c3592f
Merge pull request #25 from akromm/dev-sql-fixes
ogail Jan 6, 2015
c77f6e8
FW: Adding cmdlets for creating and deleting AD application &
Jan 8, 2015
26273de
FW: Re-recording the Test-GetAzureADUserWithUPN.
Jan 8, 2015
d6456fd
Upgrade to use latest common packages
Jan 8, 2015
c8ba7a2
Remove dependency on Microsoft.WindowsAzure.Common
Jan 8, 2015
b417b1f
Add PBI reference to insights issue
Jan 8, 2015
0f04bcf
Merge pull request #27 from Azure/release-0.8.13
markcowl Jan 8, 2015
b069bac
Merge pull request #28 from Azure/master
ogail Jan 9, 2015
fe45857
Update Azure PowerShell to depend on Hyak.Common/Azure.Common
Jan 9, 2015
dee3f41
Merge branch 'dev' of github.com:Azure/azure-powershell-pr into common
Jan 9, 2015
7df1dc3
FW: Adressing comments from ogail. Using constructor to set default
Jan 9, 2015
83c5d4b
Updated the namespace and path to Test.Framework and HttpRecorder
stankovski Jan 9, 2015
b12da02
Merge pull request #79 from Azure/master
markcowl Jan 9, 2015
1710cf5
FW: Adding cmdlets for creating and deleting AD application &
Jan 8, 2015
b2fa151
FW: Re-recording the Test-GetAzureADUserWithUPN.
Jan 8, 2015
5abe3be
FW: Adressing comments from ogail. Using constructor to set default
Jan 9, 2015
0f5b12b
Merge branch 'master' of https://github.com/perseusCode/azure-powershell
Jan 9, 2015
e39a0c2
Referencing latest Authorization MAML
Jan 10, 2015
5d3aa89
Merge pull request #5 from Azure/dev
jtlibingus Jan 12, 2015
0f2508b
Add 'type' parameter in cmdlet New-AzureDataFactoryEncryptValue for s…
jtlibingus Jan 12, 2015
2eb2c1d
Change verbosity and added continueOnError to allow all tests to run
stankovski Jan 12, 2015
dc268cb
Update to latest RBAC and regenerate MSI
stankovski Jan 12, 2015
b82bb8e
Revert "Change verbosity and added continueOnError to allow all tests…
stankovski Jan 12, 2015
cdc3303
Merge pull request #29 from ogail/common
ogail Jan 12, 2015
b8f16e5
Merge branch 'dev' of github.com:Azure/azure-powershell-pr into dev
Jan 12, 2015
18d4840
Merge pull request #83 from ogail/dev
ogail Jan 12, 2015
8db9886
FW: Adding Hyak.Common to Commands.Resources.proj as Jenkins complains
Jan 13, 2015
1b01ad7
Upgrade the Microsoft.DataTransfer.Gateway.Encryption nuget package t…
jtlibingus Jan 13, 2015
159c740
Merge branch 'dev' of https://github.com/azure/azure-powershell into …
jtlibingus Jan 13, 2015
fe9bb87
Merge pull request #82 from jtlibing/dev5
ogail Jan 13, 2015
2de6931
FW: Adding cmdlets for creating and deleting AD application &
Jan 8, 2015
e7eff28
FW: Re-recording the Test-GetAzureADUserWithUPN.
Jan 8, 2015
0d56c55
FW: Adressing comments from ogail. Using constructor to set default
Jan 9, 2015
7819550
FW: Adding cmdlets for creating and deleting AD application &
Jan 8, 2015
471f0a0
FW: Getting rid of build and test failures after merge.
Jan 13, 2015
4ea884d
Merge branch 'master' of https://github.com/perseusCode/azure-powershell
Jan 13, 2015
d366494
FW: Adding cmdlets for creating and deleting AD application &
Jan 8, 2015
72442fb
FW: Re-recording the Test-GetAzureADUserWithUPN.
Jan 8, 2015
84726a0
FW: Adressing comments from ogail. Using constructor to set default
Jan 9, 2015
ba61a3c
FW: Adding cmdlets for creating and deleting AD application &
Jan 8, 2015
8901c05
FW: Adressing comments from ogail. Using constructor to set default
Jan 9, 2015
7d1b492
FW: Adding cmdlets for creating and deleting AD application &
Jan 8, 2015
a6f4a4f
FW: Getting rid of build and test failures after merge.
Jan 13, 2015
af3f5e5
Merge branch 'master' of https://github.com/perseusCode/azure-powershell
Jan 15, 2015
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -15,6 +16,7 @@
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<NuGetPackageImportStamp>944f727b</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<SignAssembly>true</SignAssembly>
Expand Down Expand Up @@ -47,7 +49,7 @@
</Reference>
<Reference Include="Microsoft.Azure.Graph.RBAC">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.Azure.Graph.RBAC.1.4.0-preview\lib\net40\Microsoft.Azure.Graph.RBAC.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Graph.RBAC.1.5.0-preview\lib\net40\Microsoft.Azure.Graph.RBAC.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Management.Authorization">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -375,6 +377,12 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests\TestGetAllADUser.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests\TestNewADApplication.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests\TestNewADServicePrincipal.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.RoleAssignmentTests\RaByResource.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -422,6 +430,12 @@
<PropertyGroup>
<PostBuildEvent>xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E</PostBuildEvent>
</PropertyGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\xunit.runner.visualstudio.0.99.9-build1021\build\net20\xunit.runner.visualstudio.props'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,39 @@ public void TestGetADUserWithBadSearchString()
ResourcesController.NewInstance.RunPsTest("Test-GetADUserWithBadSearchString");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestNewADApplication()
{
ResourcesController.NewInstance.RunPsTest("Test-NewADApplication");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestNewADServicePrincipal()
{
const string scriptMethod = "Test-NewADServicePrincipal '{0}'";
Application application = null;
var controllerAdmin = ResourcesController.NewInstance;

controllerAdmin.RunPsTestWorkflow(
// scriptBuilder
() =>
{
application = CreateNewAdApp(controllerAdmin);
return new[] { string.Format(scriptMethod, application.AppId) };
},
// initialize
null,
// cleanup
() =>
{
DeleteAdApp(controllerAdmin, application);
},
TestUtilities.GetCallingClass(),
TestUtilities.GetCurrentMethodName());
}

private User CreateNewAdUser(ResourcesController controllerAdmin)
{
var name = TestUtilities.GenerateName("aduser");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,3 +413,37 @@ function Test-GetADUserWithBadSearchString
# Assert
Assert-Null($users)
}

<#
.SYNOPSIS
Tests Creating and deleting application.
#>
function Test-NewADApplication
{
# Setup
$displayName = getAssetName
$homePage = "http://" + $displayName + ".com"
$identifierUri = "http://" + $displayName

# Test
$application = New-AzureADApplication -DisplayName $displayName -HomePage $homePage -IdentifierUris $identifierUri

# Assert
Assert-NotNull $application
}

<#
.SYNOPSIS
Tests Creating and deleting service principal.
#>
function Test-NewADServicePrincipal
{
param([string]$applicationId)

# Test
$servicePrincipal = New-AzureADServicePrincipal -ApplicationId $applicationId

# Assert
Assert-NotNull $servicePrincipal
}

Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ function Get-ProviderLocation($provider)
}
}

<#
.SYNOPSIS
Gets valid application display name
#>
function Get-ApplicatonDisplayName
{
return getAssetName
}

<#
.SYNOPSIS
Cleans the created resource groups
Expand Down
Loading