Self-test failures in Debian builds
Hi. I got some self-test failures with 0.10.0 when building for Debian, do you recognize these errors and have some ideas what they may be caused by? Debian builds ignore strict build dependency versioning, so keep in mind that errors may be due to using some other version of your build dependency than you expect. Are any self-checks accessing the Internet? If possible, I suggest first testing if Internet appears to be available, and if not make any tests that rely on Internet connectivity to be SKIP'ed. ``` ... === RUN TestGetTreeHead log_test.go:48: Unexpected status code, got 404, want 200 controller.go:269: missing call(s) to *mocks.MockLog.GetTreeHead(is anything) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/log_test.go:44 controller.go:269: aborting test due to missing call(s) --- FAIL: TestGetTreeHead (0.00s) === RUN TestGetInclusionProof log_test.go:109: Unexpected status code for "/foo/get-inclusion-proof", got 404, want 301 log_test.go:109: Unexpected status code for "/foo/get-inclusion-proof/", got 404, want 400 log_test.go:109: Unexpected status code for "/foo/get-inclusion-proof/x", got 404, want 400 log_test.go:109: Unexpected status code for "/foo/get-inclusion-proof/2/x", got 404, want 400 log_test.go:109: Unexpected status code for "/foo/get-inclusion-proof/2/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", got 404, want 200 log_test.go:115: Unexpected response for "/foo/get-inclusion-proof/2/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", got "404 page not found\n" , want "leaf_index=1\nnode_hash=0200000000000000000000000000000000000000000000000000000000000000\n" controller.go:269: missing call(s) to *mocks.MockLog.GetInclusionProof(is anything, is equal to {2 [170 170 170 170 170 170 170 170 170 170 170 170 170 170 170 17 0 170 170 170 170 170 170 170 170 170 170 170 170 170 170 170 170]} (requests.InclusionProof)) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/log_ test.go:104 controller.go:269: aborting test due to missing call(s) --- FAIL: TestGetInclusionProof (0.00s) === RUN TestGetConsistencyProof log_test.go:171: Unexpected status code for "/foo/get-consistency-proof", got 404, want 301 log_test.go:171: Unexpected status code for "/foo/get-consistency-proof/", got 404, want 400 log_test.go:171: Unexpected status code for "/foo/get-consistency-proof/x", got 404, want 400 log_test.go:171: Unexpected status code for "/foo/get-consistency-proof/2/x", got 404, want 400 log_test.go:171: Unexpected status code for "/foo/get-consistency-proof/2/5", got 404, want 200 log_test.go:177: Unexpected response for "/foo/get-consistency-proof/2/5", got "404 page not found\n", want "node_hash=0200000000000000000000000000000000000000000 000000000000000000000\n" controller.go:269: missing call(s) to *mocks.MockLog.GetConsistencyProof(is anything, is equal to {2 5} (requests.ConsistencyProof)) /build/sigsum-go-0.10.0/_buil d/src/sigsum.org/sigsum-go/pkg/server/log_test.go:166 controller.go:269: aborting test due to missing call(s) --- FAIL: TestGetConsistencyProof (0.00s) === RUN TestGetLeaves log_test.go:234: Unexpected status code for "/foo/get-leaves", got 404, want 301 log_test.go:234: Unexpected status code for "/foo/get-leaves/", got 404, want 400 log_test.go:234: Unexpected status code for "/foo/get-leaves/x", got 404, want 400 log_test.go:234: Unexpected status code for "/foo/get-leaves/2/x", got 404, want 400 log_test.go:234: Unexpected status code for "/foo/get-leaves/2/5", got 404, want 200 log_test.go:242: Unexpected response for "/foo/get-leaves/2/5", got "404 page not found\n", want "leaf=0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000\nleaf=0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000\nleaf=0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000\n" controller.go:269: missing call(s) to *mocks.MockLog.GetLeaves(is anything, is equal to {2 5} (requests.Leaves)) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/log_test.go:229 controller.go:269: aborting test due to missing call(s) --- FAIL: TestGetLeaves (0.00s) === RUN TestAddLeaf log_test.go:351: accepted: Unexpected status code for, got 404, want 202 log_test.go:354: accepted: response body: "404 page not found\n" controller.go:269: missing call(s) to *mocks.MockLog.AddLeaf(is anything, is equal to {[1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} (requests.Leaf), nil ptr to token.SubmitHeader) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/log_test.go:335 controller.go:269: aborting test due to missing call(s) --- FAIL: TestAddLeaf (0.00s) === RUN TestGetSecondaryTreeHead secondary_test.go:35: Unexpected status code, got 404, want 200 controller.go:269: missing call(s) to *mocks.MockSecondary.GetSecondaryTreeHead(is anything) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/secondary_test.go:31 controller.go:269: aborting test due to missing call(s) --- FAIL: TestGetSecondaryTreeHead (0.00s) === RUN TestGet server_test.go:93: Unexpected status code for "/foo/get-x", got 404, want 200 server_test.go:105: Unexpected response for "/foo/get-x", got "404 page not found\n", want "x-response\n" server_test.go:93: Unexpected status code for "/foo/get-x", got 404, want 405 server_test.go:105: Unexpected response for "/foo/get-x", got "404 page not found\n", want "Method Not Allowed\n" server_test.go:93: Unexpected status code for "/foo/get-y", got 404, want 301 server_test.go:101: Unexpected content type for "/foo/get-y", got "text/plain; charset=utf-8", want "text/html; charset=utf-8" server_test.go:93: Unexpected status code for "/foo/get-y/", got 404, want 400 server_test.go:105: Unexpected response for "/foo/get-y/", got "404 page not found\n", want "(400) missing y\n" server_test.go:93: Unexpected status code for "/foo/get-y/bar", got 404, want 200 server_test.go:105: Unexpected response for "/foo/get-y/bar", got "404 page not found\n", want "y-response: bar\n" --- FAIL: TestGet (0.00s) === RUN TestPost server_test.go:152: Unexpected status code for "/foo/add-x", got 404, want 200 server_test.go:164: Unexpected response for "/foo/add-x", got "404 page not found\n", want "add-x ok\n" server_test.go:152: Unexpected status code for "/foo/add-x", got 404, want 202 server_test.go:152: Unexpected status code for "/foo/add-x", got 404, want 405 --- FAIL: TestPost (0.00s) === RUN TestMetrics server_test.go:233: Unexpected status code for "/foo/get-x", got 404, want 301 server_test.go:233: Unexpected status code for "/foo/get-x/ok", got 404, want 200 controller.go:269: missing call(s) to *mocks.MockMetrics.OnResponse(is equal to get-x/ (string), is equal to 200 (int), is anything) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/server_test.go:218 controller.go:269: missing call(s) to *mocks.MockMetrics.OnRequest(is equal to get-x/ (string)) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/server_test.go:217 controller.go:269: aborting test due to missing call(s) --- FAIL: TestMetrics (0.00s) === RUN TestAddCheckpoint witness_test.go:85: Unexpected status code for "/foo/add-checkpoint", got 404 "404 page not found\n", want 200 witness_test.go:90: Unexpected response for "/foo/add-checkpoint", got "404 page not found\n", want "— example.org/witness AAECAwAAAAAAACtnEBESAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==\n" controller.go:269: missing call(s) to *mocks.MockWitness.AddCheckpoint(is anything, is equal to {3 {[[10 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]]} {{{5 [4 5 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} [7 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]} example.org/log [0 0 0 0]}} (requests.AddCheckpoint)) /build/sigsum-go-0.10.0/_build/src/sigsum.org/sigsum-go/pkg/server/witness_test.go:79 controller.go:269: aborting test due to missing call(s) --- FAIL: TestAddCheckpoint (0.00s) FAIL FAIL sigsum.org/sigsum-go/pkg/server 0.003s ... ``` /Simon
issue