File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ python -m pip install pyyaml==6.0.1 \
13
13
14
14
cd ..
15
15
16
+ helm package charts/selenium-grid --version 1.0.0-SNAPSHOT -d tests/tests
17
+
16
18
RELEASE_NAME=" selenium"
17
19
18
20
helm template ${RELEASE_NAME} --values tests/charts/templates/render/dummy.yaml \
19
21
--set-file ' nodeConfigMap.extraScripts.setFromCommand\.sh=tests/charts/templates/render/dummy_external.sh' \
20
22
--set-file ' recorderConfigMap.extraScripts.setFromCommand\.sh=tests/charts/templates/render/dummy_external.sh' \
21
23
--set-file ' uploaderConfigMap.extraScripts.setFromCommand\.sh=tests/charts/templates/render/dummy_external.sh' \
22
- charts/ selenium-grid > ./tests/tests/dummy_template_manifests.yaml
24
+ tests/tests/ selenium-grid-1.0.0-SNAPSHOT.tgz > ./tests/tests/dummy_template_manifests.yaml
23
25
24
26
python tests/charts/templates/test.py " ./tests/tests/dummy_template_manifests.yaml" ${RELEASE_NAME}
25
27
if [ $? -ne 0 ]; then
30
32
rm -rf tests/charts/umbrella-charts/Chart.lock tests/charts/umbrella-charts/charts
31
33
helm dependency update tests/charts/umbrella-charts
32
34
helm dependency build tests/charts/umbrella-charts
35
+ helm package tests/charts/umbrella-charts --version 1.0.0-SNAPSHOT -d tests/tests
33
36
34
37
RELEASE_NAME=" test"
35
38
36
39
helm template ${RELEASE_NAME} --values tests/charts/templates/render/dummy_solution.yaml \
37
40
--set-file ' selenium-grid.nodeConfigMap.extraScripts.setFromCommand\.sh=tests/charts/templates/render/dummy_external.sh' \
38
41
--set-file ' selenium-grid.recorderConfigMap.extraScripts.setFromCommand\.sh=tests/charts/templates/render/dummy_external.sh' \
39
42
--set-file ' selenium-grid.uploaderConfigMap.extraScripts.setFromCommand\.sh=tests/charts/templates/render/dummy_external.sh' \
40
- tests/charts /umbrella-charts > ./tests/tests/dummy_solution_template_manifests.yaml
43
+ tests/tests /umbrella-charts-1.0.0-SNAPSHOT.tgz > ./tests/tests/dummy_solution_template_manifests.yaml
41
44
42
45
python tests/charts/templates/test.py " ./tests/tests/dummy_solution_template_manifests.yaml" ${RELEASE_NAME}
43
46
if [ $? -ne 0 ]; then
Original file line number Diff line number Diff line change @@ -154,10 +154,10 @@ def test_extra_script_import_to_node_configmap(self):
154
154
for doc in LIST_OF_DOCUMENTS :
155
155
if doc ['metadata' ]['name' ] in resources_name and doc ['kind' ] == 'ConfigMap' :
156
156
logger .info (f"Assert default file is imported to Node ConfigMap" )
157
- self .assertTrue (doc ['data' ]['nodeProbe.sh' ] is not None )
158
- self .assertTrue (doc ['data' ]['nodePreStop.sh' ] is not None )
159
- self .assertTrue (doc ['data' ]['nodeCustomTask.sh' ] is not None )
160
- self .assertTrue (doc ['data' ]['setFromCommand.sh' ] is not None )
157
+ self .assertTrue (doc ['data' ]['nodeProbe.sh' ] != "" )
158
+ self .assertTrue (doc ['data' ]['nodePreStop.sh' ] != "" )
159
+ self .assertTrue (doc ['data' ]['nodeCustomTask.sh' ] != "" )
160
+ self .assertTrue (doc ['data' ]['setFromCommand.sh' ] != "" )
161
161
count += 1
162
162
self .assertEqual (count , len (resources_name ), "No node config resources found" )
163
163
Original file line number Diff line number Diff line change
1
+ global :
2
+ seleniumGrid :
3
+ imageRegistry : selenium
4
+
5
+ selenium-grid :
6
+ enabled : true
You can’t perform that action at this time.
0 commit comments