-
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.
global: addition of creating or updating articles to backend (#182)
- Loading branch information
Showing
16 changed files
with
613 additions
and
6 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
interactions: | ||
- request: | ||
body: | ||
'{"_oai": {"updated": "2023-11-14T00:15:03Z", "id": "oai:repo.scoap3.org:81153", | ||
"sets": ["AHEP"]}, "authors": [{"surname": "Mirza", "given_names": "M. Ibrahim", | ||
"raw_name": "Mirza, M. Ibrahim", "affiliations": [{"country": "USA", "value": | ||
"Department of Physics and Astronomy, University of Tennessee, Knoxville, Tennessee | ||
37916, USA"}], "full_name": "Mirza, M. Ibrahim", "orcid": "0009-0002-6581-5721"}, | ||
{"surname": "Singh", "given_names": "Jyotsna", "raw_name": "Singh, Jyotsna", | ||
"affiliations": [{"country": "India", "value": "Department of Physics, University | ||
of Lucknow, Lucknow, Uttar Pradesh, India"}], "full_name": "Singh, Jyotsna", | ||
"orcid": "0000-0003-3250-3326"}], "titles": [{"source": "Hindawi", "title": | ||
"Theoretical and Experimental Challenges in the Measurement of Neutrino Mass"}], | ||
"dois": [{"value": "10.1155/2023/8897375"}], "publication_info": [{"page_start": | ||
"8897375", "journal_title": "Advances in High Energy Physics", "year": 2023}], | ||
"$schema": "http://repo.scoap3.org/schemas/hep.json", "acquisition_source": | ||
{"date": "2023-11-14T00:15:01.612737", "source": "Hindawi", "method": "Hindawi", | ||
"submission_number": "d9b644cc828211eeb8f48e9c197d18e3"}, "page_nr": [14], "license": | ||
[{"url": "http://creativecommons.org/licenses/by/3.0/", "license": "CC-BY-3.0"}], | ||
"copyright": [{"statement": "Copyright \u00a9 2023 Jyotsna Singh and M. Ibrahim | ||
Mirza.", "year": "2023"}], "control_number": "81153", "record_creation_date": | ||
"2023-10-27T12:15:05.910972", "collections": [{"primary": "Advances in High | ||
Energy Physics"}], "arxiv_eprints": [{"categories": ["hep-ex", "hep-ph"], "value": | ||
"2305.12654"}], "abstracts": [{"source": "Hindawi", "value": "Neutrino masses | ||
are yet unknown. We discuss the present state of effective electron antineutrino | ||
mass from <math id=\"M1\"><mi>\u03b2</mi></math> decay experiments; effective | ||
Majorana neutrino mass from neutrinoless double-beta decay experiments; neutrino | ||
mass squared differences from neutrino oscillation: solar, atmospheric, reactor, | ||
and accelerator-based experiments; sum of neutrino masses from cosmological | ||
observations. Current experimental challenges in the determination of neutrino | ||
masses are briefly discussed. The main focus is devoted to contemporary experiments."}], | ||
"imprints": [{"date": "2023-10-27", "publisher": "Hindawi"}]}' | ||
headers: | ||
Accept: | ||
- "*/*" | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- "2304" | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- python-requests/2.29.0 | ||
method: POST | ||
uri: https://backend.dev.scoap3.org/api/article-workflow-import/ | ||
response: | ||
body: | ||
string: | ||
"{\"id\":81153,\"related_files\":[{\"id\":224327,\"file\":\"https://scoap3-dev-backend.s3.cern.ch/media/files/81153/10.1155/2023/8897375.pdf\",\"created\":\"2023-11-27T14:10:10.249047Z\",\"updated\":\"2023-11-27T14:10:10.249062Z\",\"article_id\":81153},{\"id\":224328,\"file\":\"https://scoap3-dev-backend.s3.cern.ch/media/files/81153/10.1155/2023/8897375.a.pdf\",\"created\":\"2023-11-27T14:10:10.254151Z\",\"updated\":\"2023-11-27T14:10:10.254164Z\",\"article_id\":81153},{\"id\":224329,\"file\":\"https://scoap3-dev-backend.s3.cern.ch/media/files/81153/10.1155/2023/8897375.xml\",\"created\":\"2023-11-27T14:10:10.258265Z\",\"updated\":\"2023-11-27T14:10:10.258278Z\",\"article_id\":81153}],\"article_identifiers\":[{\"id\":255244,\"identifier_type\":\"DOI\",\"identifier_value\":\"10.1155/2023/8897375\",\"article_id\":81153},{\"id\":255245,\"identifier_type\":\"arXiv\",\"identifier_value\":\"2305.12654\",\"article_id\":81153}],\"article_arxiv_category\":[{\"id\":181372,\"category\":\"hep-ex\",\"primary\":true,\"article_id\":81153},{\"id\":181373,\"category\":\"hep-ph\",\"primary\":false,\"article_id\":81153}],\"publication_info\":[{\"id\":156787,\"publisher\":\"Hindawi\",\"journal_volume\":\"\",\"journal_title\":\"Advances | ||
in High Energy Physics\",\"journal_issue\":\"\",\"page_start\":\"8897375\",\"page_end\":\"\",\"artid\":\"\",\"volume_year\":\"2023\",\"journal_issue_date\":null,\"article_id\":81153}],\"copyright\":[{\"statement\":\"Copyright | ||
\xA9 2023 Jyotsna Singh and M. Ibrahim Mirza.\",\"holder\":\"\",\"year\":2023}],\"reception_date\":null,\"acceptance_date\":null,\"publication_date\":\"2023-10-27\",\"first_online_date\":null,\"title\":\"Theoretical | ||
and Experimental Challenges in the Measurement of Neutrino Mass\",\"subtitle\":\"\",\"abstract\":\"Neutrino | ||
masses are yet unknown. We discuss the present state of effective electron | ||
antineutrino mass from <math id=\\\"M1\\\"><mi>\u03B2</mi></math> decay experiments; | ||
effective Majorana neutrino mass from neutrinoless double-beta decay experiments; | ||
neutrino mass squared differences from neutrino oscillation: solar, atmospheric, | ||
reactor, and accelerator-based experiments; sum of neutrino masses from cosmological | ||
observations. Current experimental challenges in the determination of neutrino | ||
masses are briefly discussed. The main focus is devoted to contemporary experiments.\",\"_created_at\":\"2023-10-27T12:15:05.910972Z\",\"_updated_at\":\"2023-11-28T15:34:24.552913Z\",\"related_licenses\":[7],\"related_materials\":[]}" | ||
headers: | ||
allow: | ||
- POST, OPTIONS | ||
content-language: | ||
- en | ||
content-length: | ||
- "2309" | ||
content-type: | ||
- application/json | ||
cross-origin-opener-policy: | ||
- same-origin | ||
date: | ||
- Tue, 28 Nov 2023 15:34:24 GMT | ||
referrer-policy: | ||
- same-origin | ||
server: | ||
- gunicorn | ||
strict-transport-security: | ||
- max-age=60; includeSubDomains; preload | ||
vary: | ||
- Accept, Accept-Language, Cookie, origin | ||
x-content-type-options: | ||
- nosniff | ||
x-frame-options: | ||
- DENY | ||
x-proxy-backend: | ||
- scoap3-dev_scoap3-backend-web_http | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
52 changes: 52 additions & 0 deletions
52
tests/units/common/cassettes/test_create_or_update_article_with_error.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,52 @@ | ||
interactions: | ||
- request: | ||
body: "{}" | ||
headers: | ||
Accept: | ||
- "*/*" | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- "2" | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- python-requests/2.29.0 | ||
method: POST | ||
uri: https://backend.dev.scoap3.org/api/article-workflow-import/ | ||
response: | ||
body: | ||
string: '{"message":"''license''"}' | ||
headers: | ||
allow: | ||
- POST, OPTIONS | ||
content-language: | ||
- en | ||
content-length: | ||
- "23" | ||
content-type: | ||
- application/json | ||
cross-origin-opener-policy: | ||
- same-origin | ||
date: | ||
- Tue, 28 Nov 2023 15:34:25 GMT | ||
referrer-policy: | ||
- same-origin | ||
server: | ||
- gunicorn | ||
strict-transport-security: | ||
- max-age=60; includeSubDomains; preload | ||
vary: | ||
- Accept, Accept-Language, Cookie, origin | ||
x-content-type-options: | ||
- nosniff | ||
x-frame-options: | ||
- DENY | ||
x-proxy-backend: | ||
- scoap3-dev_scoap3-backend-web_http | ||
status: | ||
code: 400 | ||
message: Bad Request | ||
version: 1 |
Oops, something went wrong.