feat(csv): import expected signature from CSV

This commit is contained in:
Benjamin
2025-11-27 09:03:38 +01:00
parent 533e62fcfe
commit 71a479d953
2 changed files with 3 additions and 3 deletions
@@ -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 {