Skip to content

Commit 267cd54

Browse files
elenagermandavidmogar
authored andcommitted
test(RELEASE-2328): verify pyxis image IDs and RPM manifests
assert pyxis image IDs and RPM manifests in rh-push-to-external-registry Signed-off-by: Elena German <elgerman@redhat.com>
1 parent 065d0a0 commit 267cd54

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • integration-tests/rh-push-to-external-registry

integration-tests/rh-push-to-external-registry/test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ verify_release_contents() {
7070
echo "🔴 imageId: ${result_image_id} did not match expected imageId: ${imageId}"
7171
failures=$((failures+1))
7272
fi
73+
74+
# Verify RPM manifest was pushed to Pyxis for this image (validates push-rpm-data-to-pyxis ran)
75+
result_rpm_json="$(curl --cert /tmp/cert --key /tmp/key \
76+
"${pyxis_url}v1/images/id/${imageId}/rpm-manifest")"
77+
rpm_manifest_id=$(jq -r '._id // ""' <<< "${result_rpm_json}")
78+
if [ -n "${rpm_manifest_id}" ]; then
79+
echo "✅️ Found RPM manifest for imageId: ${imageId} in pyxis"
80+
else
81+
echo "🔴 No RPM manifest found for imageId: ${imageId}"
82+
failures=$((failures+1))
83+
fi
84+
7385
imageIdsFound=true
7486
done
7587

0 commit comments

Comments
 (0)