mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 20:07:06 +00:00
Fixed the tests.
This commit is contained in:
@@ -195,9 +195,9 @@ func TestMakeDetailedContainerNode(t *testing.T) {
|
||||
Pseudo: false,
|
||||
},
|
||||
Metadata: []report.MetadataRow{
|
||||
{ID: "docker_image_name", Label: "Image", Value: fixture.ServerContainerImageName, Priority: 1},
|
||||
{ID: "docker_container_state_human", Label: "State", Value: "running", Priority: 3},
|
||||
{ID: "docker_container_id", Label: "ID", Value: fixture.ServerContainerID, Priority: 10, Truncate: 12},
|
||||
{ID: "docker_image_name", Label: "Image name", Value: fixture.ServerContainerImageName, Priority: 2},
|
||||
{ID: "docker_container_state_human", Label: "State", Value: "running", Priority: 4},
|
||||
{ID: "docker_container_id", Label: "ID", Value: fixture.ServerContainerID, Priority: 11, Truncate: 12},
|
||||
},
|
||||
Metrics: []report.MetricRow{
|
||||
{
|
||||
|
||||
@@ -132,8 +132,8 @@ func TestMakeNodeSummary(t *testing.T) {
|
||||
Shape: "hexagon",
|
||||
},
|
||||
Metadata: []report.MetadataRow{
|
||||
{ID: docker.ImageName, Label: "Image", Value: fixture.ClientContainerImageName, Priority: 1},
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 10, Truncate: 12},
|
||||
{ID: docker.ImageName, Label: "Image name", Value: fixture.ClientContainerImageName, Priority: 2},
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 11, Truncate: 12},
|
||||
},
|
||||
Adjacency: report.MakeIDList(fixture.ServerContainerNodeID),
|
||||
},
|
||||
@@ -252,9 +252,9 @@ 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.ContainerStateHuman, Label: "State", Value: "running", Priority: 3},
|
||||
{ID: docker.ContainerIPs, Label: "IPs", Value: "10.10.10.0/24, 10.10.10.1/24", Priority: 7},
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 10, Truncate: 12},
|
||||
{ID: docker.ContainerStateHuman, Label: "State", Value: "running", Priority: 4},
|
||||
{ID: docker.ContainerIPs, Label: "IPs", Value: "10.10.10.0/24, 10.10.10.1/24", Priority: 8},
|
||||
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 11, Truncate: 12},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user