Skip to content

records-api: add Data Package serializer #5775

records-api: add Data Package serializer

records-api: add Data Package serializer #5775

Triggered via pull request December 9, 2024 22:58
Status Failure
Total duration 27m 2s
Artifacts

tests.yml

on: pull_request
Matrix: JS / Tests
Matrix: Python / Tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 2 warnings
Python / Tests (3.9, postgresql14, opensearch2): tests/resources/serializers/test_signposting_serializer.py#L125
test_signposting_serializer_full assert {'linkset': [...ext/html'}]}]} == {'linkset': [...ext/html'}]}]} Differing items: {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/12345-abcde', 'author': [{'href': 'https://orcid.org/0000-0001...api/records/12345-abcde', 'describes': [{'href': 'https://127.0.0.1:5000/records/12345-abcde', 'type': 'text/html'}]}]} != {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/12345-abcde', 'author': [{'href': 'https://orcid.org/0000-0001...api/records/12345-abcde', 'describes': [{'href': 'https://127.0.0.1:5000/records/12345-abcde', 'type': 'text/html'}]}]} Full diff: { 'linkset': [{'anchor': 'https://127.0.0.1:5000/records/12345-abcde', 'author': [{'href': 'https://orcid.org/0000-0001-8135-3489'}], 'cite-as': [{'href': 'https://doi.org/10.1234/12345-abcde'}], 'describedby': [{'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/dcat+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/ld+json'}, - {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', - 'type': 'application/ld+json;profile="https://datapackage.org/profiles/2.0/datapackage.json"'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/linkset+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/marcxml+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.citationstyles.csl+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.datacite.datacite+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.datacite.datacite+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.geo+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.inveniordm.v1+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.inveniordm.v1.full+csv'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.inveniordm.v1.simple+csv'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/x-bibtex'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/x-dc+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'text/x-bibliography'}], 'item': [{'href': 'https://127.0.0.1:5000/records/12345-abcde/files/test.txt', 'type': 'text/plain'}], 'license': [{'href': 'https://customlicense.org/licenses/by/4.0/'}, {'href': 'https://creativecommons.org/licenses/by/4.0/legalcode'}], 'type': [{'href': 'https://schema.org/Photograph'}, {'href': 'https://schema.org/AboutPage'}]},
Python / Tests (3.9, postgresql14, opensearch2): tests/resources/serializers/test_signposting_serializer.py#L220
test_signposting_serializer_minimal assert {'linkset': [...ext/html'}]}]} == {'linkset': [...ext/html'}]}]} Differing items: {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/67890-fghij', 'describedby': [{'href': 'https://127.0.0.1:5000...api/records/67890-fghij', 'describes': [{'href': 'https://127.0.0.1:5000/records/67890-fghij', 'type': 'text/html'}]}]} != {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/67890-fghij', 'describedby': [{'href': 'https://127.0.0.1:5000...api/records/67890-fghij', 'describes': [{'href': 'https://127.0.0.1:5000/records/67890-fghij', 'type': 'text/html'}]}]} Full diff: { 'linkset': [{'anchor': 'https://127.0.0.1:5000/records/67890-fghij', 'describedby': [{'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/dcat+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/ld+json'}, - {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', - 'type': 'application/ld+json;profile="https://datapackage.org/profiles/2.0/datapackage.json"'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/linkset+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/marcxml+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.citationstyles.csl+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.datacite.datacite+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.datacite.datacite+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.geo+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.inveniordm.v1+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.inveniordm.v1.full+csv'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.inveniordm.v1.simple+csv'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/x-bibtex'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/x-dc+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'text/x-bibliography'}], 'type': [{'href': 'https://schema.org/Photograph'}, {'href': 'https://schema.org/AboutPage'}]}, {'anchor': 'https://127.0.0.1:5000/api/records/67890-fghij', 'describes': [{'href': 'https://127.0.0.1:5000/records/67890-fghij', 'type': 'text/html'}]}], }
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): tests/resources/serializers/test_signposting_serializer.py#L125
test_signposting_serializer_full assert {'linkset': [...ext/html'}]}]} == {'linkset': [...ext/html'}]}]} Differing items: {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/12345-abcde', 'author': [{'href': 'https://orcid.org/0000-0001...api/records/12345-abcde', 'describes': [{'href': 'https://127.0.0.1:5000/records/12345-abcde', 'type': 'text/html'}]}]} != {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/12345-abcde', 'author': [{'href': 'https://orcid.org/0000-0001...api/records/12345-abcde', 'describes': [{'href': 'https://127.0.0.1:5000/records/12345-abcde', 'type': 'text/html'}]}]} Full diff: { 'linkset': [{'anchor': 'https://127.0.0.1:5000/records/12345-abcde', 'author': [{'href': 'https://orcid.org/0000-0001-8135-3489'}], 'cite-as': [{'href': 'https://doi.org/10.1234/12345-abcde'}], 'describedby': [{'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/dcat+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/ld+json'}, - {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', - 'type': 'application/ld+json;profile="https://datapackage.org/profiles/2.0/datapackage.json"'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/linkset+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/marcxml+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.citationstyles.csl+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.datacite.datacite+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.datacite.datacite+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.geo+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.inveniordm.v1+json'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.inveniordm.v1.full+csv'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/vnd.inveniordm.v1.simple+csv'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/x-bibtex'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'application/x-dc+xml'}, {'href': 'https://127.0.0.1:5000/api/records/12345-abcde', 'type': 'text/x-bibliography'}], 'item': [{'href': 'https://127.0.0.1:5000/records/12345-abcde/files/test.txt', 'type': 'text/plain'}], 'license': [{'href': 'https://customlicense.org/licenses/by/4.0/'}, {'href': 'https://creativecommons.org/licenses/by/4.0/legalcode'}], 'type': [{'href': 'https://schema.org/Photograph'}, {'href': 'https://schema.org/AboutPage'}]},
Python / Tests (3.12, postgresql14, opensearch2): tests/resources/serializers/test_signposting_serializer.py#L220
test_signposting_serializer_minimal assert {'linkset': [...ext/html'}]}]} == {'linkset': [...ext/html'}]}]} Differing items: {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/67890-fghij', 'describedby': [{'href': 'https://127.0.0.1:5000...api/records/67890-fghij', 'describes': [{'href': 'https://127.0.0.1:5000/records/67890-fghij', 'type': 'text/html'}]}]} != {'linkset': [{'anchor': 'https://127.0.0.1:5000/records/67890-fghij', 'describedby': [{'href': 'https://127.0.0.1:5000...api/records/67890-fghij', 'describes': [{'href': 'https://127.0.0.1:5000/records/67890-fghij', 'type': 'text/html'}]}]} Full diff: { 'linkset': [{'anchor': 'https://127.0.0.1:5000/records/67890-fghij', 'describedby': [{'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/dcat+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/ld+json'}, - {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', - 'type': 'application/ld+json;profile="https://datapackage.org/profiles/2.0/datapackage.json"'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/linkset+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/marcxml+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.citationstyles.csl+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.datacite.datacite+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.datacite.datacite+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.geo+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.inveniordm.v1+json'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.inveniordm.v1.full+csv'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/vnd.inveniordm.v1.simple+csv'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/x-bibtex'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'application/x-dc+xml'}, {'href': 'https://127.0.0.1:5000/api/records/67890-fghij', 'type': 'text/x-bibliography'}], 'type': [{'href': 'https://schema.org/Photograph'}, {'href': 'https://schema.org/AboutPage'}]}, {'anchor': 'https://127.0.0.1:5000/api/records/67890-fghij', 'describes': [{'href': 'https://127.0.0.1:5000/records/67890-fghij', 'type': 'text/html'}]}], }
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.