Skip to content

Commit

Permalink
test: update to enable/disable managed downloads
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Aug 30, 2024
1 parent 4c0d9d9 commit a74cab4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/charts/ci/DeploymentAutoscaling-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ chromeNode:
- name: SE_BROWSER_ARGS_DISABLE_SEARCH_ENGINE
value: "--disable-search-engine-choice-screen"
- name: SE_NODE_ENABLE_MANAGED_DOWNLOADS
value: "true"
value: "${SELENIUM_ENABLE_MANAGED_DOWNLOADS}"
- name: SE_VNC_NO_PASSWORD
value: "true"
- name: SE_SCREEN_WIDTH
Expand Down
2 changes: 1 addition & 1 deletion tests/charts/ci/JobAutoscaling-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ chromeNode:
nameOverride: my-chrome-name
extraEnvironmentVariables: &extraEnvironmentVariables
- name: SE_NODE_ENABLE_MANAGED_DOWNLOADS
value: "true"
value: "${SELENIUM_ENABLE_MANAGED_DOWNLOADS}"
- name: SE_VNC_NO_PASSWORD
value: "true"
- name: SE_SCREEN_WIDTH
Expand Down
2 changes: 1 addition & 1 deletion tests/charts/ci/NoAutoscaling-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ chromeNode:
nameOverride: my-chrome-name
extraEnvironmentVariables: &extraEnvironmentVariables
- name: SE_NODE_ENABLE_MANAGED_DOWNLOADS
value: "true"
value: "${SELENIUM_ENABLE_MANAGED_DOWNLOADS}"
- name: SE_VNC_NO_PASSWORD
value: "true"
- name: SE_SCREEN_WIDTH
Expand Down
7 changes: 6 additions & 1 deletion tests/charts/make/chart_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ else
SELENIUM_TLS_SECRET_NAME="${RELEASE_NAME}-selenium-tls-secret"
fi
EXTERNAL_TLS_SECRET_NAME=${EXTERNAL_TLS_SECRET_NAME:-"external-tls-secret"}
SELENIUM_ENABLE_MANAGED_DOWNLOADS=${SELENIUM_ENABLE_MANAGED_DOWNLOADS:-"true"}

cleanup() {
# Get the list of pods
Expand Down Expand Up @@ -93,9 +94,13 @@ export RELEASE_NAME=${RELEASE_NAME}
export SELENIUM_NAMESPACE=${SELENIUM_NAMESPACE}
export TEST_PV_CLAIM_NAME=${TEST_PV_CLAIM_NAME}
export HOST_PATH=$(realpath ./tests/videos)
export SELENIUM_ENABLE_MANAGED_DOWNLOADS=${SELENIUM_ENABLE_MANAGED_DOWNLOADS}
RECORDER_VALUES_FILE=${TEST_VALUES_PATH}/base-recorder-values.yaml
MATRIX_BROWSER_VALUES_FILE=${TEST_VALUES_PATH}/${MATRIX_BROWSER}-values.yaml
envsubst < ${RECORDER_VALUES_FILE} > ./tests/tests/base-recorder-values.yaml
envsubst < ${MATRIX_BROWSER_VALUES_FILE} > ./tests/tests/${MATRIX_BROWSER}-values.yaml
RECORDER_VALUES_FILE=./tests/tests/base-recorder-values.yaml
MATRIX_BROWSER_VALUES_FILE=./tests/tests/${MATRIX_BROWSER}-values.yaml

if [ "${TEST_UPGRADE_CHART}" != "true" ] && [ "${RENDER_HELM_TEMPLATE_ONLY}" != "true" ]; then
LOCAL_PVC_YAML="${TEST_VALUES_PATH}/local-pvc.yaml"
Expand Down Expand Up @@ -305,7 +310,7 @@ if [ "${SELENIUM_GRID_PROTOCOL}" = "https" ]; then
fi

HELM_COMMAND_SET_BASE_VALUES="${HELM_COMMAND_SET_BASE_VALUES} \
--values ${TEST_VALUES_PATH}/${MATRIX_BROWSER}-values.yaml \
--values ${MATRIX_BROWSER_VALUES_FILE} \
"

HELM_COMMAND_ARGS="${RELEASE_NAME} \
Expand Down

0 comments on commit a74cab4

Please sign in to comment.