(t *testing.T)
| 278 | } |
| 279 | |
| 280 | func TestUpdateDeployment(t *testing.T) { |
| 281 | f := newFixture(t) |
| 282 | foo := newFoo("test", ptr.To[int32](1)) |
| 283 | _, ctx := ktesting.NewTestContext(t) |
| 284 | |
| 285 | d := newDeployment(foo) |
| 286 | |
| 287 | // Update replicas |
| 288 | foo.Spec.Replicas = ptr.To[int32](2) |
| 289 | expDeployment := newDeployment(foo) |
| 290 | |
| 291 | f.fooLister = append(f.fooLister, foo) |
| 292 | f.objects = append(f.objects, foo) |
| 293 | f.deploymentLister = append(f.deploymentLister, d) |
| 294 | f.kubeobjects = append(f.kubeobjects, d) |
| 295 | |
| 296 | f.expectUpdateFooStatusAction(foo) |
| 297 | f.expectUpdateDeploymentAction(expDeployment) |
| 298 | f.run(ctx, getRef(foo, t)) |
| 299 | } |
| 300 | |
| 301 | func TestNotControlledByUs(t *testing.T) { |
| 302 | f := newFixture(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…