Loading .DS_Store 0 → 100644 +6 KiB File added.No diff preview for this file type. View file .gitlab-ci.yml +4 −6 Original line number Diff line number Diff line Loading @@ -63,10 +63,6 @@ variables: .test-base: image: "dwdraju/alpine-curl-jq" stage: acceptance variables: GCP_PROJECT: sandbox-287709 GCP_OIDC_ACCOUNT: sa-for-cicd@${GCP_PROJECT}.iam.gserviceaccount.com GCP_OIDC_PROVIDER: projects/993931605663/locations/global/workloadIdentityPools/to-be-continuous-pool/providers/gitlab-com services: - name: "$DOCKER_SNAPSHOT_IMAGE" alias: "gcp-auth-provider" Loading @@ -93,10 +89,12 @@ test-token-assert-200: assert_eq "200" $response_status token=`cat resp.txt` response_status=$(curl -s -o resp.txt -w "%{http_code}" -H "Authorization: Bearer $token" "https://cloudresourcemanager.googleapis.com/v1/projects/sandbox-287709") response_status=$(curl -s -o resp.txt -w "%{http_code}" -H "Authorization: Bearer $token" "https://cloudresourcemanager.googleapis.com/v1/projects/$GCP_PROJECT") assert_eq "200" $response_status project_id_result=$(cat resp.txt | jq .projectId | tr -d '"') assert_eq "sandbox-287709" $project_id_result assert_eq "$GCP_PROJECT" $project_id_result rules: - if: '$GCP_OIDC_ACCOUNT && $GCP_OIDC_PROVIDER' test-token-assert-500: extends: .test-base Loading logo.png 0 → 100644 +26.9 KiB Loading image diff... Loading
.gitlab-ci.yml +4 −6 Original line number Diff line number Diff line Loading @@ -63,10 +63,6 @@ variables: .test-base: image: "dwdraju/alpine-curl-jq" stage: acceptance variables: GCP_PROJECT: sandbox-287709 GCP_OIDC_ACCOUNT: sa-for-cicd@${GCP_PROJECT}.iam.gserviceaccount.com GCP_OIDC_PROVIDER: projects/993931605663/locations/global/workloadIdentityPools/to-be-continuous-pool/providers/gitlab-com services: - name: "$DOCKER_SNAPSHOT_IMAGE" alias: "gcp-auth-provider" Loading @@ -93,10 +89,12 @@ test-token-assert-200: assert_eq "200" $response_status token=`cat resp.txt` response_status=$(curl -s -o resp.txt -w "%{http_code}" -H "Authorization: Bearer $token" "https://cloudresourcemanager.googleapis.com/v1/projects/sandbox-287709") response_status=$(curl -s -o resp.txt -w "%{http_code}" -H "Authorization: Bearer $token" "https://cloudresourcemanager.googleapis.com/v1/projects/$GCP_PROJECT") assert_eq "200" $response_status project_id_result=$(cat resp.txt | jq .projectId | tr -d '"') assert_eq "sandbox-287709" $project_id_result assert_eq "$GCP_PROJECT" $project_id_result rules: - if: '$GCP_OIDC_ACCOUNT && $GCP_OIDC_PROVIDER' test-token-assert-500: extends: .test-base Loading