-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up the code a bit, mainly `api/sword/helpers.py` which was not using the Pipeline model to interact with the API. Other minor changes have been added.
- Loading branch information
Showing
7 changed files
with
165 additions
and
58 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
24 changes: 24 additions & 0 deletions
24
storage_service/locations/fixtures/vcr_cassettes/pipeline_approve_transfer.yaml
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
interactions: | ||
- request: | ||
body: !!python/unicode directory=Foobar1&type=standard | ||
headers: | ||
Accept: ['*/*'] | ||
Accept-Encoding: ['gzip, deflate'] | ||
Authorization: ['ApiKey test:test'] | ||
Connection: [keep-alive] | ||
Content-Length: ['31'] | ||
Content-Type: [application/x-www-form-urlencoded] | ||
User-Agent: [python-requests/2.14.2] | ||
method: POST | ||
uri: http://archivematica-dashboard:8000/api/transfer/approve/ | ||
response: | ||
body: {string: !!python/unicode '{"message": "Approval successful.", "uuid": "090b7f5b-637b-400b-9014-3eb58986fe8f"}'} | ||
headers: | ||
connection: [keep-alive] | ||
content-language: [en] | ||
content-type: [application/json] | ||
date: ['Wed, 29 Nov 2017 22:36:35 GMT'] | ||
server: [gunicorn/19.7.1] | ||
vary: ['Accept-Language, Cookie'] | ||
status: {code: 200, message: OK} | ||
version: 1 |
23 changes: 23 additions & 0 deletions
23
storage_service/locations/fixtures/vcr_cassettes/pipeline_list_unapproved_transfers.yaml
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: ['*/*'] | ||
Accept-Encoding: ['gzip, deflate'] | ||
Authorization: ['ApiKey test:test'] | ||
Connection: [keep-alive] | ||
User-Agent: [python-requests/2.14.2] | ||
method: GET | ||
uri: http://archivematica-dashboard:8000/api/transfer/unapproved/ | ||
response: | ||
body: {string: !!python/unicode '{"message": "Fetched unapproved transfers successfully.", | ||
"results": [{"directory": "Foobar1", "type": "standard", "uuid": "090b7f5b-637b-400b-9014-3eb58986fe8f"}]}'} | ||
headers: | ||
connection: [keep-alive] | ||
content-language: [en] | ||
content-type: [application/json] | ||
date: ['Wed, 29 Nov 2017 22:28:33 GMT'] | ||
server: [gunicorn/19.7.1] | ||
vary: ['Accept-Language, Cookie'] | ||
status: {code: 200, message: OK} | ||
version: 1 |
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
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