Skip to content

Commit c62a9ff

Browse files
commit
1 parent cda7c40 commit c62a9ff

4 files changed

Lines changed: 11 additions & 514 deletions

File tree

infra/scripts/post_deployment.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ if (-not $ApiReady) {
371371
default { "application/octet-stream" }
372372
}
373373

374+
$multipartContent = $null
375+
$response = $null
376+
374377
try {
375378
$multipartContent = New-Object System.Net.Http.MultipartFormDataContent
376379
$jsonContent = [System.Net.Http.StringContent]::new($dataPayload, [System.Text.Encoding]::UTF8, "application/json")
@@ -395,6 +398,13 @@ if (-not $ApiReady) {
395398
} catch {
396399
Write-Host " - Failed to upload '$fileName'. Error: $_"
397400
$uploadSuccess = $false
401+
} finally {
402+
if ($null -ne $response) {
403+
$response.Dispose()
404+
}
405+
if ($null -ne $multipartContent) {
406+
$multipartContent.Dispose()
407+
}
398408
}
399409
}
400410
$httpClient.Dispose()

infra/scripts/post_deployment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ else
299299
echo "Step 4: Process sample file bundles"
300300
echo "============================================================"
301301

302-
SAMPLES_DIR="$(realpath "$SCRIPT_DIR/../../src/ContentProcessorAPI/samples")"
302+
SAMPLES_DIR="$(cd "$SCRIPT_DIR/../../src/ContentProcessorAPI/samples" && pwd -P)"
303303
CLAIM_PROCESSOR_URL="$API_BASE_URL/claimprocessor/claims"
304304

305305
for BUNDLE in claim_date_of_loss claim_hail; do

tests/infra-scripts/test_configure_auth_preflight.ps1

Lines changed: 0 additions & 257 deletions
This file was deleted.

0 commit comments

Comments
 (0)