mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-27 19:16:16 +00:00
Remaining refactor for PodTemplateSpec and fixing test cases
This commit is contained in:
@@ -960,7 +960,7 @@ func TestEtcdUpdateController(t *testing.T) {
|
||||
registry := NewTestEtcdRegistry(fakeClient)
|
||||
err := registry.UpdateController(ctx, &api.ReplicationController{
|
||||
ObjectMeta: api.ObjectMeta{Name: "foo", ResourceVersion: strconv.FormatUint(resp.Node.ModifiedIndex, 10)},
|
||||
DesiredState: api.ReplicationControllerState{
|
||||
Spec: api.ReplicationControllerSpec{
|
||||
Replicas: 2,
|
||||
},
|
||||
})
|
||||
@@ -969,7 +969,7 @@ func TestEtcdUpdateController(t *testing.T) {
|
||||
}
|
||||
|
||||
ctrl, err := registry.GetController(ctx, "foo")
|
||||
if ctrl.DesiredState.Replicas != 2 {
|
||||
if ctrl.Spec.Replicas != 2 {
|
||||
t.Errorf("Unexpected controller: %#v", ctrl)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user