File tree Expand file tree Collapse file tree
tests/integration/all-resource-types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 .\run-roundtrip-test.ps1 -SourceResourceGroup rg-src -TargetResourceGroup rg-tgt -PublisherEmail admin@contoso.com
3030
3131 # Keep resources after test for debugging
32+ .\run-roundtrip-test.ps1 -PublisherEmail admin@contoso.com -SkipTeardown
33+
34+ # Hard-delete APIM instances on teardown (purge from soft-delete)
3235 .\run-roundtrip-test.ps1 -PublisherEmail admin@contoso.com -HardDelete
3336#>
3437
5558
5659 [string ]$ExtractOutputDir = " $PSScriptRoot /extracted-artifacts" ,
5760
61+ [switch ]$SkipTeardown ,
62+
5863 [switch ]$HardDelete
5964)
6065
@@ -131,6 +136,10 @@ function Get-ApiopsLogLevel([string]$ScriptLogLevel) {
131136}
132137
133138function Invoke-Teardown {
139+ if ($SkipTeardown ) {
140+ Write-Host " ⏭️ Teardown skipped (-SkipTeardown)"
141+ return
142+ }
134143 Write-Phase " 🧹" " TEARDOWN — Deleting resource groups"
135144
136145 # Capture APIM names before deletion for potential hard-delete
You can’t perform that action at this time.
0 commit comments