From 8b1ee3e95010681d98d1b31af98f0ce0832cedd2 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Mon, 8 Jul 2019 23:15:32 +0100 Subject: Fix revocations query and UI Use `Exec` rather than `Query` to update revoked status `Query` works with MySQL but `Exec` is needed with sqlite Test that the key is revoked Correct column ordering --- server/store/store_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/store/store_test.go') diff --git a/server/store/store_test.go b/server/store/store_test.go index 628c539..90a494e 100644 --- a/server/store/store_test.go +++ b/server/store/store_test.go @@ -93,6 +93,9 @@ func testStore(t *testing.T, db CertStorer) { if err != nil { t.Error(err) } + if len(revoked) != 1 { + t.Errorf("Expected 1 revoked key, got %d", len(revoked)) + } for _, k := range revoked { if k.KeyID != "key" { t.Errorf("Unexpected key: %s", k.KeyID) -- cgit v1.2.3