This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-support: fix bug where multipart json body isn't automatically pa…
…rsed Explicitly parse the metadata parameter of the multipart form body to JSON as the rack middleware doesn't automatically parse this as it does with "Content-type: application/json" requests.
- Loading branch information
1 parent
55b3ef2
commit 0501351
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1801,7 +1801,7 @@ Feature: Browsing via API | |
{"error":"The identifier document1.txt is used for multiple documents"} | ||
""" | ||
|
||
@api_add_item @test | ||
@api_add_item | ||
Scenario: Add an item with a single document file as a multipart http request | ||
Given I make a JSON post request for the collections page with the API token for "[email protected]" with JSON params | ||
| name | collection_metadata | | ||
|
@@ -1824,7 +1824,7 @@ Feature: Browsing via API | |
""" | ||
|
||
# ToDo: fix rpec post request merging hashes (document hashes) in array, see: http://stackoverflow.com/questions/18337609/rspec-request-test-merges-hashes-in-array-in-post-json-params | ||
# @api_add_item @test | ||
# @api_add_item | ||
# Scenario: Add an item with many document files as a multipart http request | ||
# Given I make a JSON post request for the collections page with the API token for "[email protected]" with JSON params | ||
# | name | collection_metadata | | ||
|
@@ -1852,7 +1852,7 @@ Feature: Browsing via API | |
# """ | ||
|
||
# ToDo: remove following workaround test once previous api_steps are fixed so that the previous test passes | ||
@api_add_item @test | ||
@api_add_item | ||
Scenario: Add an item with many document files as a multipart http request | ||
Given I make a JSON post request for the collections page with the API token for "[email protected]" with JSON params | ||
| name | collection_metadata | | ||
|