From 6f654e1c51dc53db686630ef1b676e800fdb0752 Mon Sep 17 00:00:00 2001 From: Neelesh Korade Date: Wed, 5 Feb 2020 10:10:15 +0530 Subject: [PATCH] Renamed test cases --- api/v1alpha2/conversion_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/v1alpha2/conversion_test.go b/api/v1alpha2/conversion_test.go index e65029e46ac4..796212ea7db8 100644 --- a/api/v1alpha2/conversion_test.go +++ b/api/v1alpha2/conversion_test.go @@ -25,6 +25,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/utils/pointer" "sigs.k8s.io/cluster-api/api/v1alpha3" + bootstrapv1a2 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1alpha2" bootstrapv1a3 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1alpha3" utilconversion "sigs.k8s.io/cluster-api/util/conversion" ) @@ -110,7 +111,7 @@ func TestConvertMachine(t *testing.T) { g := NewWithT(t) t.Run("to hub", func(t *testing.T) { - t.Run("should convert the Spec.ClusterName from label", func(t *testing.T) { + t.Run("should convert all fields correctly", func(t *testing.T) { src := &Machine{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ @@ -226,11 +227,11 @@ func TestConvertMachineSet(t *testing.T) { }) } -func TestConvertMachineDeploymentSpec(t *testing.T) { +func TestConvertMachineDeployment(t *testing.T) { g := NewWithT(t) t.Run("to hub", func(t *testing.T) { - t.Run("should convert the Spec.ClusterName from label", func(t *testing.T) { + t.Run("should convert all fields correctly", func(t *testing.T) { src := &MachineDeployment{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{