diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-04-07 00:10:10 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-04-10 11:13:24 +0100 |
commit | ee93aa5df5ee713703d5ce0e5bb3ac85ad47e35e (patch) | |
tree | cfb86d020c8d57c71d0c513bae771576a7368af6 /server/store | |
parent | 85047e978b5783e9172a0a40e62542337d702720 (diff) |
Populate all fields during test
Diffstat (limited to 'server/store')
-rw-r--r-- | server/store/store_test.go | 8 |
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) |