Skip to content

Commit c40e6b4

Browse files
fix: update tests to accommodate changes
Signed-off-by: Steffen Karlsson <[email protected]>
1 parent 2f9aafb commit c40e6b4

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

internal/integration/helpers_test.go

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,14 @@ func createMachine(ctx context.Context, t *testing.T, c client.Client, cluster *
110110
Spec: capiv1.MachineSpec{
111111
ClusterName: cluster.Name,
112112
Bootstrap: capiv1.Bootstrap{
113-
ConfigRef: corev1.ObjectReference{
114-
Kind: "TalosConfig",
115-
APIVersion: bootstrapv1alpha3.GroupVersion.String(),
116-
Name: talosconfig.GetName(),
117-
Namespace: talosconfig.GetNamespace(),
118-
UID: talosconfig.GetUID(),
113+
ConfigRef: capiv1.ContractVersionedObjectReference{
114+
Kind: "TalosConfig",
115+
APIGroup: bootstrapv1alpha3.GroupVersion.Group,
116+
Name: talosconfig.GetName(),
119117
},
120118
},
121-
InfrastructureRef: corev1.ObjectReference{
122-
Name: generateName(t, "infrastructure"),
123-
Namespace: cluster.Namespace,
119+
InfrastructureRef: capiv1.ContractVersionedObjectReference{
120+
Name: generateName(t, "infrastructure"),
124121
},
125122
},
126123
}

internal/integration/integration_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ func TestIntegration(t *testing.T) {
427427

428428
require.NoError(t, ctx.Err())
429429

430-
assert.Equal(t, capiv1.ConditionSeverityError, *conditions.GetSeverity(talosConfig, bootstrapv1alpha3.DataSecretAvailableCondition))
431430
assert.Equal(t,
432431
"failure applying rfc6902 patches to talos machine config: add operation does not apply: doc is missing path: \"/machine/time/servers\": missing value",
433432
conditions.GetMessage(talosConfig, bootstrapv1alpha3.DataSecretAvailableCondition))

0 commit comments

Comments
 (0)