Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.

Commit 6735a04

Browse files
committed
re-record test fixtures
1 parent 8ad2e3b commit 6735a04

27 files changed

+1851
-1604
lines changed

tests/fixtures/as_orcid.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ http_interactions:
88
headers:
99
Accept-Encoding: gzip, deflate
1010
Accept: application/vnd.orcid+json; qs=4
11-
User-Agent: r-curl/3.3 crul/0.8.0 rOpenSci(rorcid/0.5.0.9210)
12-
X-USER-AGENT: r-curl/3.3 crul/0.8.0 rOpenSci(rorcid/0.5.0.9210)
11+
User-Agent: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
12+
X-USER-AGENT: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
1313
Authorization: Bearer <<rorcid_bearer_token>>
1414
response:
1515
status:
@@ -18,8 +18,8 @@ http_interactions:
1818
explanation: Request fulfilled, document follows
1919
headers:
2020
status: HTTP/1.1 200 OK
21-
server: nginx/1.10.0
22-
date: Fri, 12 Jul 2019 08:40:47 GMT
21+
server: nginx/1.16.1
22+
date: Wed, 05 Feb 2020 22:20:38 GMT
2323
content-type: application/vnd.orcid+json; qs=4;charset=UTF-8
2424
transfer-encoding: chunked
2525
connection: keep-alive
@@ -33,6 +33,7 @@ http_interactions:
3333
content-encoding: gzip
3434
body:
3535
encoding: UTF-8
36+
file: no
3637
string: |-
3738
{
3839
"last-modified-date" : {
@@ -339,9 +340,15 @@ http_interactions:
339340
"source-name" : {
340341
"value" : "Scopus - Elsevier"
341342
},
342-
"assertion-origin-orcid" : null,
343+
"assertion-origin-orcid" : {
344+
"uri" : "https://orcid.org/0000-0002-1642-628X",
345+
"path" : "0000-0002-1642-628X",
346+
"host" : "orcid.org"
347+
},
343348
"assertion-origin-client-id" : null,
344-
"assertion-origin-name" : null
349+
"assertion-origin-name" : {
350+
"value" : "Carl Boettiger"
351+
}
345352
},
346353
"external-id-type" : "Scopus Author ID",
347354
"external-id-value" : "15753693500",
@@ -358,5 +365,5 @@ http_interactions:
358365
},
359366
"path" : "/0000-0002-1642-628X/person"
360367
}
361-
recorded_at: 2019-07-12 08:40:34 GMT
362-
recorded_with: vcr/0.2.6, webmockr/0.3.4
368+
recorded_at: 2020-02-05 22:20:38 GMT
369+
recorded_with: vcr/0.4.0, webmockr/0.5.0

tests/fixtures/as_orcid_accepts_self_or_or_cid_class.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ http_interactions:
88
headers:
99
Accept-Encoding: gzip, deflate
1010
Accept: application/vnd.orcid+json; qs=4
11-
User-Agent: r-curl/3.3 crul/0.8.0 rOpenSci(rorcid/0.5.0.9210)
12-
X-USER-AGENT: r-curl/3.3 crul/0.8.0 rOpenSci(rorcid/0.5.0.9210)
11+
User-Agent: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
12+
X-USER-AGENT: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
1313
Authorization: Bearer <<rorcid_bearer_token>>
1414
response:
1515
status:
@@ -18,8 +18,8 @@ http_interactions:
1818
explanation: Request fulfilled, document follows
1919
headers:
2020
status: HTTP/1.1 200 OK
21-
server: nginx/1.10.0
22-
date: Fri, 12 Jul 2019 08:40:47 GMT
21+
server: nginx/1.16.1
22+
date: Wed, 05 Feb 2020 22:20:39 GMT
2323
content-type: application/vnd.orcid+json; qs=4;charset=UTF-8
2424
transfer-encoding: chunked
2525
connection: keep-alive
@@ -33,6 +33,7 @@ http_interactions:
3333
content-encoding: gzip
3434
body:
3535
encoding: UTF-8
36+
file: no
3637
string: |-
3738
{
3839
"last-modified-date" : {
@@ -339,9 +340,15 @@ http_interactions:
339340
"source-name" : {
340341
"value" : "Scopus - Elsevier"
341342
},
342-
"assertion-origin-orcid" : null,
343+
"assertion-origin-orcid" : {
344+
"uri" : "https://orcid.org/0000-0002-1642-628X",
345+
"path" : "0000-0002-1642-628X",
346+
"host" : "orcid.org"
347+
},
343348
"assertion-origin-client-id" : null,
344-
"assertion-origin-name" : null
349+
"assertion-origin-name" : {
350+
"value" : "Carl Boettiger"
351+
}
345352
},
346353
"external-id-type" : "Scopus Author ID",
347354
"external-id-value" : "15753693500",
@@ -358,5 +365,5 @@ http_interactions:
358365
},
359366
"path" : "/0000-0002-1642-628X/person"
360367
}
361-
recorded_at: 2019-07-12 08:40:35 GMT
362-
recorded_with: vcr/0.2.6, webmockr/0.3.4
368+
recorded_at: 2020-02-05 22:20:39 GMT
369+
recorded_with: vcr/0.4.0, webmockr/0.5.0

