mirror of
https://github.com/btouchard/ackify.git
synced 2026-05-07 15:42:05 -05:00
feat(csv): import expected signature from CSV
This commit is contained in:
@@ -88,7 +88,7 @@ func TestAdminHandler_GetDocumentStatus_WithUnexpectedSignatures(t *testing.T) {
|
||||
}
|
||||
|
||||
// Create admin handler
|
||||
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com")
|
||||
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com", 500)
|
||||
|
||||
// Create HTTP request
|
||||
req := httptest.NewRequest(http.MethodGet, "/api/v1/admin/documents/"+docID+"/status", nil)
|
||||
@@ -211,7 +211,7 @@ func TestAdminHandler_GetDocumentStatus_NoExpectedSigners(t *testing.T) {
|
||||
}
|
||||
|
||||
// Create admin handler
|
||||
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com")
|
||||
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com", 500)
|
||||
|
||||
// Create HTTP request
|
||||
req := httptest.NewRequest(http.MethodGet, "/api/v1/admin/documents/"+docID+"/status", nil)
|
||||
|
||||
@@ -160,7 +160,7 @@ func (m *mockSignatureService) GetDocumentSignatures(ctx context.Context, docID
|
||||
// ============================================================================
|
||||
|
||||
func createTestHandler(docRepo documentRepository, signerRepo expectedSignerRepository, reminderSvc reminderService, sigService signatureService) *Handler {
|
||||
return NewHandler(docRepo, signerRepo, reminderSvc, sigService, "https://test.example.com")
|
||||
return NewHandler(docRepo, signerRepo, reminderSvc, sigService, "https://test.example.com", 500)
|
||||
}
|
||||
|
||||
func createContextWithUser(email string, isAdmin bool) context.Context {
|
||||
|
||||
Reference in New Issue
Block a user