Merge pull request #68777 from stewart-yu/patch-1

remove unneed parameter in test struct
This commit is contained in:
k8s-ci-robot 2018-10-12 16:01:23 -07:00 committed by GitHub
commit 793b8752d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,13 +25,11 @@ import (
func TestGenerateStorageVersionMap(t *testing.T) { func TestGenerateStorageVersionMap(t *testing.T) {
testCases := []struct { testCases := []struct {
legacyVersion string
storageVersions string storageVersions string
defaultVersions string defaultVersions string
expectedMap map[string]schema.GroupVersion expectedMap map[string]schema.GroupVersion
}{ }{
{ {
legacyVersion: "v1",
storageVersions: "v1,extensions/v1beta1", storageVersions: "v1,extensions/v1beta1",
expectedMap: map[string]schema.GroupVersion{ expectedMap: map[string]schema.GroupVersion{
"": {Version: "v1"}, "": {Version: "v1"},
@ -39,7 +37,6 @@ func TestGenerateStorageVersionMap(t *testing.T) {
}, },
}, },
{ {
legacyVersion: "",
storageVersions: "extensions/v1beta1,v1", storageVersions: "extensions/v1beta1,v1",
expectedMap: map[string]schema.GroupVersion{ expectedMap: map[string]schema.GroupVersion{
"": {Version: "v1"}, "": {Version: "v1"},
@ -47,7 +44,6 @@ func TestGenerateStorageVersionMap(t *testing.T) {
}, },
}, },
{ {
legacyVersion: "",
storageVersions: "autoscaling=extensions/v1beta1,v1", storageVersions: "autoscaling=extensions/v1beta1,v1",
defaultVersions: "extensions/v1beta1,v1,autoscaling/v1", defaultVersions: "extensions/v1beta1,v1,autoscaling/v1",
expectedMap: map[string]schema.GroupVersion{ expectedMap: map[string]schema.GroupVersion{
@ -57,7 +53,6 @@ func TestGenerateStorageVersionMap(t *testing.T) {
}, },
}, },
{ {
legacyVersion: "",
storageVersions: "", storageVersions: "",
expectedMap: map[string]schema.GroupVersion{}, expectedMap: map[string]schema.GroupVersion{},
}, },