@@ -658,6 +658,7 @@ func TestContainerRuntimeConfigCreate(t *testing.T) {
658
658
f .expectUpdateContainerRuntimeConfigRoot (ctrcfg1 )
659
659
f .expectCreateMachineConfigAction (mcs1 )
660
660
f .expectPatchContainerRuntimeConfig (ctrcfg1 , ctrcfgPatchBytes )
661
+ f .expectGetMachineConfigAction (mcs2 )
661
662
f .expectUpdateContainerRuntimeConfig (ctrcfg1 )
662
663
663
664
f .run (getKey (ctrcfg1 , t ))
@@ -698,6 +699,7 @@ func TestContainerRuntimeConfigUpdate(t *testing.T) {
698
699
f .expectUpdateContainerRuntimeConfigRoot (ctrcfg1 )
699
700
f .expectCreateMachineConfigAction (mcs )
700
701
f .expectPatchContainerRuntimeConfig (ctrcfg1 , ctrcfgPatchBytes )
702
+ f .expectGetMachineConfigAction (mcs )
701
703
f .expectUpdateContainerRuntimeConfig (ctrcfg1 )
702
704
703
705
c := f .newController ()
@@ -740,6 +742,7 @@ func TestContainerRuntimeConfigUpdate(t *testing.T) {
740
742
f .expectUpdateContainerRuntimeConfig (ctrcfgUpdate )
741
743
f .expectUpdateMachineConfigAction (mcsUpdate )
742
744
f .expectPatchContainerRuntimeConfig (ctrcfgUpdate , ctrcfgPatchBytes )
745
+ f .expectGetMachineConfigAction (mcsUpdate )
743
746
f .expectUpdateContainerRuntimeConfig (ctrcfgUpdate )
744
747
745
748
f .validateActions ()
@@ -1651,6 +1654,7 @@ func TestCtrruntimeConfigMultiCreate(t *testing.T) {
1651
1654
f .expectUpdateContainerRuntimeConfigRoot (ccr )
1652
1655
f .expectCreateMachineConfigAction (mcs )
1653
1656
f .expectPatchContainerRuntimeConfig (ccr , []byte (expectedPatch ))
1657
+ f .expectGetMachineConfigAction (mcs )
1654
1658
f .expectUpdateContainerRuntimeConfig (ccr )
1655
1659
f .run (poolName )
1656
1660
}
@@ -1760,6 +1764,7 @@ func TestAddAnnotationExistingContainerRuntimeConfig(t *testing.T) {
1760
1764
f .expectUpdateContainerRuntimeConfigRoot (ctrc )
1761
1765
f .expectUpdateMachineConfigAction (ctrcfgMC )
1762
1766
f .expectPatchContainerRuntimeConfig (ctrc , []byte ("{}" ))
1767
+ f .expectGetMachineConfigAction (ctrcfgMC )
1763
1768
f .expectUpdateContainerRuntimeConfig (ctrc )
1764
1769
1765
1770
c := f .newController ()
0 commit comments