Skip to content

Commit 6f654e1

Browse files
committed
Renamed test cases
1 parent eb574e2 commit 6f654e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

api/v1alpha2/conversion_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)