From b4aa97250e2d0c3abfcdaf4e523feb348cff6e5e Mon Sep 17 00:00:00 2001 From: Kristoff Kiefer Date: Mon, 20 Nov 2023 12:40:50 +0100 Subject: [PATCH] PAth adjusted so that support files are found --- testdata/00-Scripts/Initialize-Testset.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testdata/00-Scripts/Initialize-Testset.ps1 b/testdata/00-Scripts/Initialize-Testset.ps1 index d0f37b199..9c571a9d9 100644 --- a/testdata/00-Scripts/Initialize-Testset.ps1 +++ b/testdata/00-Scripts/Initialize-Testset.ps1 @@ -45,13 +45,13 @@ try kubectl create configmap test-data-config-map --from-file $DBScriptPath | Out-Null - $jobName = (kubectl apply -f apply_to_cluster.yaml -o 'template={{.metadata.name}}') + $jobName = (kubectl apply -f $PSScriptRoot\apply_to_cluster.yaml -o 'template={{.metadata.name}}') try { - if (kubectl wait job $jobName --for 'condition=complete' --timeout=60s) + if (kubectl wait job $jobName --for 'condition=complete' --timeout=120s) { kubectl logs --all-containers --prefix --selector "job-name=$jobName" --tail=-1 | Write-Error - throw "Job did not complete in 30 seconds" + throw "Job did not complete in 120 seconds" } kubectl logs --all-containers --prefix --selector job-name=$jobName | Out-Host }