forked from inspirehep/inspirehep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
208 additions
and
150 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
|
||
SNOW_URL = "https://cerntraining.service-now.com" | ||
SNOW_VERIFY_SSL = False | ||
SNOW_CLIENT_ID = "change-me" | ||
SNOW_CLIENT_SECRET = "change-me" | ||
SNOW_AUTH_URL = "" | ||
SNOW_CLIENT_ID = "snow-inspire" | ||
SNOW_CLIENT_SECRET = "c49fff2e-25f4-4b9c-bb54-914ba9e6f11d" | ||
SNOW_AUTH_URL = "https://auth.cern.ch/auth/realms/cern/api-access/token" | ||
SNOW_INSPIRE_FUNCTIONAL_ELEMENT = "ea56eb930a0a8c0a0004af7b268a0987" | ||
SNOW_INSPIRE_USER_ID = "ce1dd215873b951069c063990cbb35a7" | ||
SNOW_USERS_EMAILS_MAPPING = {"[email protected]": "[email protected]"} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
interactions: | ||
- request: | ||
body: '{"ticket_id": "4b451fa0870a561095f833340cbb3595", "template": "user_accepted_author", | ||
body: '{"ticket_id": "2e15a50d87c71e10225886640cbb3565", "template": "user_accepted_author", | ||
"template_context": {"user_name": "[email protected]", "author_name": | ||
"Third B", "record_url": "http://host.docker.internal:8080/authors/12345"}}' | ||
"Third B", "record_url": "http://host.docker.internal:8080/authors/123456"}}' | ||
headers: | ||
Accept: | ||
- application/vnd+inspire.record.raw+json | ||
|
@@ -11,7 +11,7 @@ interactions: | |
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '233' | ||
- '243' | ||
Content-Type: | ||
- application/json | ||
method: POST | ||
|
@@ -22,22 +22,16 @@ interactions: | |
' | ||
headers: | ||
access-control-allow-origin: | ||
- '*' | ||
access-control-expose-headers: | ||
- Content-Type, ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset | ||
alt-svc: | ||
- h3=":443";ma=60; | ||
content-length: | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '30' | ||
content-type: | ||
Content-Type: | ||
- application/json | ||
date: | ||
- Wed, 20 Nov 2024 15:49:49 GMT | ||
server: | ||
- gunicorn/19.10.0 | ||
x-proxy-backend: | ||
- inspire-qa_hep-web_http | ||
Date: | ||
- Fri, 10 Jan 2025 14:07:06 GMT | ||
Server: | ||
- nginx/1.19.1 | ||
status: | ||
code: 200 | ||
message: OK | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ interactions: | |
- request: | ||
body: '{"functional_category": "Author curation", "template": "curation_needed_author", | ||
"subject": "Curation needed for author Third B ", "template_context": {"email": | ||
"[email protected]", "record_url": "http://host.docker.internal:8080/authors/12345"}, | ||
"[email protected]", "record_url": "http://host.docker.internal:8080/authors/123456"}, | ||
"caller_email": "[email protected]"}' | ||
headers: | ||
Accept: | ||
|
@@ -12,38 +12,32 @@ interactions: | |
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '296' | ||
- '306' | ||
Content-Type: | ||
- application/json | ||
method: POST | ||
uri: http://host.docker.internal:8080/api/tickets/create | ||
response: | ||
body: | ||
string: '{"ticket_id":"94c0745e870e1250225886640cbb3509","ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=94c0745e870e1250225886640cbb3509"} | ||
string: '{"ticket_id":"05ba6585870b1e10225886640cbb353b","ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=05ba6585870b1e10225886640cbb353b"} | ||
' | ||
headers: | ||
access-control-allow-origin: | ||
- '*' | ||
access-control-expose-headers: | ||
- Content-Type, ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset | ||
alt-svc: | ||
- h3=":443";ma=60; | ||
content-length: | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '181' | ||
content-type: | ||
Content-Type: | ||
- application/json | ||
date: | ||
- Mon, 25 Nov 2024 14:03:46 GMT | ||
server: | ||
- gunicorn/19.10.0 | ||
x-proxy-backend: | ||
- inspire-qa_hep-web_http | ||
Date: | ||
- Fri, 10 Jan 2025 14:07:20 GMT | ||
Server: | ||
- nginx/1.19.1 | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"ticket_type": "author_create_curation", "ticket_id": "94c0745e870e1250225886640cbb3509", | ||
body: '{"ticket_type": "author_create_curation", "ticket_id": "05ba6585870b1e10225886640cbb353b", | ||
"workflow": "00000000-0000-0000-0000-000000001521"}' | ||
headers: | ||
Accept: | ||
|
@@ -60,7 +54,7 @@ interactions: | |
uri: http://host.docker.internal:8001/api/workflows/authors/tickets/ | ||
response: | ||
body: | ||
string: '{"id":2,"ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=94c0745e870e1250225886640cbb3509","workflow":"00000000-0000-0000-0000-000000001521","ticket_id":"94c0745e870e1250225886640cbb3509","ticket_type":"author_create_curation","_created_at":"2024-11-25T14:03:46.470233Z","_updated_at":"2024-11-25T14:03:46.470241Z"}' | ||
string: '{"id":2,"ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=05ba6585870b1e10225886640cbb353b","workflow":"00000000-0000-0000-0000-000000001521","ticket_id":"05ba6585870b1e10225886640cbb353b","ticket_type":"author_create_curation","_created_at":"2025-01-10T14:07:20.509148Z","_updated_at":"2025-01-10T14:07:20.509226Z"}' | ||
headers: | ||
Allow: | ||
- GET, POST, HEAD, OPTIONS | ||
|
@@ -73,17 +67,24 @@ interactions: | |
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Mon, 25 Nov 2024 14:03:46 GMT | ||
- Fri, 10 Jan 2025 14:07:20 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- WSGIServer/0.2 CPython/3.11.6 | ||
Server-Timing: | ||
- TimerPanel_utime;dur=43.54200000000219;desc="User CPU time", TimerPanel_stime;dur=2.266999999999797;desc="System | ||
CPU time", TimerPanel_total;dur=45.80900000000199;desc="Total CPU time", TimerPanel_total_time;dur=52.82204200193519;desc="Elapsed | ||
time", SQLPanel_sql_time;dur=5.886666993319523;desc="SQL 7 queries", CachePanel_total_time;dur=0;desc="Cache | ||
0 Calls" | ||
Vary: | ||
- Accept, Accept-Language, Cookie, origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
djdt-store-id: | ||
- 608e6384b3b74795bfd091bf2e9dcc51 | ||
status: | ||
code: 201 | ||
message: Created | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ interactions: | |
- request: | ||
body: '{"functional_category": "Author submissions", "template": "curator_new_author", | ||
"subject": "Your suggestion to INSPIRE: author Third B", "template_context": | ||
{"email": "[email protected]", "obj_url": "http://host.docker.internal:8080/backoffice/66277811-fe66-4335-9aff-984583fb1228"}, | ||
{"email": "[email protected]", "obj_url": "http://host.docker.internal:8080/backoffice/00000000-0000-0000-0000-000000001521"}, | ||
"caller_email": "[email protected]"}' | ||
headers: | ||
Accept: | ||
|
@@ -12,38 +12,32 @@ interactions: | |
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '333' | ||
- '342' | ||
Content-Type: | ||
- application/json | ||
method: POST | ||
uri: http://host.docker.internal:8080/api/tickets/create | ||
response: | ||
body: | ||
string: '{"ticket_id":"dfa417a0870a561095f833340cbb3599","ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=dfa417a0870a561095f833340cbb3599"} | ||
string: '{"ticket_id":"2e15a50d87c71e10225886640cbb3565","ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=2e15a50d87c71e10225886640cbb3565"} | ||
' | ||
headers: | ||
access-control-allow-origin: | ||
- '*' | ||
access-control-expose-headers: | ||
- Content-Type, ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset | ||
alt-svc: | ||
- h3=":443";ma=60; | ||
content-length: | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '181' | ||
content-type: | ||
Content-Type: | ||
- application/json | ||
date: | ||
- Wed, 20 Nov 2024 15:30:34 GMT | ||
server: | ||
- gunicorn/19.10.0 | ||
x-proxy-backend: | ||
- inspire-qa_hep-web_http | ||
Date: | ||
- Fri, 10 Jan 2025 13:42:51 GMT | ||
Server: | ||
- nginx/1.19.1 | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"ticket_id": "dfa417a0870a561095f833340cbb3599", "template": "user_new_author", | ||
body: '{"ticket_id": "2e15a50d87c71e10225886640cbb3565", "template": "user_new_author", | ||
"template_context": {"user_name": "[email protected]", "author_name": | ||
"Third B"}, "user_email": "[email protected]"}' | ||
headers: | ||
|
@@ -65,28 +59,22 @@ interactions: | |
' | ||
headers: | ||
access-control-allow-origin: | ||
- '*' | ||
access-control-expose-headers: | ||
- Content-Type, ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset | ||
alt-svc: | ||
- h3=":443";ma=60; | ||
content-length: | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '48' | ||
content-type: | ||
Content-Type: | ||
- application/json | ||
date: | ||
- Wed, 20 Nov 2024 15:30:35 GMT | ||
server: | ||
- gunicorn/19.10.0 | ||
x-proxy-backend: | ||
- inspire-qa_hep-web_http | ||
Date: | ||
- Fri, 10 Jan 2025 13:42:52 GMT | ||
Server: | ||
- nginx/1.19.1 | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: '{"ticket_type": "author_create_user", "ticket_id": "dfa417a0870a561095f833340cbb3599", | ||
"workflow": "66277811-fe66-4335-9aff-984583fb1228"}' | ||
body: '{"ticket_type": "author_create_user", "ticket_id": "2e15a50d87c71e10225886640cbb3565", | ||
"workflow": "00000000-0000-0000-0000-000000001521"}' | ||
headers: | ||
Accept: | ||
- application/json | ||
|
@@ -102,7 +90,7 @@ interactions: | |
uri: http://host.docker.internal:8001/api/workflows/authors/tickets/ | ||
response: | ||
body: | ||
string: '{"id":5,"ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=dfa417a0870a561095f833340cbb3599","workflow":"66277811-fe66-4335-9aff-984583fb1228","ticket_id":"dfa417a0870a561095f833340cbb3599","ticket_type":"author_create_user","_created_at":"2024-11-20T15:30:35.448536Z","_updated_at":"2024-11-20T15:30:35.448543Z"}' | ||
string: '{"id":1,"ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=2e15a50d87c71e10225886640cbb3565","workflow":"00000000-0000-0000-0000-000000001521","ticket_id":"2e15a50d87c71e10225886640cbb3565","ticket_type":"author_create_user","_created_at":"2025-01-10T13:42:52.690153Z","_updated_at":"2025-01-10T13:42:52.690245Z"}' | ||
headers: | ||
Allow: | ||
- GET, POST, HEAD, OPTIONS | ||
|
@@ -115,17 +103,24 @@ interactions: | |
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Wed, 20 Nov 2024 15:30:35 GMT | ||
- Fri, 10 Jan 2025 13:42:52 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- WSGIServer/0.2 CPython/3.11.6 | ||
Server-Timing: | ||
- TimerPanel_utime;dur=146.39699999999945;desc="User CPU time", TimerPanel_stime;dur=14.762000000000164;desc="System | ||
CPU time", TimerPanel_total;dur=161.15899999999962;desc="Total CPU time", | ||
TimerPanel_total_time;dur=179.73545900167665;desc="Elapsed time", SQLPanel_sql_time;dur=16.617833003692795;desc="SQL | ||
7 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls" | ||
Vary: | ||
- Accept, Accept-Language, Cookie, origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
djdt-store-id: | ||
- 98e12724c23c4562b86d5391c31f7148 | ||
status: | ||
code: 201 | ||
message: Created | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ interactions: | |
"_collections": ["Authors"], "acquisition_source": {"datetime": "2024-11-18T11:34:19.809575", | ||
"email": "[email protected]", "internal_uid": 50872, "method": "submitter", | ||
"orcid": "0000-0002-7638-5686", "source": "submitter"}, "name": {"preferred_name": | ||
"Third B", "value": "B, Third"}, "status": "active"}}' | ||
"Third B", "value": "B, Third"}, "status": "active", "control_number": 123457}}' | ||
headers: | ||
Accept: | ||
- application/json | ||
|
@@ -13,38 +13,45 @@ interactions: | |
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '393' | ||
- '419' | ||
Content-Type: | ||
- application/json | ||
method: PATCH | ||
uri: http://host.docker.internal:8001/api/workflows/authors/00000000-0000-0000-0000-000000001521/ | ||
response: | ||
body: | ||
string: '{"id":"00000000-0000-0000-0000-000000001521","tickets":[],"decisions":[],"data":{"$schema":"https://inspirehep.net/schemas/records/authors.json","_collections":["Authors"],"acquisition_source":{"datetime":"2024-11-18T11:34:19.809575","email":"[email protected]","internal_uid":50872,"method":"submitter","orcid":"0000-0002-7638-5686","source":"submitter"},"name":{"preferred_name":"Third | ||
B","value":"B, Third"},"status":"active"},"workflow_type":"AUTHOR_CREATE","status":"running","_created_at":"2024-11-25T13:49:53.009000Z","_updated_at":"2024-11-26T14:13:56.571976Z"}' | ||
B","value":"B, Third"},"status":"active","control_number":123457},"workflow_type":"AUTHOR_CREATE","status":"running","_created_at":"2024-11-25T13:49:53.009000Z","_updated_at":"2025-01-10T12:55:20.785555Z"}' | ||
headers: | ||
Allow: | ||
- GET, PUT, PATCH, DELETE, HEAD, OPTIONS | ||
Content-Language: | ||
- en | ||
Content-Length: | ||
- '580' | ||
- '604' | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Tue, 26 Nov 2024 14:13:56 GMT | ||
- Fri, 10 Jan 2025 12:55:21 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- WSGIServer/0.2 CPython/3.11.6 | ||
Server-Timing: | ||
- TimerPanel_utime;dur=50.15399999999204;desc="User CPU time", TimerPanel_stime;dur=7.6459999999940464;desc="System | ||
CPU time", TimerPanel_total;dur=57.799999999986085;desc="Total CPU time", | ||
TimerPanel_total_time;dur=1219.1071679990273;desc="Elapsed time", SQLPanel_sql_time;dur=5.850291992828716;desc="SQL | ||
10 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls" | ||
Vary: | ||
- Accept, Accept-Language, Cookie, origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
djdt-store-id: | ||
- d5591da70a814de8bcd6c3172f8f4340 | ||
status: | ||
code: 200 | ||
message: OK | ||
|
Oops, something went wrong.