Skip to content

Commit 8ee566d

Browse files
Merge pull request #143 from AKamyshnikova/fix-nodetool
Fix nodetool execution
2 parents ed804a8 + 57eedab commit 8ee566d

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
strategy:
8080
max-parallel: 2
8181
matrix:
82-
test-name: [operations, sidecars, scaling, multi-dcs, backup-restore]
82+
test-name: [operations, sidecars, scaling, multi-dcs, backup-restore, nodetool]
8383
steps:
8484
- id: lower-repo
8585
shell: pwsh

test/kuttl/nodetool/00-assert.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: apps/v1
2+
kind: StatefulSet
3+
metadata:
4+
name: cassandra-e2e-dc1-rack1
5+
status:
6+
currentReplicas: 2
7+
replicas: 2
8+
---
9+
apiVersion: db.orange.com/v2
10+
kind: CassandraCluster
11+
metadata:
12+
name: cassandra-e2e
13+
status:
14+
cassandraRackStatus:
15+
dc1-rack1:
16+
cassandraLastAction:
17+
name: Initializing
18+
status: Done
19+
phase: Running
20+
lastClusterAction: Initializing
21+
lastClusterActionStatus: Done
22+
phase: Running
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: db.orange.com/v2
2+
kind: CassandraCluster
3+
metadata:
4+
name: cassandra-e2e
5+
spec:
6+
nodesPerRacks: 2
7+
cassandraImage: cassandra:3.11.9
8+
autoPilot: true
9+
resources:
10+
limits:
11+
cpu: 300m
12+
memory: 512Mi
13+
topology:
14+
dc:
15+
- name: dc1
16+
rack:
17+
- name: rack1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kuttl.dev/v1beta1
3+
kind: TestStep
4+
commands:
5+
# Run nodetool status
6+
- script: kubectl exec cassandra-e2e-dc1-rack1-0 -- nodetool status

0 commit comments

Comments
 (0)