Skip to content

Commit bd936c5

Browse files
committed
Renamed test cases
1 parent 1437fda commit bd936c5

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
)
@@ -113,7 +114,7 @@ func TestConvertMachine(t *testing.T) {
113114
g := NewWithT(t)
114115

115116
t.Run("to hub", func(t *testing.T) {
116-
t.Run("should convert the Spec.ClusterName from label", func(t *testing.T) {
117+
t.Run("should convert all fields correctly", func(t *testing.T) {
117118
src := &Machine{
118119
ObjectMeta: metav1.ObjectMeta{
119120
Labels: map[string]string{
@@ -229,11 +230,11 @@ func TestConvertMachineSet(t *testing.T) {
229230
})
230231
}
231232

232-
func TestConvertMachineDeploymentSpec(t *testing.T) {
233+
func TestConvertMachineDeployment(t *testing.T) {
233234
g := NewWithT(t)
234235

235236
t.Run("to hub", func(t *testing.T) {
236-
t.Run("should convert the Spec.ClusterName from label", func(t *testing.T) {
237+
t.Run("should convert all fields correctly", func(t *testing.T) {
237238
src := &MachineDeployment{
238239
ObjectMeta: metav1.ObjectMeta{
239240
Labels: map[string]string{

0 commit comments

Comments
 (0)