Skip to content

Commit bef21d4

Browse files
Unit-test fixes
Signed-off-by: Malay Kumar Parida <[email protected]>
1 parent 16ea320 commit bef21d4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

controllers/storagecluster/cephblockpools_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ func assertCephBlockPools(t *testing.T, reconciler StorageClusterReconciler, cr
159159
FailureDomain: getFailureDomain(cr),
160160
Replicated: generateCephReplicatedSpec(cr, poolTypeData),
161161
EnableRBDStats: true,
162+
Parameters: map[string]string{
163+
"bulk": "true",
164+
},
162165
},
163166
},
164167
}

controllers/storagecluster/cephobjectstores_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ func TestCephObjectStores(t *testing.T) {
4747

4848
func assertCephObjectStores(t *testing.T, reconciler StorageClusterReconciler, cr *api.StorageCluster, request reconcile.Request) {
4949
expectedCos, err := reconciler.newCephObjectStoreInstances(cr, nil)
50+
expectedCos[0].Spec.MetadataPool.Parameters = map[string]string{
51+
"bulk": "true",
52+
}
53+
expectedCos[0].Spec.DataPool.Parameters = map[string]string{
54+
"bulk": "true",
55+
}
56+
5057
assert.NoError(t, err)
5158

5259
actualCos := &cephv1.CephObjectStore{

0 commit comments

Comments
 (0)