@@ -164,19 +164,33 @@ jobs:
164164 throw "Invalid log_level '$logLevel'. Allowed values: Info, Verbose, Debug."
165165 }
166166
167- $skuName = '${{ secrets.APIM_SKU }}'
168- if ([string]::IsNullOrWhiteSpace($skuName)) { $skuName = '${{ inputs.sku }}' }
169- if ([string]::IsNullOrWhiteSpace($skuName)) { $skuName = 'StandardV2' }
170-
171167 ./tests/integration/all-resource-types/run-roundtrip-phase2-extract.ps1 `
172168 -SourceSubscriptionId '${{ secrets.AZURE_SUBSCRIPTION_ID }}' `
173169 -SourceResourceGroup '${{ env.SOURCE_RG }}' `
174170 -SourceApimName '${{ env.SOURCE_APIM }}' `
171+ -LogLevel $logLevel `
172+ -ExtractOutputDir './extracted-artifacts'
173+
174+ - name : Run Round-Trip Phase 3 (Validate Extract)
175+ if : success()
176+ shell : pwsh
177+ run : |
178+ $logLevel = '${{ inputs.log_level }}'
179+ if ([string]::IsNullOrWhiteSpace($logLevel)) { $logLevel = 'Verbose' }
180+ if ($logLevel -notin @('Info', 'Verbose', 'Debug')) {
181+ throw "Invalid log_level '$logLevel'. Allowed values: Info, Verbose, Debug."
182+ }
183+
184+ $skuName = '${{ secrets.APIM_SKU }}'
185+ if ([string]::IsNullOrWhiteSpace($skuName)) { $skuName = '${{ inputs.sku }}' }
186+ if ([string]::IsNullOrWhiteSpace($skuName)) { $skuName = 'StandardV2' }
187+
188+ ./tests/integration/all-resource-types/run-roundtrip-phase3-validate-extract.ps1 `
175189 -SkuName $skuName `
176190 -LogLevel $logLevel `
177191 -ExtractOutputDir './extracted-artifacts'
178192
179- - name : Run Round-Trip Phase 3 (Publish)
193+ - name : Run Round-Trip Phase 4 (Publish)
180194 if : success()
181195 shell : pwsh
182196 env :
@@ -189,14 +203,14 @@ jobs:
189203 throw "Invalid log_level '$logLevel'. Allowed values: Info, Verbose, Debug."
190204 }
191205
192- ./tests/integration/all-resource-types/run-roundtrip-phase3 -publish.ps1 `
206+ ./tests/integration/all-resource-types/run-roundtrip-phase4 -publish.ps1 `
193207 -TargetSubscriptionId '${{ secrets.AZURE_SUBSCRIPTION_ID }}' `
194208 -TargetResourceGroup '${{ env.TARGET_RG }}' `
195209 -TargetApimName '${{ env.TARGET_APIM }}' `
196210 -LogLevel $logLevel `
197211 -ExtractOutputDir './extracted-artifacts'
198212
199- - name : Run Round-Trip Phase 4 (Compare)
213+ - name : Run Round-Trip Phase 5 (Compare)
200214 if : success()
201215 shell : pwsh
202216 run : |
@@ -206,7 +220,7 @@ jobs:
206220 throw "Invalid log_level '$logLevel'. Allowed values: Info, Verbose, Debug."
207221 }
208222
209- ./tests/integration/all-resource-types/run-roundtrip-phase4 -compare.ps1 `
223+ ./tests/integration/all-resource-types/run-roundtrip-phase5 -compare.ps1 `
210224 -SourceSubscriptionId '${{ secrets.AZURE_SUBSCRIPTION_ID }}' `
211225 -SourceResourceGroup '${{ env.SOURCE_RG }}' `
212226 -SourceApimName '${{ env.SOURCE_APIM }}' `
@@ -223,11 +237,11 @@ jobs:
223237 path : ./extracted-artifacts/
224238 if-no-files-found : ignore
225239
226- - name : Run Round-Trip Phase 5 (Teardown)
240+ - name : Run Round-Trip Phase 6 (Teardown)
227241 if : always()
228242 shell : pwsh
229243 run : |
230- ./tests/integration/all-resource-types/run-roundtrip-phase5 -teardown.ps1 `
244+ ./tests/integration/all-resource-types/run-roundtrip-phase6 -teardown.ps1 `
231245 -SourceResourceGroup '${{ env.SOURCE_RG }}' `
232246 -TargetResourceGroup '${{ env.TARGET_RG }}' `
233247 -Location '${{ inputs.location }}' `
0 commit comments