CMR-10505: Update related collections lambda to utilize citations #685
Annotations
10 errors
jest (lts/jod)
Process completed with exit code 1.
|
src/resolvers/__tests__/collection.test.js > Collection > Collection > relatedCollections > queries CMR GraphDB for relationships:
src/resolvers/__tests__/collection.test.js#L2918
AssertionError: expected { Object (collections) } to deeply equal { Object (collections) }
- Expected
+ Received
Object {
"collections": Object {
"items": Array [
Object {
"conceptId": "C100000-EDSC",
"relatedCollections": Object {
- "count": 21,
+ "count": null,
"items": Array [
- Object {
- "doi": "10.5067/TestSHORT_NAME_12_1747953501_1747953501",
- "id": "C1200000024-PROV1",
- "relationships": Array [
- Object {
- "id": "CIT1200000066-PROV1",
- "relationshipType": "citation",
- "title": "Archival Earth Science Resource 4 - Research Publication 4",
- },
- ],
- "title": "Entry Title 12 1747953501",
- },
- Object {
- "doi": "10.5067/TestSHORT_NAME_47_1747953520_1747953520",
- "id": "C1200000059-PROV3",
- "relationships": Array [
- Object {
- "id": "CIT1200000107-PROV3",
- "relationshipType": "citation",
- "title": "Earth Science Book 45 - Research Publication 45",
- },
- ],
- "title": "Entry Title 47 1747953520",
- },
- Object {
- "doi": "10.5067/TestSHORT_NAME_32_1747953515_1747953515",
- "id": "C1200000044-PROV3",
- "relationships": Array [
Object {
- "id": "CIT1200000107-PROV3",
- "relationshipType": "citation",
- "title": "Earth Science Book 45 - Research Publication 45",
- },
- ],
- "title": "Entry Title 32 1747953515",
- },
- Object {
- "doi": "10.5067/TestSHORT_NAME_50_1747953521_1747953521",
- "id": "C1200000062-PROV3",
- "relationships": Array [
- Object {
- "id": "CIT1200000072-PROV1",
- "relationshipType": "citation",
- "title": "Earth Science Dataset 10 - Research Publication 10",
- },
- ],
- "title": "Entry Title 50 1747953521",
- },
- Object {
- "doi": "10.5067/TestSHORT_NAME_40_1747953517_1747953517",
- "id": "C1200000052-PROV2",
- "relationships": Array [
- Object {
- "id": "CIT1200000072-PROV1",
- "relationshipType": "citation",
- "title": "Earth Science Dataset 10 - Research Publication 10",
- },
- ],
- "title": "Entry Title 40 1747953517",
- },
- Object {
- "doi": "10.5067/TestSHORT_NAME_23_1747953511_1747953511",
- "id": "C1200000035-PROV2",
- "relationships": Array [
- Object {
- "id": "CIT1200000105-PROV1",
- "relationshipType": "citation",
- "title": "Earth Science Dataset 43 - Research Publication 43",
- },
- ],
- "title": "Entry Title 23 1747953511",
- },
- Object {
- "doi": "10.5067/TestSHORT_NAME_39_1747953517_1747953517",
- "id": "C1200000051-PROV3",
- "relationships": Array [
- Object {
- "id": "CIT1200000098-PROV1",
- "relationshipType": "citation",
- "title": "Archival Earth Science Resource 36 - Research Publication 36",
- },
- ],
- "title": "Entry Title 39 1747953517",
- },
- Object {
- "doi": "10.5067/TestSHORT_NAME_33_1747953515_1747953515",
- "id": "C1200000045-PROV2",
- "relationships": Array [
- Object {
-
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > Testing permitted groups on related collections > Mocking the response for a client not being in any groups, and retrieving no related collections:
src/datasources/__tests__/graphDb.test.js#L708
AssertionError: expected { count: [ { '@value': +0 } ], …(1) } to deeply equal { count: +0, items: [] }
- Expected
+ Received
Object {
- "count": 0,
- "items": Array [],
+ "count": Array [
+ Object {
+ "@value": 0,
+ },
+ ],
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ ],
}
❯ src/datasources/__tests__/graphDb.test.js:708:26
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > Testing permitted groups on related collections > Testing that permitted groups is in the post request:
src/datasources/__tests__/graphDb.test.js#L672
AssertionError: expected { count: [ { …(2) }, { …(2) } ], …(1) } to deeply equal { count: 34, items: [ { …(8) } ] }
- Expected
+ Received
Object {
- "count": 34,
- "items": Array [
+ "count": Array [
Object {
- "abstract": "CER_GEO_Ed4_MET11_NH_V01.2 is the Satellite Cloud and Radiation Property retrieval System (SatCORPS) Clouds and the Earth's Radiant Energy System (CERES) Geostationary Satellite (GEO) Edition 4 Meteosat-11 over the Northern Hemisphere (NH) Version 1.2 data product. Data was collected using the Spinning Enhanced Visible and Infrared Imager (SEVIRI) Instrument on the Meteosat-11 platform. Data collection for this product is in progress. This data set comprises cloud micro-physical and radiation properties derived hourly from Meteosat-11 geostationary satellite imager data using the Langley Research Center (LaRC) SATCORPS algorithms supporting the CERES project. Each active geostationary satellite's cloud microphysical and radiation properties are merged to create hourly global cloud properties that estimate fluxes between CERES instrument measurements to account for the changing diurnal cycle. The data set is arranged as files for each hour and in netCDF-4 format. The observations are at 4 km resolution (at nadir) and are sub-sampled to 8 km. CERES is a key Earth Observing System (EOS) program component. The CERES instruments provide radiometric measurements of the Earth's atmosphere from three broadband channels. The CERES missions follow the successful Earth Radiation Budget Experiment (ERBE) mission. The first CERES instrument, the proto flight model (PFM), was launched on November 27, 1997, as part of the Tropical Rainfall Measuring Mission (TRMM). Two CERES instruments (FM1 and FM2) were launched into polar orbit onboard the Earth Observing System (EOS) flagship Terra on December 18, 1999. Two additional CERES instruments (FM3 and FM4) were launched onboard Earth Observing System (EOS) Aqua on May 4, 2002. The CERES FM5 instrument was launched onboard the Suomi National Polar-orbiting Partnership (NPP) satellite on October 28, 2011. The newest CERES instrument (FM6) was launched onboard the Joint Polar-Orbiting Satellite System 1 (JPSS-1) satellite, now called NOAA-20, on November 18, 2017.",
- "doi": "10.5067/MET11/CERES/GEO_ED4_NH_V01.2",
- "id": "C1200000014-PROV1",
- "permittedGroups": Object {
- "@type": "g:List",
- "@value": Array [
- "guest",
- "registered",
- ],
+ "@type": "g:Int64",
+ "@value": 34,
},
- "providerId": "PROV1",
- "relationships": Array [
Object {
- "level": "term",
- "relationshipType": "scienceKeyword",
- "value": "CLOUDS",
+ "@type": "g:Int64",
+ "@value": 1,
},
],
- "shortName": "CER_GEO_Ed4_MET11_NH",
- "title": "SatCORPS CERES GEO Edition 4 Meteosat-11 Northern Hemisphere Version 1.2",
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
},
],
}
❯ src/datasources/__tests__/graphDb.test.js:672:26
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > When relationships aren't requested > returns a result with all relationship types:
src/datasources/__tests__/graphDb.test.js#L636
AssertionError: expected { count: [ { …(2) }, { …(2) } ], …(1) } to deeply equal { count: 21, items: [ { …(8) } ] }
- Expected
+ Received
Object {
- "count": 21,
- "items": Array [
+ "count": Array [
Object {
- "abstract": "This is a sample collection for SHORT_NAME_12_1747953501 created at 2025-05-22T22:38:21.725Z",
- "doi": "10.5067/TestSHORT_NAME_12_1747953501_1747953501",
- "id": "C1200000024-PROV1",
- "permittedGroups": Object {
- "@type": "g:List",
- "@value": Array [
- "guest",
- "registered",
- ],
+ "@type": "g:Int64",
+ "@value": 21,
},
- "providerId": "PROV1",
- "relationships": Array [
Object {
- "abstract": "This is a randomly generated citation for demonstration purposes. Created at 2025-05-22T22:38:42.967Z.",
- "id": "CIT1200000066-PROV1",
- "identifier": "ark:/13030/tf4p17479",
- "identifierType": "ARK",
- "name": "Archival Earth Science Resource 4",
- "providerId": "PROV1",
- "relationshipType": "citation",
- "title": "Archival Earth Science Resource 4 - Research Publication 4",
+ "@type": "g:Int64",
+ "@value": 1,
},
],
- "shortName": "SHORT_NAME_12_1747953501",
- "title": "Entry Title 12 1747953501",
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
},
],
}
❯ src/datasources/__tests__/graphDb.test.js:636:26
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > When neither specific types nor relationshipType are requested > defaults to all relationship types:
src/datasources/__tests__/graphDb.test.js#L572
AssertionError: expected { count: [ { …(2) }, { …(2) } ], …(1) } to deeply equal { count: 34, items: [ { …(8) } ] }
- Expected
+ Received
Object {
- "count": 34,
- "items": Array [
+ "count": Array [
Object {
- "abstract": "CER_GEO_Ed4_MET11_NH_V01.2 is the Satellite Cloud and Radiation Property retrieval System (SatCORPS) Clouds and the Earth's Radiant Energy System (CERES) Geostationary Satellite (GEO) Edition 4 Meteosat-11 over the Northern Hemisphere (NH) Version 1.2 data product. Data was collected using the Spinning Enhanced Visible and Infrared Imager (SEVIRI) Instrument on the Meteosat-11 platform. Data collection for this product is in progress. This data set comprises cloud micro-physical and radiation properties derived hourly from Meteosat-11 geostationary satellite imager data using the Langley Research Center (LaRC) SATCORPS algorithms supporting the CERES project. Each active geostationary satellite's cloud microphysical and radiation properties are merged to create hourly global cloud properties that estimate fluxes between CERES instrument measurements to account for the changing diurnal cycle. The data set is arranged as files for each hour and in netCDF-4 format. The observations are at 4 km resolution (at nadir) and are sub-sampled to 8 km. CERES is a key Earth Observing System (EOS) program component. The CERES instruments provide radiometric measurements of the Earth's atmosphere from three broadband channels. The CERES missions follow the successful Earth Radiation Budget Experiment (ERBE) mission. The first CERES instrument, the proto flight model (PFM), was launched on November 27, 1997, as part of the Tropical Rainfall Measuring Mission (TRMM). Two CERES instruments (FM1 and FM2) were launched into polar orbit onboard the Earth Observing System (EOS) flagship Terra on December 18, 1999. Two additional CERES instruments (FM3 and FM4) were launched onboard Earth Observing System (EOS) Aqua on May 4, 2002. The CERES FM5 instrument was launched onboard the Suomi National Polar-orbiting Partnership (NPP) satellite on October 28, 2011. The newest CERES instrument (FM6) was launched onboard the Joint Polar-Orbiting Satellite System 1 (JPSS-1) satellite, now called NOAA-20, on November 18, 2017.",
- "doi": "10.5067/MET11/CERES/GEO_ED4_NH_V01.2",
- "id": "C1200000014-PROV1",
- "permittedGroups": Object {
- "@type": "g:List",
- "@value": Array [
- "guest",
- "registered",
- ],
+ "@type": "g:Int64",
+ "@value": 34,
},
- "providerId": "PROV1",
- "relationships": Array [
Object {
- "level": "term",
- "relationshipType": "scienceKeyword",
- "value": "CLOUDS",
+ "@type": "g:Int64",
+ "@value": 1,
},
],
- "shortName": "CER_GEO_Ed4_MET11_NH",
- "title": "SatCORPS CERES GEO Edition 4 Meteosat-11 Northern Hemisphere Version 1.2",
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
},
],
}
❯ src/datasources/__tests__/graphDb.test.js:572:26
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > When no types are requested, but only relationshipType is requested > returns a result with all relationship types (citation and scienceKeyword):
src/datasources/__tests__/graphDb.test.js#L500
AssertionError: expected { count: [ { …(2) }, { …(2) } ], …(1) } to deeply equal { count: 34, items: [ { …(8) } ] }
- Expected
+ Received
Object {
- "count": 34,
- "items": Array [
+ "count": Array [
Object {
- "abstract": "CER_GEO_Ed4_MET11_NH_V01.2 is the Satellite Cloud and Radiation Property retrieval System (SatCORPS) Clouds and the Earth's Radiant Energy System (CERES) Geostationary Satellite (GEO) Edition 4 Meteosat-11 over the Northern Hemisphere (NH) Version 1.2 data product. Data was collected using the Spinning Enhanced Visible and Infrared Imager (SEVIRI) Instrument on the Meteosat-11 platform. Data collection for this product is in progress. This data set comprises cloud micro-physical and radiation properties derived hourly from Meteosat-11 geostationary satellite imager data using the Langley Research Center (LaRC) SATCORPS algorithms supporting the CERES project. Each active geostationary satellite's cloud microphysical and radiation properties are merged to create hourly global cloud properties that estimate fluxes between CERES instrument measurements to account for the changing diurnal cycle. The data set is arranged as files for each hour and in netCDF-4 format. The observations are at 4 km resolution (at nadir) and are sub-sampled to 8 km. CERES is a key Earth Observing System (EOS) program component. The CERES instruments provide radiometric measurements of the Earth's atmosphere from three broadband channels. The CERES missions follow the successful Earth Radiation Budget Experiment (ERBE) mission. The first CERES instrument, the proto flight model (PFM), was launched on November 27, 1997, as part of the Tropical Rainfall Measuring Mission (TRMM). Two CERES instruments (FM1 and FM2) were launched into polar orbit onboard the Earth Observing System (EOS) flagship Terra on December 18, 1999. Two additional CERES instruments (FM3 and FM4) were launched onboard Earth Observing System (EOS) Aqua on May 4, 2002. The CERES FM5 instrument was launched onboard the Suomi National Polar-orbiting Partnership (NPP) satellite on October 28, 2011. The newest CERES instrument (FM6) was launched onboard the Joint Polar-Orbiting Satellite System 1 (JPSS-1) satellite, now called NOAA-20, on November 18, 2017.",
- "doi": "10.5067/MET11/CERES/GEO_ED4_NH_V01.2",
- "id": "C1200000014-PROV1",
- "permittedGroups": Object {
- "@type": "g:List",
- "@value": Array [
- "guest",
- "registered",
- ],
+ "@type": "g:Int64",
+ "@value": 34,
},
- "providerId": "PROV1",
- "relationships": Array [
Object {
- "level": "term",
- "relationshipType": "scienceKeyword",
- "value": "CLOUDS",
+ "@type": "g:Int64",
+ "@value": 1,
},
],
- "shortName": "CER_GEO_Ed4_MET11_NH",
- "title": "SatCORPS CERES GEO Edition 4 Meteosat-11 Northern Hemisphere Version 1.2",
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
},
],
}
❯ src/datasources/__tests__/graphDb.test.js:500:26
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > When both GraphDbCitation and GraphDbScienceKeyword are requested > returns a result with both citation and scienceKeyword types:
src/datasources/__tests__/graphDb.test.js#L409
AssertionError: expected { count: [ { …(2) }, { …(2) } ], …(1) } to deeply equal { count: 21, items: [ { …(8) } ] }
- Expected
+ Received
Object {
- "count": 21,
- "items": Array [
+ "count": Array [
Object {
- "abstract": "This is a sample collection for SHORT_NAME_12_1747953501 created at 2025-05-22T22:38:21.725Z",
- "doi": "10.5067/TestSHORT_NAME_12_1747953501_1747953501",
- "id": "C1200000024-PROV1",
- "permittedGroups": Object {
- "@type": "g:List",
- "@value": Array [
- "guest",
- "registered",
- ],
+ "@type": "g:Int64",
+ "@value": 21,
},
- "providerId": "PROV1",
- "relationships": Array [
Object {
- "abstract": "This is a randomly generated citation for demonstration purposes. Created at 2025-05-22T22:38:42.967Z.",
- "id": "CIT1200000066-PROV1",
- "identifier": "ark:/13030/tf4p17479",
- "identifierType": "ARK",
- "name": "Archival Earth Science Resource 4",
- "providerId": "PROV1",
- "relationshipType": "citation",
- "title": "Archival Earth Science Resource 4 - Research Publication 4",
+ "@type": "g:Int64",
+ "@value": 1,
},
],
- "shortName": "SHORT_NAME_12_1747953501",
- "title": "Entry Title 12 1747953501",
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
},
],
}
❯ src/datasources/__tests__/graphDb.test.js:409:26
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > When only GraphDbScienceKeyword is requested > returns a result with only scienceKeyword types:
src/datasources/__tests__/graphDb.test.js#L290
AssertionError: expected { count: [ { …(2) }, { …(2) } ], …(1) } to deeply equal { count: 1, items: [ { …(8) } ] }
- Expected
+ Received
Object {
- "count": 1,
- "items": Array [
+ "count": Array [
Object {
- "abstract": "This is a sample collection for SHORT_NAME_1_1747953491 created at 2025-05-22T22:38:11.248Z",
- "doi": "10.5067/TestSHORT_NAME_1_1747953491_1747953491",
- "id": "C1200000013-PROV3",
- "permittedGroups": Object {
- "@type": "g:List",
- "@value": Array [
- "guest",
- "registered",
- ],
+ "@type": "g:Int64",
+ "@value": 1,
},
- "providerId": "PROV3",
- "relationships": Array [
Object {
- "level": "variable",
- "relationshipType": "scienceKeyword",
- "variableLevel1": "CARBON MONOXIDE",
+ "@type": "g:Int64",
+ "@value": 1,
},
],
- "shortName": "SHORT_NAME_1_1747953491",
- "title": "Entry Title 1 1747953491",
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
},
],
}
❯ src/datasources/__tests__/graphDb.test.js:290:26
|
src/datasources/__tests__/graphDb.test.js > graphDb > When a subset of relationship types are requested > When only GraphDbCitation is requested > returns a result with only citation types:
src/datasources/__tests__/graphDb.test.js#L185
AssertionError: expected { count: [ { …(2) }, { …(2) } ], …(1) } to deeply equal { count: 21, items: [ { …(8) } ] }
- Expected
+ Received
Object {
- "count": 21,
- "items": Array [
+ "count": Array [
Object {
- "abstract": "This is a sample collection for SHORT_NAME_12_1747953501 created at 2025-05-22T22:38:21.725Z",
- "doi": "10.5067/TestSHORT_NAME_12_1747953501_1747953501",
- "id": "C1200000024-PROV1",
- "permittedGroups": Object {
- "@type": "g:List",
- "@value": Array [
- "guest",
- "registered",
- ],
+ "@type": "g:Int64",
+ "@value": 21,
},
- "providerId": "PROV1",
- "relationships": Array [
Object {
- "abstract": "This is a randomly generated citation for demonstration purposes. Created at 2025-05-22T22:38:42.967Z.",
- "id": "CIT1200000066-PROV1",
- "identifier": "ark:/13030/tf4p17479",
- "identifierType": "ARK",
- "name": "Archival Earth Science Resource 4",
- "providerId": "PROV1",
- "relationshipType": "citation",
- "title": "Archival Earth Science Resource 4 - Research Publication 4",
+ "@type": "g:Int64",
+ "@value": 1,
},
],
- "shortName": "SHORT_NAME_12_1747953501",
- "title": "Entry Title 12 1747953501",
+ "items": Array [
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
+ },
+ Object {
+ "id": undefined,
+ "relationshipCount": 0,
+ "relationships": Array [],
},
],
}
❯ src/datasources/__tests__/graphDb.test.js:185:26
|