Skip to content

Commit

Permalink
Add test for Reaper HTTP management proxy when used with Stargate (#1099
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Miles-Garnsey authored Oct 26, 2023
1 parent 7725008 commit 338b863
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 123 deletions.
1 change: 1 addition & 0 deletions .github/workflows/kind_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
- CreateSingleDatacenterCluster
- CreateStargateAndDatacenter
- CreateSingleReaper
- CreateSingleReaperWStargateAndHTTP
- CreateReaperAndDatacenter
- CreateSingleMedusaJob
- CreateSingleDseMedusaJob
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ func TestOperator(t *testing.T) {
skipK8ssandraClusterCleanup: false,
doCassandraDatacenterCleanup: true,
}))
t.Run("CreateSingleReaperWStargateAndHTTP", e2eTest(ctx, &e2eTestOpts{
testFunc: createSingleReaper,
fixture: framework.NewTestFixture("stargate-reaper-http", controlPlane),
skipK8ssandraClusterCleanup: false,
doCassandraDatacenterCleanup: true,
}))
t.Run("CreateMultiReaper", e2eTest(ctx, &e2eTestOpts{
testFunc: createMultiReaper,
fixture: framework.NewTestFixture("multi-dc-reaper", controlPlane),
Expand All @@ -262,12 +268,6 @@ func TestOperator(t *testing.T) {
skipK8ssandraClusterCleanup: true,
doCassandraDatacenterCleanup: true,
}))
t.Run("CreateReaperHttpManagement", e2eTest(ctx, &e2eTestOpts{
testFunc: createReaperAndDatacenter, // same as above, ensure we can trigger repair. Only difference is that we use a fixture which enabled the HTTP management interface.
fixture: framework.NewTestFixture("reaper-http-management", dataPlanes[0]),
skipK8ssandraClusterCleanup: true,
doCassandraDatacenterCleanup: true,
}))
t.Run("ClusterScoped", func(t *testing.T) {
t.Run("MultiDcMultiCluster", e2eTest(ctx, &e2eTestOpts{
testFunc: multiDcMultiCluster,
Expand Down
67 changes: 0 additions & 67 deletions test/testdata/fixtures/reaper-http-management/cassdc.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions test/testdata/fixtures/reaper-http-management/reaper.yaml

This file was deleted.

58 changes: 58 additions & 0 deletions test/testdata/fixtures/stargate-reaper-http/k8ssandra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: k8ssandra.io/v1alpha1
kind: K8ssandraCluster
metadata:
name: test
spec:
reaper:
httpManagement:
enabled: true
heapSize: 256Mi
autoScheduling:
enabled: false
telemetry:
vector:
enabled: true
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 512Mi
stargate:
size: 1
heapSize: 384Mi
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 10
failureThreshold: 20
successThreshold: 1
timeoutSeconds: 20
readinessProbe:
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 20
successThreshold: 1
timeoutSeconds: 20
cassandra:
serverVersion: "3.11.14"
jmxInitContainerImage:
repository: library
name: busybox
datacenters:
- metadata:
name: dc1
k8sContext: kind-k8ssandra-0
size: 2
storageConfig:
cassandraDataVolumeClaimSpec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
config:
jvmOptions:
heapSize: 384Mi
mgmtAPIHeap: 64Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- k8ssandra.yaml

0 comments on commit 338b863

Please sign in to comment.