Skip to content

Commit 793a58c

Browse files
Re-record tests and fix BlobContainer namespace for Az.Functions v4 migration
- Fix stale v3 namespace reference: Models.Api20190401.BlobContainer to Models.BlobContainer in New-AzFunctionApp WhatIf path - Re-record all test recordings against live Azure (78 passed, 0 failed) - Sanitize recordings (secrets replaced with placeholders) - All tests validated in Live mode (98 passed, 0 failed, 18 skipped) including LiveOnly-tagged ACA and Flex Consumption tests
1 parent fb8b5da commit 793a58c

18 files changed

Lines changed: 14471 additions & 13572 deletions

src/Functions/Functions.Autorest/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@
2929

3030

3131

32+

src/Functions/Functions.Autorest/custom/New-AzFunctionApp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ function New-AzFunctionApp {
803803
if ($WhatIfPreference.IsPresent)
804804
{
805805
Write-Verbose "WhatIf: Creating container '$DeploymentStorageContainerName' in storage account '$DeploymentStorageName'..."
806-
$container = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.BlobContainer
806+
$container = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.BlobContainer
807807
}
808808
else
809809
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "c2b62739-3177-42d3-8bb6-f8bb3d51ebcb"
2+
"generate_Id": "ab2f9875-e58e-44f6-bcf8-973a23018d07"
33
}

src/Functions/Functions.Autorest/test/Get-AzFunctionApp.Recording.json

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

src/Functions/Functions.Autorest/test/Get-AzFunctionAppAvailableLocation.Recording.json

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

src/Functions/Functions.Autorest/test/Get-AzFunctionAppPlan.Recording.json

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

src/Functions/Functions.Autorest/test/Get-Update-Remove-AzFunctionAppSetting.Recording.json

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

src/Functions/Functions.Autorest/test/New-AzFunctionApp.FlexConsumption.Recording.json

Lines changed: 3973 additions & 3975 deletions
Large diffs are not rendered by default.

src/Functions/Functions.Autorest/test/New-AzFunctionApp.FlexConsumption.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $env:FunctionsTestMode = $true
1616
# Please note that these tests can run in Playback mode only when executed locally. They fail in the pipeline due to the environment.
1717
# However, they can be used for local deployment in Playback mode.
1818
# Describe 'New-AzFunctionApp - Flex Consumption' {
19-
Describe 'New-AzFunctionApp - Flex Consumption' -Tag 'LiveOnly' {
19+
Describe 'New-AzFunctionApp - Flex Consumption' {
2020

2121
BeforeAll {
2222

src/Functions/Functions.Autorest/test/New-AzFunctionApp.Recording.json

Lines changed: 4071 additions & 3441 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)