tests and cleanup

This commit is contained in:
Livio Amstutz 2021-10-28 15:21:47 +02:00
parent d0b8dfe340
commit 1d72aff00a
11 changed files with 468 additions and 123 deletions

View file

@ -46,20 +46,20 @@ func TestKeys(t *testing.T) {
`,
},
},
//{
// name: "empty list",
// args: args{
// k: func() op.KeyProvider {
// m := mock.NewMockKeyProvider(gomock.NewController(t))
// m.EXPECT().GetKeySet(gomock.Any()).Return(nil, nil)
// return m
// }(),
// },
// res: res{
// statusCode: http.StatusInternalServerError,
// contentType: "application/json",
// },
//},
{
name: "empty list",
args: args{
k: func() op.KeyProvider {
m := mock.NewMockKeyProvider(gomock.NewController(t))
m.EXPECT().GetKeySet(gomock.Any()).Return(nil, nil)
return m
}(),
},
res: res{
statusCode: http.StatusOK,
contentType: "application/json",
},
},
{
name: "list",
args: args{