Commit a1b6eeef authored by Jan Safranek's avatar Jan Safranek

Update kubectl unit test

parent fa93f1c4
...@@ -118,7 +118,7 @@ func TestKindFor(t *testing.T) { ...@@ -118,7 +118,7 @@ func TestKindFor(t *testing.T) {
}{ }{
{ {
in: schema.GroupVersionResource{Group: "storage.k8s.io", Version: "", Resource: "sc"}, in: schema.GroupVersionResource{Group: "storage.k8s.io", Version: "", Resource: "sc"},
expected: schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1beta1", Kind: "StorageClass"}, expected: schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "StorageClass"},
srvRes: []*metav1.APIResourceList{ srvRes: []*metav1.APIResourceList{
{ {
GroupVersion: "storage.k8s.io/v1beta1", GroupVersion: "storage.k8s.io/v1beta1",
...@@ -133,7 +133,7 @@ func TestKindFor(t *testing.T) { ...@@ -133,7 +133,7 @@ func TestKindFor(t *testing.T) {
}, },
{ {
in: schema.GroupVersionResource{Group: "", Version: "", Resource: "sc"}, in: schema.GroupVersionResource{Group: "", Version: "", Resource: "sc"},
expected: schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1beta1", Kind: "StorageClass"}, expected: schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "StorageClass"},
srvRes: []*metav1.APIResourceList{ srvRes: []*metav1.APIResourceList{
{ {
GroupVersion: "storage.k8s.io/v1beta1", GroupVersion: "storage.k8s.io/v1beta1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment