Fix tests

This commit is contained in:
Alfonso Acosta
2016-10-18 17:06:54 +00:00
parent bd3ececb11
commit 43f4da0ecc
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ func TestContainer(t *testing.T) {
}
want := report.MakeNodeWith("ping;<container>", map[string]string{
"docker_container_command": " ",
"docker_container_created": "01 Jan 01 00:00 UTC",
"docker_container_created": "0001-01-01T00:00:00Z",
"docker_container_id": "ping",
"docker_container_name": "pong",
"docker_image_id": "baz",

View File

@@ -202,7 +202,7 @@ func TestReporter(t *testing.T) {
{pod2ID, serviceID, map[string]string{
kubernetes.Name: "pong-b",
kubernetes.Namespace: "ping",
kubernetes.Created: pod1.Created(),
kubernetes.Created: pod2.Created(),
}},
} {
node, ok := rpt.Pod.Nodes[pod.id]
@@ -231,7 +231,7 @@ func TestReporter(t *testing.T) {
for k, want := range map[string]string{
kubernetes.Name: "pongservice",
kubernetes.Namespace: "ping",
kubernetes.Created: pod1.Created(),
kubernetes.Created: service1.Created(),
} {
if have, ok := node.Latest.Lookup(k); !ok || have != want {
t.Errorf("Expected service %s latest %q: %q, got %q", serviceID, k, want, have)