Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 2aa675e

Browse files
committed
test(chart): update docs
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 5670b28 commit 2aa675e

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ chart_test_edge:
447447
./tests/charts/make/chart_test.sh NodeEdge
448448

449449
chart_test_autoscaling_deployment_https:
450-
SE_FULL_DISTRIBUTED_MODE=true SE_ENABLE_INGRESS_HOSTNAME=true SELENIUM_GRID_PROTOCOL=https SELENIUM_GRID_PORT=443 \
450+
CHART_FULL_DISTRIBUTED_MODE=true CHART_ENABLE_INGRESS_HOSTNAME=true CHART_ENABLE_BASIC_AUTH=true SELENIUM_GRID_PROTOCOL=https SELENIUM_GRID_PORT=443 \
451451
VERSION=$(TAG_VERSION) VIDEO_TAG=$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) NAMESPACE=$(NAMESPACE) \
452452
./tests/charts/make/chart_test.sh DeploymentAutoscaling
453453

454454
chart_test_autoscaling_deployment:
455-
SE_ENABLE_TRACING=true SELENIUM_GRID_TEST_HEADLESS=true SELENIUM_GRID_HOST=$$(hostname -i) \
455+
CHART_ENABLE_TRACING=true SELENIUM_GRID_TEST_HEADLESS=true SELENIUM_GRID_HOST=$$(hostname -i) \
456456
VERSION=$(TAG_VERSION) VIDEO_TAG=$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) NAMESPACE=$(NAMESPACE) \
457457
./tests/charts/make/chart_test.sh DeploymentAutoscaling
458458

@@ -462,12 +462,12 @@ chart_test_autoscaling_job_https:
462462
./tests/charts/make/chart_test.sh JobAutoscaling
463463

464464
chart_test_autoscaling_job_hostname:
465-
SE_ENABLE_TRACING=true SE_ENABLE_INGRESS_HOSTNAME=true CHART_ENABLE_BASIC_AUTH=true \
465+
CHART_ENABLE_TRACING=true CHART_ENABLE_INGRESS_HOSTNAME=true CHART_ENABLE_BASIC_AUTH=true \
466466
VERSION=$(TAG_VERSION) VIDEO_TAG=$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) NAMESPACE=$(NAMESPACE) \
467467
./tests/charts/make/chart_test.sh JobAutoscaling
468468

469469
chart_test_autoscaling_job:
470-
SE_ENABLE_TRACING=true SE_FULL_DISTRIBUTED_MODE=true SE_ENABLE_INGRESS_HOSTNAME=true \
470+
CHART_ENABLE_TRACING=true CHART_FULL_DISTRIBUTED_MODE=true CHART_ENABLE_INGRESS_HOSTNAME=true \
471471
VERSION=$(TAG_VERSION) VIDEO_TAG=$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) NAMESPACE=$(NAMESPACE) \
472472
./tests/charts/make/chart_test.sh JobAutoscaling
473473

charts/selenium-grid/TESTING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ All related testing to this helm chart will be documented in this file.
3232
| | Extra ports can be exposed on Service via `.service.ports` | &check; | Cluster |
3333
| | Service type change to `NodePort`, specific NodePort can be set | &check; | Cluster |
3434

35+
## CI Test Traceability Matrix
36+
37+
We have a CI pipeline to test the Helm chart with the following test cases.
38+
39+
| Matrix | job | deployment | job_https | job_hostname | deployment_https |
40+
|---------------------------|----------|------------|-----------|--------------|------------------|
41+
| Cluster | Kind | Kind | Kind | Minikube | Minikube |
42+
| Kubernetes version | v1.25.16 | v1.26.14 | v1.27.11 | v1.28.7 | v1.29.2 |
43+
| Autoscaling | x | x | x | x | x |
44+
| Scaling type `deployment` | | x | | | x |
45+
| Scaling type `job` | x | | x | x | |
46+
| Full distributed mode | x | | | | x |
47+
| Enable basic auth | | x | | x | x |
48+
| Ingress `hostname` | x | | | x | x |
49+
| Ingress `K8S_PUBLIC_IP` | | x | x | | |
50+
| HTTPS `tls.enabled` | | | x | | x |
51+
| Enable tracing | x | x | | x | |
52+
| Enable video recorder | x | x | x | x | x |
53+
| Test headless | | x | x | | |
54+
3555
## Test Chart Template
3656
- By using `helm template` command, the chart template is tested without installing it to Kubernetes cluster.
3757
- Templates are rendered and the output as a YAML manifest file. The manifest file is then asserted with [pyyaml](https://pyyaml.org/wiki/PyYAMLDocumentation).

tests/charts/make/chart_test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ SKIP_CLEANUP=${SKIP_CLEANUP:-"false"} # For debugging purposes, retain the clust
2626
CHART_CERT_PATH=${CHART_CERT_PATH:-"${CHART_PATH}/certs/selenium.pem"}
2727
SSL_CERT_DIR=${SSL_CERT_DIR:-"/etc/ssl/certs"}
2828
VIDEO_TAG=${VIDEO_TAG:-"latest"}
29-
SE_ENABLE_TRACING=${SE_ENABLE_TRACING:-"false"}
30-
SE_FULL_DISTRIBUTED_MODE=${SE_FULL_DISTRIBUTED_MODE:-"false"}
29+
CHART_ENABLE_TRACING=${CHART_ENABLE_TRACING:-"false"}
30+
CHART_FULL_DISTRIBUTED_MODE=${CHART_FULL_DISTRIBUTED_MODE:-"false"}
3131
HOSTNAME_ADDRESS=${HOSTNAME_ADDRESS:-"selenium-grid.local"}
32-
SE_ENABLE_INGRESS_HOSTNAME=${SE_ENABLE_INGRESS_HOSTNAME:-"false"}
32+
CHART_ENABLE_INGRESS_HOSTNAME=${CHART_ENABLE_INGRESS_HOSTNAME:-"false"}
3333
CHART_ENABLE_BASIC_AUTH=${CHART_ENABLE_BASIC_AUTH:-"false"}
3434
BASIC_AUTH_USERNAME=${BASIC_AUTH_USERNAME:-"sysAdminUser"}
3535
BASIC_AUTH_PASSWORD=${BASIC_AUTH_PASSWORD:-"myStrongPassword"}
@@ -75,11 +75,11 @@ HELM_COMMAND_SET_IMAGES=" \
7575
--set global.seleniumGrid.nodesImageTag=${VERSION} \
7676
--set global.seleniumGrid.videoImageTag=${VIDEO_TAG} \
7777
--set autoscaling.scaledOptions.pollingInterval=${AUTOSCALING_POLL_INTERVAL} \
78-
--set tracing.enabled=${SE_ENABLE_TRACING} \
79-
--set isolateComponents=${SE_FULL_DISTRIBUTED_MODE} \
78+
--set tracing.enabled=${CHART_ENABLE_TRACING} \
79+
--set isolateComponents=${CHART_FULL_DISTRIBUTED_MODE} \
8080
"
8181

82-
if [ "${SE_ENABLE_INGRESS_HOSTNAME}" = "true" ]; then
82+
if [ "${CHART_ENABLE_INGRESS_HOSTNAME}" = "true" ]; then
8383
if [[ ! $(cat /etc/hosts) == *"${HOSTNAME_ADDRESS}"* ]]; then
8484
sudo -- sh -c -e "echo \"$(hostname -i) ${HOSTNAME_ADDRESS}\" >> /etc/hosts"
8585
fi

0 commit comments

Comments
 (0)