[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:
Michiel
2022-08-05 16:46:22 +02:00
committed by GitHub
parent 2783edc1ed
commit 003c03d3a5
6 changed files with 73 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
{
"baseUrl": "http://localhost/",
"defaultCommandTimeout": 30000,
"env": {
"expectedWorkers": 2
}
}

View 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')}`);
});

View 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

View File

@@ -0,0 +1,3 @@
master:
containerPorts:
cluster: 7077

View File

@@ -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"
}
}
}
]
},

View File

@@ -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"
}
}
}
]
}