tests/fixtures/as_orcid_invalid_orcid_id.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ http_interactions:
88
headers:
99
Accept-Encoding: gzip, deflate
1010
Accept: application/vnd.orcid+json; qs=4
11-
User-Agent: r-curl/3.3 crul/0.8.0 rOpenSci(rorcid/0.5.0.9210)
12-
X-USER-AGENT: r-curl/3.3 crul/0.8.0 rOpenSci(rorcid/0.5.0.9210)
11+
User-Agent: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
12+
X-USER-AGENT: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
1313
Authorization: Bearer <<rorcid_bearer_token>>
1414
response:
1515
status:
@@ -18,8 +18,8 @@ http_interactions:
1818
explanation: Nothing matches the given URI
1919
headers:
2020
status: HTTP/1.1 404 Not Found
21-
server: nginx/1.10.0
22-
date: Fri, 12 Jul 2019 08:40:48 GMT
21+
server: nginx/1.16.1
22+
date: Wed, 05 Feb 2020 22:20:39 GMT
2323
content-type: application/vnd.orcid+json; qs=4;charset=UTF-8
2424
transfer-encoding: chunked
2525
connection: keep-alive
@@ -33,6 +33,7 @@ http_interactions:
3333
content-encoding: gzip
3434
body:
3535
encoding: UTF-8
36+
file: no
3637
string: |-
3738
{
3839
"response-code" : 404,
@@ -41,5 +42,5 @@ http_interactions:
4142
"error-code" : 9016,
4243
"more-info" : "https://members.orcid.org/api/resources/troubleshooting"
4344
}
44-
recorded_at: 2019-07-12 08:40:35 GMT
45-
recorded_with: vcr/0.2.6, webmockr/0.3.4
45+
recorded_at: 2020-02-05 22:20:39 GMT
46+
recorded_with: vcr/0.4.0, webmockr/0.5.0

tests/fixtures/extract_bibtex.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ http_interactions:
88
headers:
99
Accept-Encoding: gzip, deflate
1010
Accept: application/vnd.orcid+json; qs=4
11-
User-Agent: r-curl/4.0 crul/0.8.0 rOpenSci(rorcid/0.5.1.9100)
12-
X-USER-AGENT: r-curl/4.0 crul/0.8.0 rOpenSci(rorcid/0.5.1.9100)
11+
User-Agent: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
12+
X-USER-AGENT: r-curl/4.3 crul/0.9.0 rOpenSci(rorcid/0.6.3.91)
1313
Authorization: Bearer <<rorcid_bearer_token>>
1414
response:
1515
status:
@@ -18,8 +18,8 @@ http_interactions:
1818
explanation: Request fulfilled, document follows
1919
headers:
2020
status: HTTP/1.1 200 OK
21-
server: nginx/1.10.0
22-
date: Thu, 01 Aug 2019 20:16:50 GMT
21+
server: nginx/1.16.1
22+
date: Wed, 05 Feb 2020 22:21:02 GMT
2323
content-type: application/vnd.orcid+json; qs=4;charset=UTF-8
2424
transfer-encoding: chunked
2525
connection: keep-alive
@@ -33,6 +33,7 @@ http_interactions:
3333
content-encoding: gzip
3434
body:
3535
encoding: UTF-8
36+
file: no
3637
string: |-
3738
{
3839
"created-date" : {
@@ -95,5 +96,5 @@ http_interactions:
9596
},
9697
"visibility" : "public"
9798
}
98-
recorded_at: 2019-08-01 20:16:50 GMT
99-
recorded_with: vcr/0.2.6, webmockr/0.3.4
99+
recorded_at: 2020-02-05 22:21:02 GMT
100+
recorded_with: vcr/0.4.0, webmockr/0.5.0

0 commit comments

Comments
 (0)