Skip to content

Commit 3faabfb

Browse files
committed
crc_test: Expect Get verb in tests after patching
1 parent bf5a14d commit 3faabfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controller/container-runtime-config/container_runtime_config_controller_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ func TestContainerRuntimeConfigCreate(t *testing.T) {
658658
f.expectUpdateContainerRuntimeConfigRoot(ctrcfg1)
659659
f.expectCreateMachineConfigAction(mcs1)
660660
f.expectPatchContainerRuntimeConfig(ctrcfg1, ctrcfgPatchBytes)
661+
f.expectGetMachineConfigAction(mcs2)
661662
f.expectUpdateContainerRuntimeConfig(ctrcfg1)
662663

663664
f.run(getKey(ctrcfg1, t))
@@ -698,6 +699,7 @@ func TestContainerRuntimeConfigUpdate(t *testing.T) {
698699
f.expectUpdateContainerRuntimeConfigRoot(ctrcfg1)
699700
f.expectCreateMachineConfigAction(mcs)
700701
f.expectPatchContainerRuntimeConfig(ctrcfg1, ctrcfgPatchBytes)
702+
f.expectGetMachineConfigAction(mcs)
701703
f.expectUpdateContainerRuntimeConfig(ctrcfg1)
702704

703705
c := f.newController()
@@ -740,6 +742,7 @@ func TestContainerRuntimeConfigUpdate(t *testing.T) {
740742
f.expectUpdateContainerRuntimeConfig(ctrcfgUpdate)
741743
f.expectUpdateMachineConfigAction(mcsUpdate)
742744
f.expectPatchContainerRuntimeConfig(ctrcfgUpdate, ctrcfgPatchBytes)
745+
f.expectGetMachineConfigAction(mcsUpdate)
743746
f.expectUpdateContainerRuntimeConfig(ctrcfgUpdate)
744747

745748
f.validateActions()
@@ -1651,6 +1654,7 @@ func TestCtrruntimeConfigMultiCreate(t *testing.T) {
16511654
f.expectUpdateContainerRuntimeConfigRoot(ccr)
16521655
f.expectCreateMachineConfigAction(mcs)
16531656
f.expectPatchContainerRuntimeConfig(ccr, []byte(expectedPatch))
1657+
f.expectGetMachineConfigAction(mcs)
16541658
f.expectUpdateContainerRuntimeConfig(ccr)
16551659
f.run(poolName)
16561660
}
@@ -1760,6 +1764,7 @@ func TestAddAnnotationExistingContainerRuntimeConfig(t *testing.T) {
17601764
f.expectUpdateContainerRuntimeConfigRoot(ctrc)
17611765
f.expectUpdateMachineConfigAction(ctrcfgMC)
17621766
f.expectPatchContainerRuntimeConfig(ctrc, []byte("{}"))
1767+
f.expectGetMachineConfigAction(ctrcfgMC)
17631768
f.expectUpdateContainerRuntimeConfig(ctrc)
17641769

17651770
c := f.newController()

0 commit comments

Comments
 (0)