diff --git a/.rhcicd/pr_check.sh b/.rhcicd/pr_check.sh index 13f6acbb..f51fe6f5 100755 --- a/.rhcicd/pr_check.sh +++ b/.rhcicd/pr_check.sh @@ -42,28 +42,9 @@ export COMPONENT_NAME="provisioning-backend" oc project $NAMESPACE -# ADD the image stubs -orgID="0369233" -accountID="3340851" - -dbPod=$(oc get pods -o custom-columns=POD:.metadata.name --no-headers | grep 'image-builder-db') - -# AWS stub -imageID="ad6d6a99-7a95-4b74-8760-cce28df35bda" # created on 2023-08-23 -imageName="pipeline-aws" - -composeRequestAWSJson='{"image_name": "'$imageName'", "distribution": "rhel-92", "customizations": {}, "image_requests": [{"image_type": "aws", "architecture": "x86_64", "upload_request": {"type": "aws", "options": {"share_with_accounts": ["093942615996"]}}}]}' -oc exec $dbPod -- psql -d image-builder -c "INSERT INTO public.composes (job_id, request, created_at, account_number, org_id, image_name, deleted) VALUES -('$imageID', '$composeRequestAWSJson', '$(date +"%Y-%m-%d %T")', '$orgID', '$accountID', '$imageName', false);" - -# GCP stub -imageID="6c79ab2c-176d-4e24-80ca-bd9f3a019ca6" # created on 2023-08-23 -imageName="pipeline-gcp" - -composeRequestGCPJson='{"image_name": "'$imageName'", "distribution": "rhel-92", "customizations": {}, "image_requests": [{"image_type": "gcp", "architecture": "x86_64", "upload_request": {"type": "gcp", "options": {"share_with_accounts": ["user:oezr@redhat.com"]}}}]}' -oc exec $dbPod -- psql -d image-builder -c "INSERT INTO public.composes (job_id, request, created_at, account_number, org_id, image_name, deleted) VALUES -('$imageID', '$composeRequestGCPJson', '$(date +"%Y-%m-%d %T")', '$orgID', '$accountID', '$imageName', false);" +export AWS_ACCOUNT_ID="093942615996" +source <(curl -ksSL https://gitlab.cee.redhat.com/satellite-services/hms-cicd/-/raw/main/images_db_stub.sh) source "${CICD_ROOT}/cji_smoke_test.sh"