Skip to content

Commit

Permalink
Add EventGrid Cloud Event templates for .NET to verified list (#3916)
Browse files Browse the repository at this point in the history
* update backup templates

remove setting

* attempt 1

* clean up
  • Loading branch information
hossam-nasr authored Nov 29, 2023
1 parent 1418032 commit d080d3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/templates/dotnet/getDotnetVerifiedTemplateIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export function getDotnetVerifiedTemplateIds(version: string): RegExp[] {
'ServiceBusTopicTrigger',
'ServiceBusQueueTrigger',
'CosmosDBTrigger',
'EventGridTrigger'
'EventGridTrigger',
'EventGridCloudEventTrigger',
];

if (version === FuncVersion.v1) {
Expand Down
7 changes: 7 additions & 0 deletions test/createFunction/createFunction.CSharp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ function addSuite(version: FuncVersion, targetFramework: string, source: Templat
'TestCompany.TestFunction'
]
},
{
functionName: 'EventGridCloudEventTrigger',
inputs: [
'TestCompany.TestFunction'
],
skip: isIsolated,
},
{
functionName: 'Azure Event Hub trigger',
inputs: [
Expand Down
4 changes: 2 additions & 2 deletions test/templateCount.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function addSuite(source: TemplateSource | undefined): void {
{ language: ProjectLanguage.JavaScript, version: FuncVersion.v4, expectedCount: 16 },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v1, expectedCount: 12 },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v2, expectedCount: 11 },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v3, expectedCount: 12, projectTemplateKey: 'netcoreapp3.1' },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v4, expectedCount: 12, projectTemplateKey: 'net6.0' },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v3, expectedCount: 13, projectTemplateKey: 'netcoreapp3.1' },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v4, expectedCount: 13, projectTemplateKey: 'net6.0' },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v4, expectedCount: 10, projectTemplateKey: 'net6.0-isolated' },
{ language: ProjectLanguage.CSharp, version: FuncVersion.v4, expectedCount: 10, projectTemplateKey: 'net7.0-isolated' },
{ language: ProjectLanguage.Python, version: FuncVersion.v2, expectedCount: 12 },
Expand Down

0 comments on commit d080d3b

Please sign in to comment.