Skip to content

Commit 4a38298

Browse files
integration tests in Jenkins CI (#54)
## Description created integration test files for Jenkins CI Co-authored-by: Razvan-Daniel Mihai <[email protected]>
1 parent 51a899b commit 4a38298

File tree

17 files changed

+74
-12
lines changed

17 files changed

+74
-12
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
apiVersion: t2.stackable.tech/v1
3+
kind: Infra
4+
template: hcloud-centos-8
5+
metadata:
6+
name: spark-operator-integration-tests
7+
description: "Cluster for Spark K8s Operator Integration Tests (Hetzner Cloud / CentOS 8)"
8+
domain: stackable.test
9+
publicKeys: []
10+
spec:
11+
location: "hel1"
12+
k8sVersion: "$K8S_VERSION"
13+
wireguard: false
14+
versions:
15+
_-operator: NIGHTLY
16+
spark-k8s-operator: "$SPARK_K8S_OPERATOR_VERSION"
17+
nodes:
18+
main:
19+
numberOfNodes: 3
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
git clone -b "$GIT_BRANCH" https://github.com/stackabletech/spark-k8s-operator.git
3+
(cd spark-k8s-operator/ && ./scripts/run_tests.sh)
4+
exit_code=$?
5+
./operator-logs.sh spark-k8s > /target/spark-k8s-operator.log
6+
./operator-logs.sh spark > /target/spark-operator.log
7+
exit $exit_code

tests/templates/kuttl/spark-ny-public-s3/00-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: minio
6-
timeout: 300
6+
timeout: 900
77
---
88
apiVersion: v1
99
kind: Service

tests/templates/kuttl/spark-ny-public-s3/00-s3-upload-container.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: minio-mc
6+
labels:
7+
app: minio-mc
8+
spec:
9+
clusterIP: None
10+
selector:
11+
app: minio-mc
12+
---
213
apiVersion: apps/v1
314
kind: StatefulSet
415
metadata:
@@ -7,6 +18,7 @@ metadata:
718
app: minio-mc
819
spec:
920
replicas: 1
21+
serviceName: "minio-mc"
1022
selector:
1123
matchLabels:
1224
app: minio-mc
@@ -18,6 +30,5 @@ spec:
1830
containers:
1931
- name: minio-mc
2032
image: bitnami/minio:2022-debian-10
21-
command: ["/bin/sh"]
2233
stdin: true
2334
tty: true

tests/templates/kuttl/spark-ny-public-s3/00-setup-minio.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ commands:
99
--set replicas=1
1010
--set persistence.enabled=false
1111
--set buckets[0].name=my-bucket,buckets[0].policy=public
12+
--set resources.requests.memory=1Gi
1213
--repo https://charts.min.io/ minio

tests/templates/kuttl/spark-ny-public-s3/02-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: spark-ny-deps-job
6-
timeout: 300
6+
timeout: 900
77
---
88
apiVersion: batch/v1
99
kind: Job

tests/templates/kuttl/spark-ny-public-s3/10-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: spark-ny-cm
6-
timeout: 300
6+
timeout: 900
77
---
88
# The Job starting the whole process
99
apiVersion: batch/v1

tests/templates/kuttl/spark-pi-private-s3/00-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: minio
6-
timeout: 300
6+
timeout: 900
77
---
88
apiVersion: v1
99
kind: Service

tests/templates/kuttl/spark-pi-private-s3/00-s3-upload-container.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: minio-mc
6+
labels:
7+
app: minio-mc
8+
spec:
9+
clusterIP: None
10+
selector:
11+
app: minio-mc
12+
---
213
apiVersion: apps/v1
314
kind: StatefulSet
415
metadata:
@@ -7,6 +18,7 @@ metadata:
718
app: minio-mc
819
spec:
920
replicas: 1
21+
serviceName: "minio-mc"
1022
selector:
1123
matchLabels:
1224
app: minio-mc
@@ -18,6 +30,5 @@ spec:
1830
containers:
1931
- name: minio-mc
2032
image: bitnami/minio:2022-debian-10
21-
command: ["/bin/sh"]
2233
stdin: true
2334
tty: true

tests/templates/kuttl/spark-pi-private-s3/00-setup-minio.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ commands:
1010
--set persistence.enabled=false
1111
--set buckets[0].name=my-bucket,buckets[0].policy=none
1212
--set users[0].accessKey=minioAccessKey,users[0].secretKey=minioSecretKey,users[0].policy=readwrite
13+
--set resources.requests.memory=1Gi
1314
--repo https://charts.min.io/ minio

tests/templates/kuttl/spark-pi-private-s3/02-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: spark-pi-deps-job
6-
timeout: 300
6+
timeout: 900
77
---
88
apiVersion: batch/v1
99
kind: Job

tests/templates/kuttl/spark-pi-private-s3/10-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: spark-pi
6-
timeout: 300
6+
timeout: 900
77
---
88
# The Job starting the whole process
99
apiVersion: batch/v1

tests/templates/kuttl/spark-pi-public-s3/00-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: minio
6-
timeout: 300
6+
timeout: 900
77
---
88
apiVersion: v1
99
kind: Service

tests/templates/kuttl/spark-pi-public-s3/00-s3-upload-container.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: minio-mc
6+
labels:
7+
app: minio-mc
8+
spec:
9+
clusterIP: None
10+
selector:
11+
app: minio-mc
12+
---
213
apiVersion: apps/v1
314
kind: StatefulSet
415
metadata:
@@ -7,6 +18,7 @@ metadata:
718
app: minio-mc
819
spec:
920
replicas: 1
21+
serviceName: "minio-mc"
1022
selector:
1123
matchLabels:
1224
app: minio-mc
@@ -18,6 +30,5 @@ spec:
1830
containers:
1931
- name: minio-mc
2032
image: bitnami/minio:2022-debian-10
21-
command: ["/bin/sh"]
2233
stdin: true
2334
tty: true

tests/templates/kuttl/spark-pi-public-s3/00-setup-minio.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ commands:
99
--set replicas=1
1010
--set persistence.enabled=false
1111
--set buckets[0].name=my-bucket,buckets[0].policy=public
12+
--set resources.requests.memory=1Gi
1213
--repo https://charts.min.io/ minio

tests/templates/kuttl/spark-pi-public-s3/02-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: spark-pi-deps-job
6-
timeout: 300
6+
timeout: 900
77
---
88
apiVersion: batch/v1
99
kind: Job

tests/templates/kuttl/spark-pi-public-s3/10-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
metadata:
55
name: spark-pi
6-
timeout: 300
6+
timeout: 900
77
---
88
# The Job starting the whole process
99
apiVersion: batch/v1

0 commit comments

Comments
 (0)