Skip to content

Commit e72ccce

Browse files
test: Extend the snapshot-s3 test to a complete backup and restore test (#87)
* test: Extend snapshot-s3 test with complete backup and restore * test: Rename test snapshot-s3 to backup-restore * test(backup-restore): Use dedicated admin certificates * test(backup-restore): Use truststore ConfigMap instead of TLS volumes
1 parent 82f5a2e commit e72ccce

35 files changed

+1266
-79
lines changed
File renamed without changes.

tests/templates/kuttl/snapshot-s3/01-rbac.yaml renamed to tests/templates/kuttl/backup-restore/01-rbac.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ rules:
1717
- privileged
1818
verbs:
1919
- use
20+
- apiGroups:
21+
- ""
22+
resources:
23+
- secrets
24+
verbs:
25+
# The jobs creating the admin certificates need the permission to insert them into Secrets.
26+
- create
2027
---
2128
kind: RoleBinding
2229
apiVersion: rbac.authorization.k8s.io/v1
File renamed without changes.

tests/templates/kuttl/snapshot-s3/02-install-vector-aggregator-discovery-config-map.yaml.j2 renamed to tests/templates/kuttl/backup-restore/02-install-vector-aggregator-discovery-config-map.yaml.j2

File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: secrets.stackable.tech/v1alpha1
3+
kind: TrustStore
4+
metadata:
5+
name: truststore-pem
6+
spec:
7+
secretClassName: tls
8+
format: tls-pem
9+
targetKind: ConfigMap
File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: s3-credentials
6+
stringData:
7+
s3.client.default.access_key: openSearchAccessKey
8+
s3.client.default.secret_key: openSearchSecretKey
File renamed without changes.

tests/templates/kuttl/snapshot-s3/11-install-minio.yaml.j2 renamed to tests/templates/kuttl/backup-restore/11-install-minio.yaml

File renamed without changes.

tests/templates/kuttl/snapshot-s3/11_minio-values.yaml.j2 renamed to tests/templates/kuttl/backup-restore/11_minio-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ persistence:
2525
provisioning:
2626
enabled: true
2727
buckets:
28-
- name: opensearch
28+
- name: opensearch-data
2929
users:
3030
- username: integrationtest
3131
password: integrationtest

0 commit comments

Comments
 (0)