-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Sanity tests Selenium Grid chart via Makefile commands (#2029)
[deploy]
- Loading branch information
Showing
24 changed files
with
358 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Testing Selenium Grid Helm Chart | ||
|
||
All related testing to this helm chart will be documented in this file. | ||
|
||
## Test Traceability Matrix | ||
|
||
| Features | TC Description | Coverage | | ||
|------------------------|----------------------------------------------------------------------|----------| | ||
| Basic Auth | Basic Auth is disabled | ✓ | | ||
| | Basic Auth is enabled | ✗ | | ||
| Auto scaling | Auto scaling with `enableWithExistingKEDA` is `true` | ✓ | | ||
| | Auto scaling with `scalingType` is `job` | ✓ | | ||
| | Auto scaling with `scalingType` is `deployment` | ✗ | | ||
| | Auto scaling with `autoscaling.scaledOptions.minReplicaCount` is `0` | ✓ | | ||
| Ingress | Ingress is enabled without `hostname` | ✓ | | ||
| | Hub `sub-path` is set with Ingress `ImplementationSpecific` paths | ✓ | | ||
| Distributed components | `isolateComponents` is enabled | ✓ | | ||
| Browser Nodes | Node `nameOverride` is set | ✓ | | ||
| | Sanity tests in node | ✓ | | ||
| | Video recorder is enabled in node | ✗ | | ||
|
||
## Build & test Docker images with Helm charts | ||
Noted: These `make` commands are composed and tested on Linux x86_64. | ||
Run entire commands to build and test Docker images with Helm charts in local environment. | ||
|
||
```bash | ||
# Back to root directory | ||
cd ../.. | ||
|
||
# Build Docker images | ||
make build | ||
|
||
# Setup Kubernetes environment | ||
make chart_setup_env | ||
|
||
# Setup Kubernetes cluster | ||
make chart_cluster_setup | ||
|
||
# Test Selenium Grid on Kubernetes | ||
make chart_test | ||
|
||
# Cleanup Kubernetes cluster | ||
make chart_cluster_cleanup | ||
``` |
11 changes: 4 additions & 7 deletions
11
...s/override-kind-auth-NodeEdge-values.yaml → ...s/selenium-grid/ci/NodeChrome-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# This is used in Helm chart testing. This disables the basic auth on seleneium grid | ||
# Basic auth settings for Selenium Grid | ||
basicAuth: | ||
# Enable or disable basic auth | ||
enabled: false | ||
# This is used in Helm chart testing. This disables the basic auth on selenium grid | ||
# Configuration for chrome nodes | ||
chromeNode: | ||
# Enable chrome nodes | ||
nameOverride: my-chrome-name | ||
# Configuration for edge nodes | ||
edgeNode: | ||
enabled: false | ||
# Configuration for firefox nodes | ||
firefoxNode: | ||
# Enable firefox nodes | ||
enabled: false |
11 changes: 4 additions & 7 deletions
11
...override-kind-auth-NodeChrome-values.yaml → charts/selenium-grid/ci/NodeEdge-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# This is used in Helm chart testing. This disables the basic auth on seleneium grid | ||
# Basic auth settings for Selenium Grid | ||
basicAuth: | ||
# Enable or disable basic auth | ||
# This is used in Helm chart testing. This disables the basic auth on selenium grid | ||
# Configuration for chrome nodes | ||
chromeNode: | ||
enabled: false | ||
# Configuration for edge nodes | ||
edgeNode: | ||
# Enable edge nodes | ||
enabled: false | ||
nameOverride: my-edge-name | ||
# Configuration for firefox nodes | ||
firefoxNode: | ||
# Enable firefox nodes | ||
enabled: false |
13 changes: 5 additions & 8 deletions
13
...verride-kind-auth-NodeFirefox-values.yaml → .../selenium-grid/ci/NodeFirefox-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# This is used in Helm chart testing. This disables the basic auth on seleneium grid | ||
# Basic auth settings for Selenium Grid | ||
basicAuth: | ||
# Enable or disable basic auth | ||
enabled: false | ||
# This is used in Helm chart testing. This disables the basic auth on selenium grid | ||
# Configuration for chrome nodes | ||
chromeNode: | ||
# Enable chrome nodes | ||
enabled: false | ||
enabled: false | ||
# Configuration for edge nodes | ||
edgeNode: | ||
# Enable edge nodes | ||
enabled: false | ||
# Configuration for firefox nodes | ||
firefoxNode: | ||
nameOverride: my-firefox-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.