Skip to content

Commit

Permalink
Renamed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
neeleshkorade committed Feb 5, 2020
1 parent eb574e2 commit 6f654e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/v1alpha2/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 6f654e1

Please sign in to comment.