Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions charts/keycloakx/templates/test/configmap-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,14 @@ data:
#!/usr/bin/env bash
set -eu

if ! python3 -c 'import selenium' &> /dev/null
then
if ! command -v pip3 &> /dev/null
then
echo 'Installing pip3...'
export PATH="$PATH:$HOME/.local/bin"
mkdir -p "$HOME/.config/pip"
echo -e '[global]\nbreak-system-packages = true' > "$HOME/.config/pip/pip.conf"
wget -q -P "$HOME" https://bootstrap.pypa.io/get-pip.py
python3 "$HOME/get-pip.py" --user 1> /dev/null
fi

if ! python3 -c 'import selenium' &> /dev/null; then
echo 'Installing selenium module...'
pip3 -q install selenium
python3 -m venv /tmp/test-venv
/tmp/test-venv/bin/pip install -q selenium
exec /tmp/test-venv/bin/python "$(dirname "$0")/test.py"
fi

python3 "$(dirname $0)/test.py"
python3 "$(dirname "$0")/test.py"
test.py: |
import os
from selenium import webdriver
Expand Down
8 changes: 4 additions & 4 deletions charts/keycloakx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -616,17 +616,17 @@ test:
enabled: false
image:
# The image for the test Pod
repository: docker.io/seleniarm/standalone-chromium
repository: docker.io/selenium/standalone-chromium
# The tag for the test Pod image
tag: "117.0"
tag: "147.0"
# The image pull policy for the test Pod image
pullPolicy: IfNotPresent
# SecurityContext for the entire test Pod
podSecurityContext:
fsGroup: 1000
fsGroup: 1200 # UID of seluser in selenium/standalone-chromium
# SecurityContext for the test container
securityContext:
runAsUser: 1000
runAsUser: 1200 # UID of seluser in selenium/standalone-chromium
runAsNonRoot: true
# See https://helm.sh/docs/topics/charts_hooks/#hook-deletion-policies
deletionPolicy: before-hook-creation
Expand Down
Loading