wire through humanreadable flags

This commit is contained in:
juanvallejo
2018-03-29 15:50:09 -04:00
parent d371be33f7
commit a3a430ce01
9 changed files with 309 additions and 22 deletions

View File

@@ -18,9 +18,6 @@ package printers_test
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"strings"
"testing"
@@ -32,17 +29,6 @@ import (
func TestNamePrinterSupportsExpectedFormats(t *testing.T) {
testObject := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo"}}
customColumnsFile, err := ioutil.TempFile("", "printers_jsonpath_flags")
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
defer func(tempFile *os.File) {
tempFile.Close()
os.Remove(tempFile.Name())
}(customColumnsFile)
fmt.Fprintf(customColumnsFile, "NAME\n.metadata.name")
testCases := []struct {
name string
outputFormat string