Skip to content

Commit

Permalink
Extend the REST API tests for ABACUS import from a file
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Jan 29, 2025
1 parent 6616095 commit 28e0372
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/rest-api.http
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,20 @@ Content-Type: application/xml
</AbaConnectContainer>
--e82bc39c68f1417d9ea12c5456182f3c--

# Add an import
:import := (with-temp-buffer (insert-file-contents "~/tmp/abacus.xml") (buffer-string))

# Add a production
POST http://localhost:3000/api/abacus/import
Accept: application/json
Content-Type: multipart/form-data; boundary=e82bc39c68f1417d9ea12c5456182f3c

--e82bc39c68f1417d9ea12c5456182f3c
Content-Disposition: form-data; name="file"; filename="SN1_DY99999.xml"
Content-Type: application/xml

:import
--e82bc39c68f1417d9ea12c5456182f3c--

################
# Alfresco API #
Expand Down

0 comments on commit 28e0372

Please sign in to comment.