From 5496f081c1cbb9c9f92403a3023eaf6b393dad18 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 16 Nov 2020 20:48:52 +0100 Subject: added TODOs --- handler_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'handler_test.go') diff --git a/handler_test.go b/handler_test.go index 9f38da9..87f06a2 100644 --- a/handler_test.go +++ b/handler_test.go @@ -157,6 +157,7 @@ func TestGetAnchors(t *testing.T) { t.Errorf("failed unmarshaling trust anchors response: %v", err) return } + // TODO: add an additional root so that it is an actual list if got, want := len(derAnchors), len(th.instance.LogParameters.AnchorList); got != want { t.Errorf("unexpected trust anchor count %d, want %d", got, want) } @@ -339,6 +340,7 @@ func TestAddEntry(t *testing.T) { req.Header.Set("Content-Type", "application/json") if table.trsp != nil || table.terr != nil { + // TODO: replace gomock.Any with a check that leaf and appendix are OK, e.g., chain length should be 3 th.client.EXPECT().QueueLeaf(testdata.NewDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) } w := httptest.NewRecorder() -- cgit v1.2.3