mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
update testapi to eliminate redundant fields
This commit is contained in:
@@ -111,7 +111,7 @@ func TestPodAndContainerAttach(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAttach(t *testing.T) {
|
||||
version := testapi.Default.Version()
|
||||
version := testapi.Default.GroupVersion().Version
|
||||
tests := []struct {
|
||||
name, version, podPath, attachPath, container string
|
||||
pod *api.Pod
|
||||
@@ -195,7 +195,7 @@ func TestAttach(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAttachWarnings(t *testing.T) {
|
||||
version := testapi.Default.Version()
|
||||
version := testapi.Default.GroupVersion().Version
|
||||
tests := []struct {
|
||||
name, container, version, podPath, expectedErr, expectedOut string
|
||||
pod *api.Pod
|
||||
|
||||
Reference in New Issue
Block a user