Skip to content

Commit

Permalink
Fixes PR checks (#389)
Browse files Browse the repository at this point in the history
* Add IQE env var to disable rbac tests/checks
* Fix race condition in pr checks

---------

Co-authored-by: Brandon Schneider <[email protected]>
  • Loading branch information
dehort and skarekrow authored Sep 9, 2024
1 parent 9531276 commit 754a7ba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ COMPONENT_NAME="playbook-dispatcher" # name of app-sre "resourceTemplate" in de
CONNECT_COMPONENT_NAME="playbook-dispatcher-connect"
IMAGE="quay.io/cloudservices/playbook-dispatcher"
IQE_CJI_TIMEOUT="30m"
IQE_ENV_VARS="DYNACONF_USER_PROVIDER__rbac_enabled=false"
REF_ENV="insights-stage"

# Install bonfire repository/initialize
Expand Down Expand Up @@ -35,14 +36,9 @@ EXTRA_DEPLOY_ARGS="--set-image-tag ${IMAGE_DISPATCHER}=${IMAGE_TAG} --set-templa
# Deploy to an ephemeral environment
source $CICD_ROOT/deploy_ephemeral_env.sh

# Run Playbook Dispatcher isolated tests
IQE_PLUGINS="playbook-dispatcher"
IQE_MARKER_EXPRESSION="smoke"
source $CICD_ROOT/cji_smoke_test.sh

# Re-deploy Playbook Dispatcher to an ephemeral environment, this time enabling the communication with Cloud Connector
# The connect image template is overridden to make use of the connect.yaml file from before managed kafka was put in place
bonfire deploy playbook-dispatcher cloud-connector \
bonfire deploy playbook-dispatcher cloud-connector host-inventory \
--source=appsre \
--ref-env ${REF_ENV} \
--set-template-ref ${COMPONENT_NAME}=${GIT_COMMIT} \
Expand All @@ -53,6 +49,11 @@ bonfire deploy playbook-dispatcher cloud-connector \
--timeout ${DEPLOY_TIMEOUT} \
--set-parameter playbook-dispatcher/CLOUD_CONNECTOR_IMPL=impl

# Run Playbook Dispatcher isolated tests
IQE_PLUGINS="playbook-dispatcher"
IQE_MARKER_EXPRESSION="smoke"
source $CICD_ROOT/cji_smoke_test.sh

# Run RHC Contract integration tests
COMPONENT_NAME="cloud-connector"
IQE_PLUGINS="rhc-contract"
Expand Down

0 comments on commit 754a7ba

Please sign in to comment.