Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for Reaper HTTP management proxy when used with Stargate #1099

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading