Skip to content

Commit

Permalink
Merge pull request #370 from xinredhat/fix_missing_param
Browse files Browse the repository at this point in the history
added missing parameter 'auth_config'
  • Loading branch information
xinredhat authored Jan 7, 2025
2 parents 0ab90e1 + 8f98cf0 commit 639ed2c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions integration-tests/pict-models/default.pict
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This is file used for integration tests (PR checks, post-merge checks)
#

# OCP: 4.17, 4.16
# OCP: valid OCP versions, for example: 4.17, 4.16
# ACS: valid values: new, hosted
# Registry: valid values: quay, quay.io, artifactory
# Registry: valid values: quay, quay.io, artifactory, nexus
# TPA: valid values: new, hosted
# SCM: valid values: github, gitlab, bitbucket
# Pipeline: valid values: github, gitlab, bitbucket
Expand Down
2 changes: 2 additions & 0 deletions integration-tests/pipelines/rhtap-cli-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ spec:
value: $(params.scm_config)
- name: pipeline_config
value: $(params.pipeline_config)
- name: auth_config
value: $(params.auth_config)
- name: sprayproxy-provision
runAfter:
- rhtap-install
Expand Down
23 changes: 12 additions & 11 deletions integration-tests/tasks/rhtap-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
set -o errexit
set -o nounset
set -o pipefail
set -x
GIT_REPO="${GIT_REPO:-$(echo "$JOB_SPEC" | jq -r '.git.repo // empty')}"
Expand All @@ -57,17 +58,6 @@ spec:
exit 1
fi
# Generate the .env file for rhtap-cli installation based on the configuration given in the pict file
if [ -f .env ]; then
rm .env
fi
echo "export acs_config=\"$(params.acs_config)\"" >> .env
echo "export tpa_config=\"$(params.tpa_config)\"" >> .env
echo "export registry_config=\"$(params.registry_config)\"" >> .env
echo "export scm_config=\"$(params.scm_config)\"" >> .env
echo "export pipeline_config=\"$(params.pipeline_config)\"" >> .env
echo "export auth_config=\"$(params.auth_config)\"" >> .env
# Clone the rhtap-cli repository
cd "$(mktemp -d)"
Expand All @@ -83,6 +73,17 @@ spec:
git clone https://github.com/redhat-appstudio/rhtap-cli.git .
fi
# Generate the .env file for rhtap-cli installation based on the configuration given in the pict file
if [ -f .env ]; then
rm .env
fi
echo "export acs_config=\"$(params.acs_config)\"" > .env
echo "export tpa_config=\"$(params.tpa_config)\"" >> .env
echo "export registry_config=\"$(params.registry_config)\"" >> .env
echo "export scm_config=\"$(params.scm_config)\"" >> .env
echo "export pipeline_config=\"$(params.pipeline_config)\"" >> .env
echo "export auth_config=\"$(params.auth_config)\"" >> .env
# Deploy rhtap
source .env
./integration-tests/scripts/ci-oc-login.sh
Expand Down

0 comments on commit 639ed2c

Please sign in to comment.