Skip to content

Commit 4ab1da6

Browse files
Brandon411Brandon Neff
andauthored
[Az.EventGrid] Add partner features from 2022-06-15 API (Azure#19729)
* Add Get-AzEventGridVerifiedPartner * Add initial partner cmdlets * Add partner registration cmdlets * Add partner topic cmdlets * Add partner namespace cmdlets * Add more cmdlets * Add channel cmdlets * Partial implementation of new event subscription cmdlets * Add nested event subscription cmdlets * Update PowerShell module version * Partial implementation of Partner tests * Remove nested even sub Cmdlets from this branch * Fix issues in cmdlets * Add partner tests * Update test recordings * Add newly generated help files * Do not manually update module version * Fix documentation and disable test that fails in pipeline * Update partner tests so they run in playback mode * Remove prompt from examples * Fix documentation static analysis issues * mend Co-authored-by: Brandon Neff <[email protected]>
1 parent b3d7d4f commit 4ab1da6

File tree

131 files changed

+28533
-9746
lines changed

Some content is hidden

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

131 files changed

+28533
-9746
lines changed

src/EventGrid/EventGrid.Test/EventGrid.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.EventGrid" Version="7.0.0" />
14+
<PackageReference Include="Microsoft.Azure.Management.EventGrid" Version="9.0.0" />
1515
<PackageReference Include="Microsoft.Azure.Management.EventHub" Version="5.0.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.Relay" Version="2.0.2" />
1717
<PackageReference Include="Microsoft.Azure.Management.ServiceBus" Version="5.0.0" />

src/EventGrid/EventGrid.Test/ScenarioTests/Common.ps1

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ function Get-EventSubscriptionWebhookBaseEndpointWithCloudEvent
105105
return "https://eventgridclitestapp.azurewebsites.net/api/cloudeventfunc"
106106
}
107107

108+
<#
109+
.SYNOPSIS
110+
Get EventSubscription Storage QueueFunction Endpoint
111+
#>
112+
function Get-EventSubscriptionStorageQueueEndpoint
113+
{
114+
return "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/DevExpRg/providers/Microsoft.Storage/storageAccounts/devexpstg/queueServices/default/queues/stogqueuedestination"
115+
}
116+
108117
<#
109118
.SYNOPSIS
110119
Get location
@@ -431,3 +440,48 @@ function Get-DomainTopicName
431440
{
432441
return "PSTestDomainTopic-" + (getAssetName)
433442
}
443+
444+
<#
445+
.SYNOPSIS
446+
Get partner registration name
447+
#>
448+
function Get-PartnerRegistrationName
449+
{
450+
return "PSTestPartnerRegistration-" + (getAssetName)
451+
}
452+
453+
<#
454+
.SYNOPSIS
455+
Get partner namespace name
456+
#>
457+
function Get-PartnerNamespaceName
458+
{
459+
return "PSTestPartnerNamespace-" + (getAssetName)
460+
}
461+
462+
<#
463+
.SYNOPSIS
464+
Get channel name
465+
#>
466+
function Get-ChannelName
467+
{
468+
return "PSTestChannel-" + (getAssetName)
469+
}
470+
471+
<#
472+
.SYNOPSIS
473+
Get partner topic name
474+
#>
475+
function Get-PartnerTopicName
476+
{
477+
return "PSTestPartnerTopic-" + (getAssetName)
478+
}
479+
480+
<#
481+
.SYNOPSIS
482+
Get partner topic source
483+
#>
484+
function Get-PartnerTopicSource
485+
{
486+
return "PSTestPartnerTopicSource" + (getAssetName)
487+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
16+
using Xunit;
17+
using Xunit.Abstractions;
18+
19+
namespace Microsoft.Azure.Commands.EventGrid.Test.ScenarioTests
20+
{
21+
public class PartnerTests : EventGridTestRunner
22+
{
23+
public PartnerTests(ITestOutputHelper output) : base(output)
24+
{
25+
}
26+
27+
[Fact]
28+
[Trait(Category.AcceptanceType, Category.CheckIn)]
29+
public void EventGrid_PartnersCRUD()
30+
{
31+
TestRunner.RunTestScript("PartnerTests");
32+
}
33+
}
34+
}

src/EventGrid/EventGrid.Test/ScenarioTests/PartnerTests.ps1

Lines changed: 224 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)