mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
Fixes BE tests after exposing Truncate to the FE.
This commit is contained in:
@@ -27,7 +27,7 @@ func TestNodeMetadata(t *testing.T) {
|
||||
Add(docker.ContainerIPs, report.MakeStringSet("10.10.10.0/24", "10.10.10.1/24")),
|
||||
),
|
||||
want: []report.MetadataRow{
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 1},
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 1, Truncate: 12},
|
||||
{ID: docker.ContainerStateHuman, Label: "State", Value: "running", Priority: 2},
|
||||
{ID: docker.ContainerIPs, Label: "IPs", Value: "10.10.10.0/24, 10.10.10.1/24", Priority: 15},
|
||||
},
|
||||
|
||||
@@ -198,9 +198,9 @@ func TestMakeDetailedContainerNode(t *testing.T) {
|
||||
Linkable: true,
|
||||
Pseudo: false,
|
||||
Metadata: []report.MetadataRow{
|
||||
{ID: "docker_container_id", Label: "ID", Value: fixture.ServerContainerID, Priority: 1},
|
||||
{ID: "docker_container_id", Label: "ID", Value: fixture.ServerContainerID, Priority: 1, Truncate: 12},
|
||||
{ID: "docker_container_state_human", Label: "State", Value: "running", Priority: 2},
|
||||
{ID: "docker_image_id", Label: "Image ID", Value: fixture.ServerContainerImageID, Priority: 11},
|
||||
{ID: "docker_image_id", Label: "Image ID", Value: fixture.ServerContainerImageID, Priority: 11, Truncate: 12},
|
||||
},
|
||||
Metrics: []report.MetricRow{
|
||||
{
|
||||
|
||||
@@ -127,7 +127,7 @@ func TestMakeNodeSummary(t *testing.T) {
|
||||
Shape: "hexagon",
|
||||
Linkable: true,
|
||||
Metadata: []report.MetadataRow{
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 1},
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 1, Truncate: 12},
|
||||
},
|
||||
Adjacency: report.MakeIDList(fixture.ServerContainerNodeID),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user