From ec829f3c931ecf9fe9c62deca23d20f9f6fde5bd Mon Sep 17 00:00:00 2001 From: Patrick Creech Date: Mon, 27 Nov 2023 12:20:55 -0500 Subject: [PATCH] Pulp switched to exporting ".tar"s --- bats/fb-katello-content.bats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bats/fb-katello-content.bats b/bats/fb-katello-content.bats index 7efea6339..9e9e14fe3 100755 --- a/bats/fb-katello-content.bats +++ b/bats/fb-katello-content.bats @@ -128,7 +128,7 @@ setup() { --content-view="${CONTENT_VIEW}" --version="1.0" export_version_id=$(hammer --output csv --no-headers content-view version show --version="1.0" --content-view="${CONTENT_VIEW}" --organization="${ORGANIZATION}" \ --fields=id) - actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path")"/*.gz | cut -f 1) + actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path")"/*.tar | cut -f 1) [ $actual_size -ge 40 ] } @@ -186,7 +186,7 @@ setup() { hammer content-export complete library --organization="${ORGANIZATION}" export_version_id=$(hammer --output csv --no-headers content-view version list --content-view="${LIBRARY}" --organization="${ORGANIZATION}" \ --fields=id --per-page=1 --order="version DESC") - actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path")"/*.gz | cut -f 1) + actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path")"/*.tar | cut -f 1) [ $actual_size -ge 40 ] } @@ -243,7 +243,7 @@ setup() { hammer content-export incremental version --organization="${ORGANIZATION}" \ --content-view="${CONTENT_VIEW}" --id="$export_version_id" - actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path" --per-page=1)"/*.gz | cut -f 1) + actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path" --per-page=1)"/*.tar | cut -f 1) # actual size of export should be less than 14K [ $actual_size -le 87 ] } @@ -256,7 +256,7 @@ setup() { export_version_id=$(hammer --output csv --no-headers content-view version list --content-view="${LIBRARY}" --organization="${ORGANIZATION}" \ --fields=id --per-page=1 --order="version DESC") - actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path" --per-page=1)"/*.gz | cut -f 1) + actual_size=$(du -k "$(hammer --output csv --no-headers content-export list --content-view-version-id=$export_version_id --fields="path" --per-page=1)"/*.tar | cut -f 1) [ $actual_size -le 174 ] }