mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
[bitnami/spark] Add Spark Helm Chart tests (#11280)
* [bitnami/spark] Add Spark Helm Chart tests Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
7
.vib/spark/cypress/cypress.json
Normal file
7
.vib/spark/cypress/cypress.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"baseUrl": "http://localhost/",
|
||||
"defaultCommandTimeout": 30000,
|
||||
"env": {
|
||||
"expectedWorkers": 2
|
||||
}
|
||||
}
|
||||
6
.vib/spark/cypress/cypress/integration/spark_spec.js
Normal file
6
.vib/spark/cypress/cypress/integration/spark_spec.js
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="cypress" />
|
||||
|
||||
it('checks if the amount of workers is correct', () => {
|
||||
cy.visit('/');
|
||||
cy.contains(`Alive Workers: ${Cypress.env('expectedWorkers')}`);
|
||||
});
|
||||
5
.vib/spark/goss/goss.yaml
Normal file
5
.vib/spark/goss/goss.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
command:
|
||||
spark-submit-app:
|
||||
exec: spark-submit --class org.apache.spark.examples.SparkPi --master spark://spark-master-svc:{{ .Vars.master.containerPorts.cluster }} --deploy-mode cluster /opt/bitnami/spark/examples/jars/spark*.jar
|
||||
exit-status: 0
|
||||
timeout: 20000
|
||||
3
.vib/spark/goss/vars.yaml
Normal file
3
.vib/spark/goss/vars.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
master:
|
||||
containerPorts:
|
||||
cluster: 7077
|
||||
@@ -22,7 +22,7 @@
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "/bitnami/spark"
|
||||
},
|
||||
"runtime_parameters": "InNlcnZpY2UiOgogICJ0eXBlIjogIkxvYWRCYWxhbmNlciIKICAicG9ydHMiOgogICAgImh0dHAiOiA4MA==",
|
||||
"runtime_parameters": "InNlcnZpY2UiOgogICJ0eXBlIjogIkxvYWRCYWxhbmNlciIKICAicG9ydHMiOgogICAgImh0dHAiOiA4MAoid29ya2VyIjoKICAicmVwbGljYUNvdW50IjogMg==",
|
||||
"target_platform": {
|
||||
"target_platform_id": "{VIB_ENV_TARGET_PLATFORM}",
|
||||
"size": {
|
||||
@@ -37,6 +37,31 @@
|
||||
"endpoint": "lb-spark-master-svc-http",
|
||||
"app_protocol": "HTTP"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib/spark/goss"
|
||||
},
|
||||
"remote": {
|
||||
"workload": "sts-spark-worker"
|
||||
},
|
||||
"vars_file": "vars.yaml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "cypress",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib/spark/cypress"
|
||||
},
|
||||
"endpoint": "lb-spark-master-svc-http",
|
||||
"app_protocol": "HTTP",
|
||||
"env": {
|
||||
"expectedWorkers": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "/bitnami/spark"
|
||||
},
|
||||
"runtime_parameters": "InNlcnZpY2UiOgogICJ0eXBlIjogIkxvYWRCYWxhbmNlciIKICAicG9ydHMiOgogICAgImh0dHAiOiA4MA==",
|
||||
"runtime_parameters": "InNlcnZpY2UiOgogICJ0eXBlIjogIkxvYWRCYWxhbmNlciIKICAicG9ydHMiOgogICAgImh0dHAiOiA4MAoid29ya2VyIjoKICAicmVwbGljYUNvdW50IjogMg==",
|
||||
"target_platform": {
|
||||
"target_platform_id": "{VIB_ENV_TARGET_PLATFORM}",
|
||||
"size": {
|
||||
@@ -37,6 +37,31 @@
|
||||
"endpoint": "lb-spark-master-svc-http",
|
||||
"app_protocol": "HTTP"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib/spark/goss"
|
||||
},
|
||||
"remote": {
|
||||
"workload": "sts-spark-worker"
|
||||
},
|
||||
"vars_file": "vars.yaml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "cypress",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib/spark/cypress"
|
||||
},
|
||||
"endpoint": "lb-spark-master-svc-http",
|
||||
"app_protocol": "HTTP",
|
||||
"env": {
|
||||
"expectedWorkers": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user