-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathiqe_rbac_tests.sh
More file actions
executable file
·33 lines (27 loc) · 1010 Bytes
/
iqe_rbac_tests.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Prepare env
source $(pwd)/pr_check_common.sh
export REF_ENV="insights-stage"
export IQE_MARKER_EXPRESSION="backend and rbac_dependent and not cert_auth and not service_account"
export IQE_FILTER_EXPRESSION=""
export IQE_CJI_TIMEOUT="1h"
export EXTRA_DEPLOY_ARGS="-p host-inventory/BYPASS_RBAC=false -p host-inventory/BYPASS_KESSEL=true"
# Wait until the PR image is built
check_image
if [[ $? -ne 0 ]]
then
echo "Image '$IMAGE:$IMAGE_TAG' not found in quay, exiting script"
exit 1
fi
# Deploy ephemeral env and run IQE tests
source $CICD_ROOT/deploy_ephemeral_env.sh
# If local IQE plugin is configured, use custom script to deploy and test
# Otherwise, use the standard cji_smoke_test.sh
if [ "$IQE_INSTALL_LOCAL_PLUGIN" = "true" ]; then
echo "Using local IQE plugin for CJI tests"
source $APP_ROOT/run_cji_with_local_plugin.sh
else
echo "Using standard IQE plugin from Nexus for CJI tests"
source $CICD_ROOT/cji_smoke_test.sh
fi
source $CICD_ROOT/post_test_results.sh