diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-16 20:48:52 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-16 20:48:52 +0100 |
commit | 5496f081c1cbb9c9f92403a3023eaf6b393dad18 (patch) | |
tree | cec26e8474c0107978140365620289a4d7a2f8a2 /handler_test.go | |
parent | 9c0a0f4f07b473a9f740b8f6b9caec9dad8fde17 (diff) |
added TODOs
Diffstat (limited to 'handler_test.go')
-rw-r--r-- | handler_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
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() |