Refactored the table component/model and wrote the tests

Backward-compatibility fix
This commit is contained in:
Filip Barl
2017-01-16 17:05:36 +01:00
parent 6888108b83
commit d3466b5454
14 changed files with 490 additions and 151 deletions
+4 -1
View File
@@ -34,16 +34,18 @@ func TestNodeTables(t *testing.T) {
want: []report.Table{
{
ID: docker.EnvPrefix,
Type: report.PropertyListType,
Label: "Environment Variables",
Rows: []report.Row{},
},
{
ID: docker.LabelPrefix,
Type: report.PropertyListType,
Label: "Docker Labels",
Rows: []report.Row{
{
ID: "label_label1",
Entries: map[string]string{
"id": "label_label1",
"label": "label1",
"value": "label1value",
},
@@ -52,6 +54,7 @@ func TestNodeTables(t *testing.T) {
},
{
ID: docker.ImageTableID,
Type: report.PropertyListType,
Label: "Image",
Rows: []report.Row{},
},