mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
apiextensions-apiserver: update test for CRD custom columns to jsonpath output of non-primitive type
This commit is contained in:
parent
ba386aba4f
commit
f092c38840
@ -245,7 +245,7 @@ func TestTableGet(t *testing.T) {
|
|||||||
if got, expected := tbl.Rows[0].Cells[4], interface{}(nil); got != expected {
|
if got, expected := tbl.Rows[0].Cells[4], interface{}(nil); got != expected {
|
||||||
t.Errorf("expected cell[4] to equal %#v although the type does not match the column, got %#v", expected, got)
|
t.Errorf("expected cell[4] to equal %#v although the type does not match the column, got %#v", expected, got)
|
||||||
}
|
}
|
||||||
if got, expected := tbl.Rows[0].Cells[5], "[1 2 3]"; got != expected {
|
if got, expected := tbl.Rows[0].Cells[5], "[1,2,3]"; got != expected {
|
||||||
t.Errorf("expected cell[5] to equal %q, got %q", expected, got)
|
t.Errorf("expected cell[5] to equal %q, got %q", expected, got)
|
||||||
}
|
}
|
||||||
// Validate extra column for v1
|
// Validate extra column for v1
|
||||||
@ -343,7 +343,7 @@ func TestTableGet(t *testing.T) {
|
|||||||
if got, expected := tbl.Rows[0].Cells[4], interface{}(nil); got != expected {
|
if got, expected := tbl.Rows[0].Cells[4], interface{}(nil); got != expected {
|
||||||
t.Errorf("expected cell[4] to equal %#v although the type does not match the column, got %#v", expected, got)
|
t.Errorf("expected cell[4] to equal %#v although the type does not match the column, got %#v", expected, got)
|
||||||
}
|
}
|
||||||
if got, expected := tbl.Rows[0].Cells[5], "[1 2 3]"; got != expected {
|
if got, expected := tbl.Rows[0].Cells[5], "[1,2,3]"; got != expected {
|
||||||
t.Errorf("expected cell[5] to equal %q, got %q", expected, got)
|
t.Errorf("expected cell[5] to equal %q, got %q", expected, got)
|
||||||
}
|
}
|
||||||
// Validate extra column for v1
|
// Validate extra column for v1
|
||||||
|
Loading…
Reference in New Issue
Block a user