File tree Expand file tree Collapse file tree 4 files changed +9
-15
lines changed
charts/selenium-grid/templates Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ template:
349349 { {- end } }
350350 { {- if and (eq (include " seleniumGrid.useKEDA" $) " true" ) } }
351351 - name: SE_NODE_PLATFORM_NAME
352- value: { { default " Linux " .node.hpa.platformName | quote } }
352+ value: { { default " " .node.hpa.platformName | quote } }
353353 { {- end } }
354354 - name: SE_NODE_CONTAINER_NAME
355355 valueFrom:
Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -x
2+ set -o xtrace
33
44SET_VERSION=${SET_VERSION:- " true" }
55CHART_PATH=${CHART_PATH:- " charts/selenium-grid" }
6- # Function to be executed on command failure
7- on_failure () {
8- local exit_status=$?
9- echo " There is step failed with exit status $exit_status "
10- exit $exit_status
11- }
12-
13- # Trap ERR signal and call on_failure function
14- trap ' on_failure' ERR
156
167cd tests || true
178
@@ -21,12 +12,9 @@ if [ "${CI:-false}" = "false" ]; then
2112 source docker-selenium-tests/bin/activate
2213else
2314 export PATH=$PATH :/home/$USER /.local/bin
24- pip3 install -U yamale yamllint
2515fi
2616
27- python3 -m pip install yamale==4.0.4 \
28- yamllint==1.33.0 \
29- | grep -v ' Requirement already satisfied' || true
17+ python3 -m pip install -r requirements.txt | grep -v ' Requirement already satisfied'
3018
3119cd ..
3220rm -rf ${CHART_PATH} /Chart.lock
Original file line number Diff line number Diff line change @@ -358,6 +358,10 @@ def test_scaler_triggers_parameter_nodeMaxSessions_global_and_individual_value(s
358358 for env in doc ['spec' ]['template' ]['spec' ]['containers' ][0 ]['env' ]:
359359 if env ['name' ] == 'SE_NODE_MAX_SESSIONS' :
360360 self .assertTrue (env ['value' ] == str (resources_name [doc ['metadata' ]['name' ]]), "Value is not matched" )
361+ if env ['name' ] == 'SE_NODE_PLATFORM_NAME' :
362+ self .assertTrue (env ['value' ] == "" , "Platform name is not matched" )
363+ if env ['name' ] == 'SE_NODE_BROWSER_VERSION' :
364+ self .assertTrue (env ['value' ] == "" , "Browser version is not matched" )
361365 count += 1
362366 self .assertEqual (count , len (resources_name .keys ()), f"Expected { len (resources_name .keys ())} resources but found { count } " )
363367
Original file line number Diff line number Diff line change 33chardet
44csv2md
55selenium
6+ yamale
7+ yamllint
You can’t perform that action at this time.
0 commit comments