Skip to content

Commit 372acff

Browse files
Solved merge failures
2 parents 8231c97 + 0cc5714 commit 372acff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2004
-107
lines changed

src/Network/Network.Test/ScenarioTests/CortexTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void TestBgpSettingsUpdateVpnGateway()
109109

110110
[Fact]
111111
[Trait(Category.AcceptanceType, Category.CheckIn)]
112-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
112+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
113113
public void TestCortexVirtualHubCRUD()
114114
{
115115
TestRunner.RunTestScript("Test-CortexVirtualHubCRUD");

src/Network/Network.Test/ScenarioTests/NetworkVirtualApplianceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ public NetworkVirtualApplianceTests(Xunit.Abstractions.ITestOutputHelper output)
2727

2828
[Fact]
2929
[Trait(Category.AcceptanceType, Category.CheckIn)]
30-
[Trait(Category.Owner, NrpTeamAlias.nvaengdev)]
30+
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
3131
public void TestNetworkVirtualApplianceCRUD()
3232
{
3333
TestRunner.RunTestScript(string.Format("Test-NetworkVirtualApplianceCRUD"));
3434
}
3535

3636
[Fact(Skip = "A bug is being fixed by Nfv-Rp team")]
3737
[Trait(Category.AcceptanceType, Category.CheckIn)]
38-
[Trait(Category.Owner, NrpTeamAlias.nvaengdev)]
38+
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
3939
public void TestVirtualApplianceSiteCRUD()
4040
{
4141
TestRunner.RunTestScript("Test-VirtualApplianceSiteCRUD");

src/Network/Network.Test/ScenarioTests/RouteServerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ public RouteServerTests(Xunit.Abstractions.ITestOutputHelper output)
1313

1414
[Fact]
1515
[Trait(Category.AcceptanceType, Category.CheckIn)]
16-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
16+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
1717
public void TestRouteServerCRUD()
1818
{
1919
TestRunner.RunTestScript(string.Format("Test-RouteServerCRUD"));
2020
}
2121

2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]
24-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
24+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
2525
public void TestRouteServerPeerCRUD()
2626
{
2727
TestRunner.RunTestScript(string.Format("Test-RouteServerPeerCRUD"));
2828
}
2929

3030
[Fact]
3131
[Trait(Category.AcceptanceType, Category.CheckIn)]
32-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
32+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
3333
public void TestRouteServerPeerRoutes()
3434
{
3535
TestRunner.RunTestScript(string.Format("Test-RouteServerPeerRoutes"));

src/Network/Network.Test/ScenarioTests/VirtualHubRouteTableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public VirtualHubRouteTableTests(ITestOutputHelper output)
2929

3030
[Fact]
3131
[Trait(Category.AcceptanceType, Category.CheckIn)]
32-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
32+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
3333
public void TestVirtualHubRouteTableCRUD()
3434
{
3535
TestRunner.RunTestScript("Test-VirtualHubRouteTableCRUD");

src/Network/Network.Test/ScenarioTests/VirtualRouterTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ public VirtualRouterTests(Xunit.Abstractions.ITestOutputHelper output)
2727

2828
[Fact]
2929
[Trait(Category.AcceptanceType, Category.CheckIn)]
30-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
30+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
3131
public void TestVirtualRouterCRUDMinimalParameters()
3232
{
3333
TestRunner.RunTestScript(string.Format("Test-VirtualRouterCRUD"));
3434
}
3535

3636
[Fact]
3737
[Trait(Category.AcceptanceType, Category.CheckIn)]
38-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
38+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
3939
public void TestVirtualRouterPeerCRUD()
4040
{
4141
TestRunner.RunTestScript(string.Format("Test-VirtualRouterPeerCRUD"));
4242
}
4343

4444
[Fact]
4545
[Trait(Category.AcceptanceType, Category.CheckIn)]
46-
[Trait(Category.Owner, NrpTeamAlias.exrdev)]
46+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
4747
public void TestVirtualRouterPeerRoutes()
4848
{
4949
TestRunner.RunTestScript(string.Format("Test-VirtualRouterPeerRoutes"));
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
Invoke-LiveTestScenario -Name "Test Application" -Description "Test the process of create an application." -NoResourceGroup -ScenarioScript `
2+
{
3+
try {
4+
$today = (Get-Date).tostring('yyyy-MM-dd')
5+
$appName1 = $today + 'testapp' + (New-LiveTestRandomName)
6+
$replyUrl1 = 'https://' + $appName1 + '-reply.com'
7+
$homePage1 = 'https://' + $appName1 + '-home.com'
8+
9+
$appName2 = $today + 'testapp' + (New-LiveTestRandomName)
10+
$replyUrl2 = 'https://' + $appName2 + '-reply.com'
11+
$homePage2 = 'https://' + $appName2 + '-home.com'
12+
13+
$spName1 = $today + 'testsp' + (New-LiveTestRandomName)
14+
$spName2 = $today + 'testsp' + (New-LiveTestRandomName)
15+
16+
$app1 = New-AzADApplication -DisplayName $appName1 -ReplyUrls $replyUrl1 -HomePage $homePage1 -AvailableToOtherTenants $true -StartDate (Get-Date)
17+
$app1 = Get-AzADApplication -DisplayName $appName1
18+
Assert-NotNullOrEmpty $app1
19+
Assert-AreEqual $replyUrl1 $app1.Web.RedirectUri
20+
Assert-AreEqual $homepage1 $app1.Web.HomePageUrl
21+
Assert-AreEqual 'AzureADMultipleOrgs' $app1.SignInAudience
22+
23+
Assert-AreEqual $app1.Id (Get-AzADApplication -ObjectId $app1.id -Select Id).Id
24+
Assert-AreEqual $app1.Id (Get-AzADApplication -ApplicationId $app1.AppId -Select Id).Id
25+
26+
$app1Update = Update-AzADApplication -ObjectId $app1.Id -ReplyUrl $replyUrl2 -HomePage $homepage2 -AvailableToOtherTenants $false
27+
$app1Update = Get-AzADApplication -DisplayName $appName1
28+
29+
Assert-AreEqual $replyUrl2 $app1Update.Web.RedirectUri
30+
Assert-AreEqual $homepage2 $app1Update.Web.HomePageUrl
31+
Assert-AreEqual 'AzureADMyOrg' $app1Update.SignInAudience
32+
Assert-NotNullOrEmpty (Get-AzADAppCredential -ObjectId $app1.Id)
33+
$pw = New-AzADAppCredential -ObjectId $app1.Id -StartDate (get-date)
34+
35+
$certFile = Join-Path $PSScriptRoot 'msgraphtest2.cer'
36+
$content = get-content $certFile -AsByteStream
37+
$certvalue = [System.Convert]::ToBase64String($content)
38+
$cert = New-AzADAppCredential -ObjectId $app1.Id -CertValue $certvalue
39+
40+
Remove-AzADAppCredential -ObjectId $app1.Id -KeyId $pw.KeyId
41+
42+
$sp1 = New-AzADServicePrincipal -ApplicationId $app1.AppId
43+
$sp1 = Get-AzADServicePrincipal -ApplicationId $app1.AppId
44+
$sp2 = New-AzADServicePrincipal -DisplayName $spName2
45+
$sp2 = Get-AzADServicePrincipal -DisplayName $spName2
46+
$app2 = Get-AzADApplication -DisplayName $spName2
47+
} finally {
48+
if ($sp1) {
49+
Remove-AzADServicePrincipal -ServicePrincipalName $sp1.ServicePrincipalName[0]
50+
}
51+
if ($sp2) {
52+
Remove-AzADServicePrincipal -ObjectId $sp2.Id
53+
}
54+
if ($app1) {
55+
Remove-AzADApplication -DisplayName $appName1
56+
}
57+
if ($app2) {
58+
Remove-AzADApplication -DisplayName $spName2
59+
}
60+
}
61+
}
62+
63+
Invoke-LiveTestScenario -Name "Test Group Member" -Description "Test the process of create groups and members." -NoResourceGroup -ScenarioScript `
64+
{
65+
try {
66+
$today = (Get-Date).tostring('yyyy-MM-dd')
67+
$groupName1 = $today + 'testgroup' + (New-LiveTestRandomName)
68+
$groupName2 = $today + 'testgroup' + (New-LiveTestRandomName)
69+
$userName = $today + 'testuser' + (New-LiveTestRandomName)
70+
71+
$groupMailNickName1 = New-LiveTestRandomName
72+
$groupMailNickName2 = New-LiveTestRandomName
73+
$userMailNickName = New-LiveTestRandomName
74+
$userPrincipalName = $userMailNickName + 'microsoft.com#EXT#@AzureSDKTeam.onmicrosoft.com'
75+
76+
$group1 = New-AzADGroup -DisplayName $groupName1 -MailNickname $groupMailNickName1
77+
$group1 = Get-AzADGroup -DisplayName $groupName1
78+
$group2 = New-AzADGroup -DisplayName $groupName2 -MailNickname $groupMailNickName2
79+
$group2 = Get-AzADGroup -DisplayName $groupName2
80+
81+
$password = 'A' + (New-LiveTestRandomName)
82+
$password = ConvertTo-SecureString -AsPlainText -Force $password
83+
$user = New-AzADUser -DisplayName $userName -Password $password -AccountEnabled $true -MailNickname $userMailNickname -UserPrincipalName $userPrincipalName
84+
$user = Get-AzADUser -DisplayName $userName
85+
86+
Add-AzADGroupMember -TargetGroupObjectId $group1.Id -MemberObjectId $group2.Id, $user.Id
87+
88+
#TODO: test type of group member and properties, for example, user principal name from user
89+
$members = Get-AzADGroupMember -GroupObjectId $group1.Id
90+
foreach ($member in $members) {
91+
switch ($member.OdataType) {
92+
'#microsoft.graph.user' {
93+
Assert-AreEqual $user.Id $member.Id
94+
Remove-AzADGroupMember -GroupObjectId $group1.Id -MemberObjectId $user.Id
95+
}
96+
'#microsoft.graph.group' {
97+
Assert-AreEqual $group2.Id $member.Id
98+
Remove-AzADGroupMember -GroupObjectId $group1.Id -MemberObjectId $group2.Id
99+
}
100+
}
101+
}
102+
} finally {
103+
if ($user) {
104+
Remove-AzADUser -ObjectId $user.Id
105+
}
106+
if ($group2) {
107+
Remove-AzADGroup -ObjectId $group2.Id
108+
}
109+
if ($group1) {
110+
Remove-AzADGroup -ObjectId $group1.Id
111+
}
112+
}
113+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIEGTCCAwGgAwIBAgIQJGmcQ90Ht55ojXCPEWWLQDANBgkqhkiG9w0BAQsFADBN
3+
MUswSQYDVQQDHkIATQBTAC0ATwByAGcAYQBuAGkAegBhAHQAaQBvAG4ALQBQADIA
4+
UAAtAEEAYwBjAGUAcwBzACAAWwAyADAAMgAxAF0wHhcNMjEwOTI3MDQxNTQ1WhcN
5+
MjEwOTI4MDQyMDQ1WjBlMTQwMgYKCZImiZPyLGQBGRYkNzJmOTg4YmYtODZmMS00
6+
MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3MS0wKwYDVQQDDCRmZWJhNWM1Zi00MDE3LTRh
7+
ODQtYjhkNS1hY2FkOWEyMjVkODQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
8+
AoIBAQDh7ksk8f/SxuyXZkrxHOBn4fF5QSy10khH4YcYlo3BXZsIprWQF1zduqRZ
9+
MWGOHRxTux2WaL2AATZAdOcd5hqznRM7qpvLwFOGZvp2pxJ1zIOyuyOCFYy9sq2i
10+
I0r+I19M7zoc6Hxws5df2894ZsScQVC2+z3nen9b0EURF9CZ4PAraGeJwAsFG45S
11+
kUAw+44JMFw1v87CUGQBzQaOKq/z/xY3OrPpf2eAtcramRctZymZwlqMB/8VYQkJ
12+
LGaKLYiOBEtgdaPSQYA/VZ5d6huTGirvvI/85ckep0t+oqCcV6U+A/uHW0o7KS5L
13+
z15cDkQtrq5D513w5UuP6BY/gBkDAgMBAAGjgdwwgdkwDgYDVR0PAQH/BAQDAgWg
14+
MIGUBgNVHREEgYwwgYmCD0RFU0tUT1AtQTlBMVVEMoIPREVTS1RPUC1BOUExVUQy
15+
giUyNDA0OmY4MDE6YzAwMjo1MDo4NWE2OjY1Y2Q6MWVkOTpjMzcygiUyNDA0OmY4
16+
MDE6YzAwMjo1MDo3OWUxOmM2MGU6NDIxYzozMjc1ggkxMC4xNy45LjaCDDE3Mi4y
17+
MC4yNDAuMTATBgNVHSUEDDAKBggrBgEFBQcDATAbBgkrBgEEAYI3FQoEDjAMMAoG
18+
CCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4IBAQAfKBnGUmj0DfFCRXlnChE3UrJ3
19+
Pv/Jj12GOKWWWokowY67gvvoAf1BWpyhXLNC8f7M3TMj3LDkfSgQr2zZx45TvDm4
20+
6hmWSVViYB4y5iYAZs6ZU8qHd1LsuvtKehRWjlokPwzoncZMY8G9N7FFs6G+X1f0
21+
QyMjQS6pR1B6kfvSXfc+BfI3PWKliYyiyLIkN8FsRv1leU4XFHPQxW+mR11QuUja
22+
gar3muui3dsRAMOYslaL+bRONWvjPuPLbCFCSExl65/CZo9TjtUUTPnksB2zQhOl
23+
jt9bt64s4pJoGyGDFeu1g4PJDzR2E1oqRTs2KVAptBvU5RHgky3Y1nHRdfhL
24+
-----END CERTIFICATE-----

src/SignalR/SignalR/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Breaking change:
22+
- Removed `HostNamePrefix` property of output type `PSSignalRResource` of following cmdlets:
23+
- `Get-AzSignalR`
24+
- `New-AzSignalR`
25+
- `Update-AzSignalR`
2126

2227
## Version 1.5.0
2328
* Updated to API version 2022-08-01-preview

src/SignalR/SignalR/Cmdlets/GetAzureRmSignalR.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@
1818
using Microsoft.Azure.Commands.SignalR.Models;
1919
using Microsoft.Azure.Commands.SignalR.Properties;
2020
using Microsoft.Azure.Management.SignalR;
21-
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2221

2322
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
2423
{
2524
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SignalR", DefaultParameterSetName = ListSignalRServiceParameterSet)]
2625
[OutputType(typeof(PSSignalRResource))]
27-
[CmdletOutputBreakingChange(typeof(PSSignalRResource), DeprecatedOutputProperties = new String[] { nameof(PSSignalRResource.HostNamePrefix) })]
2826
public class GetAzureRmSignalR : SignalRCmdletBase, IWithResourceId
2927
{
3028
[Parameter(

src/SignalR/SignalR/Cmdlets/NewAzureRmSignalR.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Generic;
1716
using System.Management.Automation;
1817
using Microsoft.Azure.Commands.Common.Strategies;
@@ -21,14 +20,12 @@
2120
using Microsoft.Azure.Management.Internal.Resources;
2221
using Microsoft.Azure.Management.SignalR;
2322
using Microsoft.Azure.Management.SignalR.Models;
24-
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2523
using Newtonsoft.Json;
2624

2725
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
2826
{
2927
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SignalR", SupportsShouldProcess = true)]
3028
[OutputType(typeof(PSSignalRResource))]
31-
[CmdletOutputBreakingChange(typeof(PSSignalRResource), DeprecatedOutputProperties = new String[] { nameof(PSSignalRResource.HostNamePrefix) })]
3229
public sealed class NewAzureRmSignalR : SignalRCmdletBase
3330
{
3431
private const string DefaultSku = "Standard_S1";

0 commit comments

Comments
 (0)