@@ -32,7 +32,7 @@ import (
3232const (
3333 resourceName = "kubeblocks-opsrequest-editor-role, ClusterRole (rbac.authorization.k8s.io)"
3434 exceptRemove = `--- kubeblocks-opsrequest-editor-role, ClusterRole (rbac.authorization.k8s.io) 0.5.1-fake
35- +++
35+ +++
3636@@ -1,13 +1 @@
3737-apiVersion: rbac.authorization.k8s.io/v1
3838-kind: ClusterRole
@@ -46,7 +46,7 @@ const (
4646- change: 1
4747- slice:
4848- - {}
49-
49+
5050
5151`
5252 exceptAdd = `--- kubeblocks-opsrequest-editor-role, ClusterRole (rbac.authorization.k8s.io) 0.5.1-fake
@@ -299,14 +299,14 @@ data:
299299 It ("test OutputDiff CRD" , func () {
300300 crdRelease := buildRelease (crdObj )
301301 Expect (OutputDiff (crdRelease , nil , "0.5.1-fake" , "" , & out , false )).ShouldNot (HaveOccurred ())
302- Expect (out .String ()).Should (Equal (`CUSTOMRESOURCEDEFINITION MODE
303- kubeblocks-opsrequest-editor-role Removed
302+ Expect (out .String ()).Should (Equal (`CUSTOMRESOURCEDEFINITION MODE
303+ kubeblocks-opsrequest-editor-role Removed
304304
305305` ))
306306 out .Reset ()
307307 Expect (OutputDiff (nil , crdRelease , "" , "0.5.1-fake" , & out , false )).Should (Succeed ())
308- Expect (out .String ()).Should (Equal (`CUSTOMRESOURCEDEFINITION MODE
309- kubeblocks-opsrequest-editor-role Added
308+ Expect (out .String ()).Should (Equal (`CUSTOMRESOURCEDEFINITION MODE
309+ kubeblocks-opsrequest-editor-role Added
310310
311311` ))
312312 })
@@ -403,9 +403,9 @@ kubeblocks-opsrequest-editor-role Added
403403 apiB := removeAPIAndAddAPI ()
404404 outputCRDDiff (apiA , apiB , "Fake CRD" , & out )
405405 Expect (out .String ()).Should (Equal (`Fake CRD
406- API IS-REQUIRED MODE DETAILS
407- spec.newApi false Added
408- spec.namespace false Removed {"type":"string"}
406+ API IS-REQUIRED MODE DETAILS
407+ spec.newApi false Added
408+ spec.namespace false Removed {"type":"string"}
409409
410410` ))
411411 })
@@ -414,16 +414,16 @@ spec.namespace false Removed {"type":"string"}
414414 apiB := modifyTheField ()
415415 outputCRDDiff (apiA , apiB , "Fake CRD" , & out )
416416 Expect (out .String ()).Should (Equal (`Fake CRD
417- API IS-REQUIRED MODE DETAILS
418- spec.name true Modified {"type":"string"} -> {"maxLength":63,"type":"string"}
417+ API IS-REQUIRED MODE DETAILS
418+ spec.name true Modified {"type":"string"} -> {"maxLength":63,"type":"string"}
419419
420420` ))
421421 out .Reset ()
422422 apiB = modifyTheRequired ()
423423 outputCRDDiff (apiA , apiB , "Fake CRD" , & out )
424424 Expect (out .String ()).Should (Equal (`Fake CRD
425- API IS-REQUIRED MODE DETAILS
426- spec.name true -> false Modified
425+ API IS-REQUIRED MODE DETAILS
426+ spec.name true -> false Modified
427427
428428` ))
429429 })
0 commit comments