Skip to content

Commit

Permalink
Merge pull request #143 from AKamyshnikova/fix-nodetool
Browse files Browse the repository at this point in the history
Fix nodetool execution
  • Loading branch information
AKamyshnikova authored Apr 15, 2024
2 parents ed804a8 + 57eedab commit 8ee566d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
test-name: [operations, sidecars, scaling, multi-dcs, backup-restore]
test-name: [operations, sidecars, scaling, multi-dcs, backup-restore, nodetool]
steps:
- id: lower-repo
shell: pwsh
Expand Down
22 changes: 22 additions & 0 deletions test/kuttl/nodetool/00-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: cassandra-e2e-dc1-rack1
status:
currentReplicas: 2
replicas: 2
---
apiVersion: db.orange.com/v2
kind: CassandraCluster
metadata:
name: cassandra-e2e
status:
cassandraRackStatus:
dc1-rack1:
cassandraLastAction:
name: Initializing
status: Done
phase: Running
lastClusterAction: Initializing
lastClusterActionStatus: Done
phase: Running
17 changes: 17 additions & 0 deletions test/kuttl/nodetool/00-createCluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: db.orange.com/v2
kind: CassandraCluster
metadata:
name: cassandra-e2e
spec:
nodesPerRacks: 2
cassandraImage: cassandra:3.11.9
autoPilot: true
resources:
limits:
cpu: 300m
memory: 512Mi
topology:
dc:
- name: dc1
rack:
- name: rack1
6 changes: 6 additions & 0 deletions test/kuttl/nodetool/01-nodetool-status.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
# Run nodetool status
- script: kubectl exec cassandra-e2e-dc1-rack1-0 -- nodetool status

0 comments on commit 8ee566d

Please sign in to comment.