From ec7bc309099345ea2deaae138466f438ed38506c Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Wed, 11 Nov 2026 16:16:41 +0000 Subject: [PATCH] Give the pipeline developer examples the test resource key The integration step runs the pipeline developer examples' ExampleTests again without the key the unit test run passes, and the cloud engine example's test now fails when it has no key rather than skipping, so every full build failed there. The step now passes -DTestResourceKey as the example build below it does. --- ci/run-integration-tests.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/run-integration-tests.ps1 b/ci/run-integration-tests.ps1 index 99621cbd..74b35471 100644 --- a/ci/run-integration-tests.ps1 +++ b/ci/run-integration-tests.ps1 @@ -33,7 +33,10 @@ $failed = @() Write-Host "::group::Pipeline developer examples" Push-Location "$RepoName/pipeline" try { - mvn test @MavenOptions -DfailIfNoTests=false "-Dsurefire.failIfNoSpecifiedTests=false" -Dtest=ExampleTests + # The cloud engine example calls the live cloud service, so it is given + # the test resource key, as the unit test run gives it. + mvn test @MavenOptions -DfailIfNoTests=false "-Dsurefire.failIfNoSpecifiedTests=false" -Dtest=ExampleTests ` + "-DTestResourceKey=$TestResourceKey" if ($LASTEXITCODE -ne 0) { $failed += 'pipeline developer examples' } } finally { Pop-Location