Skip to content

serializer: updated subjects and affiliations links in dcat #5718

serializer: updated subjects and affiliations links in dcat

serializer: updated subjects and affiliations links in dcat #5718

Triggered via pull request November 29, 2024 15:45
Status Failure
Total duration 27m 7s
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
JS / Tests (20.x)
Process completed with exit code 1.
JS / Tests (18.x)
Process completed with exit code 1.
Python / Tests (3.9, postgresql14, opensearch2): tests/services/pids/test_pids_tasks.py#L660
test_full_record_register AssertionError: Calls not found. Expected: [call(metadata={'contributors': [{'affiliation': [{'affiliationIdentifier': 'https://ror.org/01ggx4157', 'affiliationIdentifierScheme': 'ROR', 'name': 'CERN'}], 'contributorType': 'Other', 'familyName': 'Nielsen', 'givenName': 'Lars Holm', 'name': 'Nielsen, Lars Holm', 'nameIdentifiers': [{'nameIdentifier': '0000-0001-8135-3489', 'nameIdentifierScheme': 'ORCID'}], 'nameType': 'Personal'}], 'creators': [{'affiliation': [{'affiliationIdentifier': 'https://ror.org/01ggx4157', 'affiliationIdentifierScheme': 'ROR', 'name': 'CERN'}, {'name': 'free-text'}], 'familyName': 'Nielsen', 'givenName': 'Lars Holm', 'name': 'Nielsen, Lars Holm', 'nameIdentifiers': [{'nameIdentifier': '0000-0001-8135-3489', 'nameIdentifierScheme': 'ORCID'}], 'nameType': 'Personal'}], 'dates': [{'date': '2018/2020-09', 'dateType': 'Issued'}, {'date': '1939/1945', 'dateInformation': 'A date', 'dateType': 'Other'}], 'descriptions': [{'description': 'A description \nwith HTML tags', 'descriptionType': 'Abstract'}, {'description': 'Bla bla bla', 'descriptionType': 'Methods', 'lang': 'eng'}], 'formats': ['application/pdf'], 'fundingReferences': [{'awardNumber': '755021', 'awardTitle': 'Personalised Treatment For Cystic Fibrosis Patients With Ultra-rare CFTR Mutations (and beyond)', 'awardURI': 'https://cordis.europa.eu/project/id/755021', 'funderIdentifier': '00k4n6c32', 'funderIdentifierType': 'ROR', 'funderName': 'European Commission'}], 'geoLocations': [{'geoLocationPlace': 'test location place', 'geoLocationPoint': {'pointLatitude': '-60.63932', 'pointLongitude': '-32.94682'}}], 'identifiers': [{'identifier': '10.1234/1xrdg-xwb24', 'identifierType': 'DOI'}, {'identifier': '1924MNRAS..84..308E', 'identifierType': 'bibcode'}], 'language': 'dan', 'publicationYear': '2018', 'publisher': 'InvenioRDM', 'relatedIdentifiers': [{'relatedIdentifier': '10.1234/foo.bar', 'relatedIdentifierType': 'DOI', 'relationType': 'IsCitedBy', 'resourceTypeGeneral': 'Dataset'}], 'rightsList': [{'rights': 'A custom license', 'rightsUri': 'https://customlicense.org/licenses/by/4.0/'}, {'rights': 'Creative Commons Attribution 4.0 International', 'rightsIdentifier': 'cc-by-4.0', 'rightsIdentifierScheme': 'spdx', 'rightsUri': 'https://creativecommons.org/licenses/by/4.0/legalcode'}], 'schemaVersion': 'http://datacite.org/schema/kernel-4', 'sizes': ['11 pages'], 'subjects': [{'subject': 'Abdominal Injuries', 'subjectScheme': 'MeSH', 'valueURI': 'http://id.nlm.nih.gov/mesh/A-D000007'}, {'subject': 'custom'}], 'titles': [{'title': 'InvenioRDM'}, {'lang': 'eng', 'title': 'a research data management platform', 'titleType': 'Subtitle'}], 'types': {'resourceType': 'Photo', 'resourceTypeGeneral': 'Image'}, 'version': 'v1.0'}, url='https://127.0.0.1:5000/doi/10.1234/1xrdg-xwb24', doi='10.1234/1xrdg-xwb24')] Actual: [call(metadata={'types': {'resourceTypeGeneral': 'Image', 'resourceType': 'Photo'}, 'titles': [{'title': 'A Romans story'}], 'creators': [{'name': 'Brown, Troy', 'nameType': 'Personal', 'givenName': 'Troy', 'familyName': 'Brown', 'nameIdentifiers': []}, {'name': 'Troy Inc.', 'nameType': 'Organizational', 'nameIdentifiers': []}], 'publisher': 'Acme Inc', 'publicationYear': '2020', 'dates': [{'date': '2020-06-01', 'dateType': 'Issued'}], 'identifiers': [{'identifier': '10.1234/aq842-a4984', 'identifierType': 'DOI'}], 'schemaVersion': 'http://datacite.org/schema/kernel-4'}, url='https://127.0.0.1:5000/doi/10.1234/aq842-a4984', doi='10.1234/aq842-a4984'), call(metadata={'types': {'resourceTypeGeneral': 'Image', 'resourceType': 'Photo'}, 'titles': [{'title': 'A Romans story'}], 'creators': [{'name': 'Brown, Troy', 'nameType': 'Personal', 'givenName': 'Troy', 'familyName': 'Brown', 'nameIdentifiers': []}, {'name': 'Troy Inc.', 'nameType': 'Organizational', 'nameIdentifiers': []}], 'publisher': 'Acme Inc', 'publicationYear': '2020', 'dates': [{'date': '2020-06-01', 'dateType': 'Issued'}], 'identifiers': [{'identifier': '10.1234/w6a3v-wx586', 'identifierType': 'DOI'}], 'schemaVersion': 'http://datacite.org/schema/kernel-4
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): tests/services/pids/test_pids_tasks.py#L660
test_full_record_register AssertionError: Calls not found. Expected: [call(metadata={'contributors': [{'affiliation': [{'affiliationIdentifier': 'https://ror.org/01ggx4157', 'affiliationIdentifierScheme': 'ROR', 'name': 'CERN'}], 'contributorType': 'Other', 'familyName': 'Nielsen', 'givenName': 'Lars Holm', 'name': 'Nielsen, Lars Holm', 'nameIdentifiers': [{'nameIdentifier': '0000-0001-8135-3489', 'nameIdentifierScheme': 'ORCID'}], 'nameType': 'Personal'}], 'creators': [{'affiliation': [{'affiliationIdentifier': 'https://ror.org/01ggx4157', 'affiliationIdentifierScheme': 'ROR', 'name': 'CERN'}, {'name': 'free-text'}], 'familyName': 'Nielsen', 'givenName': 'Lars Holm', 'name': 'Nielsen, Lars Holm', 'nameIdentifiers': [{'nameIdentifier': '0000-0001-8135-3489', 'nameIdentifierScheme': 'ORCID'}], 'nameType': 'Personal'}], 'dates': [{'date': '2018/2020-09', 'dateType': 'Issued'}, {'date': '1939/1945', 'dateInformation': 'A date', 'dateType': 'Other'}], 'descriptions': [{'description': 'A description \nwith HTML tags', 'descriptionType': 'Abstract'}, {'description': 'Bla bla bla', 'descriptionType': 'Methods', 'lang': 'eng'}], 'formats': ['application/pdf'], 'fundingReferences': [{'awardNumber': '755021', 'awardTitle': 'Personalised Treatment For Cystic Fibrosis Patients With Ultra-rare CFTR Mutations (and beyond)', 'awardURI': 'https://cordis.europa.eu/project/id/755021', 'funderIdentifier': '00k4n6c32', 'funderIdentifierType': 'ROR', 'funderName': 'European Commission'}], 'geoLocations': [{'geoLocationPlace': 'test location place', 'geoLocationPoint': {'pointLatitude': '-60.63932', 'pointLongitude': '-32.94682'}}], 'identifiers': [{'identifier': '10.1234/4vcm3-56y29', 'identifierType': 'DOI'}, {'identifier': '1924MNRAS..84..308E', 'identifierType': 'bibcode'}], 'language': 'dan', 'publicationYear': '2018', 'publisher': 'InvenioRDM', 'relatedIdentifiers': [{'relatedIdentifier': '10.1234/foo.bar', 'relatedIdentifierType': 'DOI', 'relationType': 'IsCitedBy', 'resourceTypeGeneral': 'Dataset'}], 'rightsList': [{'rights': 'A custom license', 'rightsUri': 'https://customlicense.org/licenses/by/4.0/'}, {'rights': 'Creative Commons Attribution 4.0 International', 'rightsIdentifier': 'cc-by-4.0', 'rightsIdentifierScheme': 'spdx', 'rightsUri': 'https://creativecommons.org/licenses/by/4.0/legalcode'}], 'schemaVersion': 'http://datacite.org/schema/kernel-4', 'sizes': ['11 pages'], 'subjects': [{'subject': 'Abdominal Injuries', 'subjectScheme': 'MeSH', 'valueURI': 'http://id.nlm.nih.gov/mesh/A-D000007'}, {'subject': 'custom'}], 'titles': [{'title': 'InvenioRDM'}, {'lang': 'eng', 'title': 'a research data management platform', 'titleType': 'Subtitle'}], 'types': {'resourceType': 'Photo', 'resourceTypeGeneral': 'Image'}, 'version': 'v1.0'}, url='https://127.0.0.1:5000/doi/10.1234/4vcm3-56y29', doi='10.1234/4vcm3-56y29')] Actual: [call(metadata={'types': {'resourceTypeGeneral': 'Image', 'resourceType': 'Photo'}, 'titles': [{'title': 'A Romans story'}], 'creators': [{'name': 'Brown, Troy', 'nameType': 'Personal', 'givenName': 'Troy', 'familyName': 'Brown', 'nameIdentifiers': []}, {'name': 'Troy Inc.', 'nameType': 'Organizational', 'nameIdentifiers': []}], 'publisher': 'Acme Inc', 'publicationYear': '2020', 'dates': [{'date': '2020-06-01', 'dateType': 'Issued'}], 'identifiers': [{'identifier': '10.1234/qjyra-dr482', 'identifierType': 'DOI'}], 'schemaVersion': 'http://datacite.org/schema/kernel-4'}, url='https://127.0.0.1:5000/doi/10.1234/qjyra-dr482', doi='10.1234/qjyra-dr482'), call(metadata={'types': {'resourceTypeGeneral': 'Image', 'resourceType': 'Photo'}, 'titles': [{'title': 'A Romans story'}], 'creators': [{'name': 'Brown, Troy', 'nameType': 'Personal', 'givenName': 'Troy', 'familyName': 'Brown', 'nameIdentifiers': []}, {'name': 'Troy Inc.', 'nameType': 'Organizational', 'nameIdentifiers': []}], 'publisher': 'Acme Inc', 'publicationYear': '2020', 'dates': [{'date': '2020-06-01', 'dateType': 'Issued'}], 'identifiers': [{'identifier': '10.1234/g2tx4-a8a91', 'identifierType': 'DOI'}], 'schemaVersion': 'http://datacite.org/schema/kernel
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.