aboutsummaryrefslogtreecommitdiff
path: root/server/store
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-04-07 00:10:10 +0100
committerNiall Sheridan <nsheridan@gmail.com>2017-04-10 11:13:24 +0100
commitee93aa5df5ee713703d5ce0e5bb3ac85ad47e35e (patch)
treecfb86d020c8d57c71d0c513bae771576a7368af6 /server/store
parent85047e978b5783e9172a0a40e62542337d702720 (diff)
Populate all fields during test
Diffstat (limited to 'server/store')
-rw-r--r--server/store/store_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/store/store_test.go b/server/store/store_test.go
index 47e0f74..e8bebaf 100644
--- a/server/store/store_test.go
+++ b/server/store/store_test.go
@@ -45,9 +45,11 @@ func testStore(t *testing.T, db CertStorer) {
defer db.Close()
r := &CertRecord{
- KeyID: "a",
- CreatedAt: time.Now().UTC(),
- Expires: time.Now().UTC().Add(1 * time.Minute),
+ KeyID: "a",
+ Principals: []string{"b"},
+ CreatedAt: time.Now().UTC(),
+ Expires: time.Now().UTC().Add(1 * time.Minute),
+ Raw: "AAAAAA",
}
if err := db.SetRecord(r); err != nil {
t.Error(err)