Skip to content

Commit

Permalink
Merge pull request cscetbon#120 from cscetbon/fix-e2e
Browse files Browse the repository at this point in the history
Fix e2e backup tests
  • Loading branch information
AKamyshnikova authored Aug 29, 2023
2 parents 6dbe4b9 + c1fc1a0 commit a90acb8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 4 additions & 0 deletions test/kuttl/backup-restore/00-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 500
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down
19 changes: 11 additions & 8 deletions test/kuttl/backup-restore/00-createCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@ spec:
nodesPerRacks: 2
cassandraImage: cassandra:3.11.9
bootstrapImage: ghcr.io/cscetbon/casskop-bootstrap:0.1.12
dataCapacity: "256Mi"
dataCapacity: 256Mi
hardAntiAffinity: false
deletePVC: true
autoPilot: true
autoUpdateSeedList: false
dataStorageClass: local-path
backRestSidecar:
image: ghcr.io/cscetbon/instaclustr-icarus:1.1.3
resources: &resources
limits:
memory: 512Mi
cpu: 200m
resources: *resources
resources:
limits:
memory: 768Mi
cpu: 200m
topology:
dc:
- name: dc1
rack:
- name: rack1
backRestSidecar:
image: ghcr.io/cscetbon/instaclustr-icarus:1.1.3
resources:
limits:
memory: 512Mi
cpu: 500m
2 changes: 1 addition & 1 deletion test/kuttl/backup-restore/01-load-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
# Create and fill k1.standard1
- script: kubectl exec cassandra-e2e-dc1-rack1-0 -- /opt/cassandra/tools/bin/cassandra-stress write n=2000 cl=one -rate threads=1 -mode native cql3 user=cassandra password=cassandra -col names=c1 -schema 'compression=LZ4Compressor Keyspace=k1 replication(strategy=NetworkTopologyStrategy, dc1=2)'
- script: kubectl exec cassandra-e2e-dc1-rack1-0 -- /opt/cassandra/tools/bin/cassandra-stress write n=20 cl=one -rate threads=1 -mode native cql3 user=cassandra password=cassandra -col names=c1 -schema 'compression=LZ4Compressor Keyspace=k1 replication(strategy=NetworkTopologyStrategy, dc1=2)'
# Create k2.standard1
- script: kubectl exec cassandra-e2e-dc1-rack1-0 -- /opt/cassandra/tools/bin/cassandra-stress write n=0 cl=one -rate threads=1 -mode native cql3 user=cassandra password=cassandra -col names=c1 -schema 'compression=LZ4Compressor Keyspace=k2 replication(strategy=NetworkTopologyStrategy, dc1=2)'

0 comments on commit a90acb8

Please sign in to comment.