Gets go-tests passing!

This commit is contained in:
Simon Howe
2016-06-02 12:42:23 +02:00
parent b1cd16d92d
commit 05ce661c19
2 changed files with 2 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ func TestContainer(t *testing.T) {
{
want := report.EmptySets.
Add("docker_container_ports", report.MakeStringSet("1.2.3.4:80->80/tcp", "81/tcp")).
Add("docker_container_networks", nil).
Add("docker_container_ips", report.MakeStringSet("1.2.3.4")).
Add("docker_container_ips_with_scopes", report.MakeStringSet(";1.2.3.4"))

View File

@@ -29,7 +29,7 @@ func TestNodeMetadata(t *testing.T) {
want: []report.MetadataRow{
{ID: docker.ContainerID, Label: "ID", Value: fixture.ClientContainerID, Priority: 1},
{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: 14},
{ID: docker.ContainerIPs, Label: "IPs", Value: "10.10.10.0/24, 10.10.10.1/24", Priority: 15},
},
},
{