@@ -25,6 +25,7 @@ import (
2525 "k8s.io/apimachinery/pkg/runtime"
2626 "k8s.io/utils/pointer"
2727 "sigs.k8s.io/cluster-api/api/v1alpha3"
28+ bootstrapv1a2 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1alpha2"
2829 bootstrapv1a3 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1alpha3"
2930 utilconversion "sigs.k8s.io/cluster-api/util/conversion"
3031)
@@ -110,7 +111,7 @@ func TestConvertMachine(t *testing.T) {
110111 g := NewWithT (t )
111112
112113 t .Run ("to hub" , func (t * testing.T ) {
113- t .Run ("should convert the Spec.ClusterName from label " , func (t * testing.T ) {
114+ t .Run ("should convert all fields correctly " , func (t * testing.T ) {
114115 src := & Machine {
115116 ObjectMeta : metav1.ObjectMeta {
116117 Labels : map [string ]string {
@@ -226,11 +227,11 @@ func TestConvertMachineSet(t *testing.T) {
226227 })
227228}
228229
229- func TestConvertMachineDeploymentSpec (t * testing.T ) {
230+ func TestConvertMachineDeployment (t * testing.T ) {
230231 g := NewWithT (t )
231232
232233 t .Run ("to hub" , func (t * testing.T ) {
233- t .Run ("should convert the Spec.ClusterName from label " , func (t * testing.T ) {
234+ t .Run ("should convert all fields correctly " , func (t * testing.T ) {
234235 src := & MachineDeployment {
235236 ObjectMeta : metav1.ObjectMeta {
236237 Labels : map [string ]string {
0 commit comments