Skip to content

Commit

Permalink
Revert "Fix Test Cases"
Browse files Browse the repository at this point in the history
This reverts commit b1f6c9b.
  • Loading branch information
rithick-ctds committed Nov 11, 2024
1 parent 80b1c36 commit 46d5380
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ private void assertValue(File tmpDir) {
PULSAR_EXTRA_OPTS: -Dpulsar.log.root.level=info
PULSAR_LOG_LEVEL: info
PULSAR_LOG_ROOT_LEVEL: info
ensemblePlacementPolicy: ""
zkServers: pulsar-cluster-zookeeper-ca:2181
replicas: 1
annotations: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ public void testDefaults() throws Exception {
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: pulsar
cluster: pulsar-spec-1
component: bookkeeper
resource-set: bookkeeper
name: pulsar-spec-1-bookkeeper-journal
spec:
accessModes:
Expand All @@ -269,6 +274,11 @@ public void testDefaults() throws Exception {
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: pulsar
cluster: pulsar-spec-1
component: bookkeeper
resource-set: bookkeeper
name: pulsar-spec-1-bookkeeper-ledgers
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,13 @@ private void assertResourceSetLabel(StatefulSet sts, String value) {
.getRequiredDuringSchedulingIgnoredDuringExecution()
.get(0)
.getLabelSelector().getMatchLabels().get(CRDConstants.LABEL_RESOURCESET), value);
Assert.assertEquals(
sts.getSpec().getVolumeClaimTemplates().get(0).getMetadata().getLabels()
.get(CRDConstants.LABEL_RESOURCESET), value);

Assert.assertEquals(
sts.getSpec().getVolumeClaimTemplates().get(1).getMetadata().getLabels()
.get(CRDConstants.LABEL_RESOURCESET), value);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ public void testDefaults() throws Exception {
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: pulsar
cluster: pulsar-spec-1
component: zookeeper
name: pulsar-spec-1-zookeeper-data
spec:
accessModes:
Expand Down

0 comments on commit 46d5380

Please sign in to comment.