@@ -121,6 +121,7 @@ func TestNewFromWatches(t *testing.T) {
121
121
Kind : "NoFinalizer" ,
122
122
},
123
123
Path : validTemplate .ValidPlaybook ,
124
+ manageStatus : true ,
124
125
reconcilePeriod : & twoSeconds ,
125
126
},
126
127
schema.GroupVersionKind {
@@ -133,7 +134,8 @@ func TestNewFromWatches(t *testing.T) {
133
134
Group : "app.example.com" ,
134
135
Kind : "Playbook" ,
135
136
},
136
- Path : validTemplate .ValidPlaybook ,
137
+ Path : validTemplate .ValidPlaybook ,
138
+ manageStatus : true ,
137
139
Finalizer : & Finalizer {
138
140
Name : "finalizer.app.example.com" ,
139
141
Role : validTemplate .ValidRole ,
@@ -152,6 +154,7 @@ func TestNewFromWatches(t *testing.T) {
152
154
},
153
155
Path : validTemplate .ValidPlaybook ,
154
156
reconcilePeriod : & zeroSeconds ,
157
+ manageStatus : true ,
155
158
},
156
159
schema.GroupVersionKind {
157
160
Version : "v1alpha1" ,
@@ -202,7 +205,8 @@ func TestNewFromWatches(t *testing.T) {
202
205
Group : "app.example.com" ,
203
206
Kind : "Role" ,
204
207
},
205
- Path : validTemplate .ValidRole ,
208
+ Path : validTemplate .ValidRole ,
209
+ manageStatus : true ,
206
210
Finalizer : & Finalizer {
207
211
Name : "finalizer.app.example.com" ,
208
212
Playbook : validTemplate .ValidPlaybook ,
@@ -237,6 +241,9 @@ func TestNewFromWatches(t *testing.T) {
237
241
if run .GVK != expectedR .GVK {
238
242
t .Fatalf ("the GVK: %v\n unexpected GVK: %#v\n expected GVK: %#v" , k , run .GVK , expectedR .GVK )
239
243
}
244
+ if run .manageStatus != expectedR .manageStatus {
245
+ t .Fatalf ("the GVK: %v\n unexpected manageStatus:%#v\n expected manageStatus: %#v" , k , run .manageStatus , expectedR .manageStatus )
246
+ }
240
247
if run .Finalizer != expectedR .Finalizer {
241
248
if run .Finalizer .Name != expectedR .Finalizer .Name || run .Finalizer .Playbook != expectedR .Finalizer .Playbook || run .Finalizer .Role != expectedR .Finalizer .Role || reflect .DeepEqual (run .Finalizer .Vars ["sentinel" ], expectedR .Finalizer .Vars ["sentininel" ]) {
242
249
t .Fatalf ("the GVK: %v\n unexpected finalizer: %#v\n expected finalizer: %#v" , k , run .Finalizer , expectedR .Finalizer )
0 commit comments