Skip to content

Commit

Permalink
[#8] fixing/updating tests to test raw extracted metadata (no adapter…
Browse files Browse the repository at this point in the history
… used)
  • Loading branch information
pkdash committed Mar 21, 2024
1 parent e702fe6 commit 100b66d
Show file tree
Hide file tree
Showing 9 changed files with 164 additions and 124 deletions.
47 changes: 26 additions & 21 deletions tests/outputs/feature-states.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,36 +64,41 @@
"subjects": [
"TauDEM"
],
"files": [
"associatedMedia": [
{
"path": "states/states.dbf",
"size": 2846,
"checksum": "36b7de1ffe2621d8e8437277abebf379",
"mime_type": null
"contentUrl": "states/states.dbf",
"contentSize": "2.846 KB",
"sha256": "80e5e3fd777d4d8394dccc0040ec7cb8250f2d5890f1f5c7e153e70ea864e054",
"encodingFormat": null,
"name": "states.dbf"
},
{
"path": "states/states.prj",
"size": 167,
"checksum": "8e24fe15b2c8c640c459006722fa1e7f",
"mime_type": null
"contentUrl": "states/states.prj",
"contentSize": "0.167 KB",
"sha256": "84cf5b9a3c1a444f83ac30ff76f8c5035990223027ba69b2f4d628388adcbd65",
"encodingFormat": null,
"name": "states.prj"
},
{
"path": "states/states.shp",
"size": 222392,
"checksum": "58f07b1470f1da15b3f975070800e7ec",
"mime_type": "application/x-qgis"
"contentUrl": "states/states.shp",
"contentSize": "222.392 KB",
"sha256": "5dcb0eceff81acfe776b3b08dd733e0b519d361783f82afa31876eff9ff45e88",
"encodingFormat": "application/x-qgis",
"name": "states.shp"
},
{
"path": "states/states.shp.xml",
"size": 10489,
"checksum": "b2b5b64ed97a013c364cf3af354e1bf0",
"mime_type": "application/xml"
"contentUrl": "states/states.shp.xml",
"contentSize": "10.489 KB",
"sha256": "3213aa43cf5f6aa9b2c2ea6b9560956f047f907a8187ca6140401d3a187ceffe",
"encodingFormat": "application/xml",
"name": "states.shp.xml"
},
{
"path": "states/states.shx",
"size": 508,
"checksum": "196d5300e56d5077dd812edea0b1a381",
"mime_type": "application/x-qgis"
"contentUrl": "states/states.shx",
"contentSize": "0.508 KB",
"sha256": "2697eb17b968d7733813c3d8d6536b706499f7fee3e37ff35e3a6366e0d9ea36",
"encodingFormat": "application/x-qgis",
"name": "states.shx"
}
]
}
74 changes: 41 additions & 33 deletions tests/outputs/feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,54 +66,62 @@
"feature_count": 5,
"geometry_type": "POLYGON"
},
"files": [
"associatedMedia": [
{
"path": "watersheds/watersheds.cpg",
"size": 5,
"checksum": "ae3b3df9970b49b6523e608759bc957d",
"mime_type": null
"contentUrl": "watersheds/watersheds.cpg",
"contentSize": "0.005 KB",
"sha256": "3ad3031f5503a4404af825262ee8232cc04d4ea6683d42c5dd0a2f2a27ac9824",
"encodingFormat": null,
"name": "watersheds.cpg"
},
{
"path": "watersheds/watersheds.dbf",
"size": 666,
"checksum": "5f0795b993fb2a78ee67c5836e562123",
"mime_type": null
"contentUrl": "watersheds/watersheds.dbf",
"contentSize": "0.666 KB",
"sha256": "c351188821452dd4802e19a27529a2637d1190ea748ee233194e2d08eb8776ea",
"encodingFormat": null,
"name": "watersheds.dbf"
},
{
"path": "watersheds/watersheds.prj",
"size": 425,
"checksum": "5107bb62e2ab8f330d2e58c9a66db212",
"mime_type": null
"contentUrl": "watersheds/watersheds.prj",
"contentSize": "0.425 KB",
"sha256": "d8d0a7a0e0b796b5468d4c9827b2ff864b5be38b96df55efdb14b73c3ec0bc12",
"encodingFormat": null,
"name": "watersheds.prj"
},
{
"path": "watersheds/watersheds.sbn",
"size": 180,
"checksum": "2c11856707ebf325113081c82cc8914f",
"mime_type": null
"contentUrl": "watersheds/watersheds.sbn",
"contentSize": "0.18 KB",
"sha256": "fc1c6b5bfb502919a3402f2d929bed1dcc9bbbf77679881b9ffb0087be785fc0",
"encodingFormat": null,
"name": "watersheds.sbn"
},
{
"path": "watersheds/watersheds.sbx",
"size": 124,
"checksum": "f68d697732ad065f596fac7472014394",
"mime_type": null
"contentUrl": "watersheds/watersheds.sbx",
"contentSize": "0.124 KB",
"sha256": "ffc7a4c8ab42afb049a10a78aa99f2003d457ab0261c4fbdaa1802f0e5a0a54c",
"encodingFormat": null,
"name": "watersheds.sbx"
},
{
"path": "watersheds/watersheds.shp",
"size": 29228,
"checksum": "2bdc7bf81d55fab1ab59b2861e5fbb40",
"mime_type": "application/x-qgis"
"contentUrl": "watersheds/watersheds.shp",
"contentSize": "29.228 KB",
"sha256": "258a1a0291179c80df6b20c8577d5b9d7e13a791c60753953fdaeba4ff9587b6",
"encodingFormat": "application/x-qgis",
"name": "watersheds.shp"
},
{
"path": "watersheds/watersheds.shp.xml",
"size": 821,
"checksum": "e5d6d6d7658983fbe7ae75589ec64d06",
"mime_type": "application/xml"
"contentUrl": "watersheds/watersheds.shp.xml",
"contentSize": "0.821 KB",
"sha256": "45b01b459b0cc25ce07c8ee184aa9eab16acf1f149a37f31c41f5609f9cde2ef",
"encodingFormat": "application/xml",
"name": "watersheds.shp.xml"
},
{
"path": "watersheds/watersheds.shx",
"size": 140,
"checksum": "27ba8e2b565c810cdda151e70c1ef3cc",
"mime_type": "application/x-qgis"
"contentUrl": "watersheds/watersheds.shx",
"contentSize": "0.14 KB",
"sha256": "f66736da63de330216ac27939f725348177f439e120b89ab2cb4612292bf4ab8",
"encodingFormat": "application/x-qgis",
"name": "watersheds.shx"
}
]
}
11 changes: 6 additions & 5 deletions tests/outputs/netcdf.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@
"projection_string": "+proj=tmerc +y_0=0.0 +x_0=500000.0 +k_0=0.9996 +lat_0=0.0 +lon_0=-111.0",
"datum": ""
},
"files": [
"associatedMedia": [
{
"path": "netcdf/netcdf_valid.nc",
"size": 4869898,
"checksum": "970c1171f2445d6d76b606feaa5f2e5c",
"mime_type": "application/x-netcdf"
"contentUrl": "netcdf/netcdf_valid.nc",
"contentSize": 4869898,
"sha256": "970c1171f2445d6d76b606feaa5f2e5c",
"encodingFormat": "application/x-netcdf",
"name": "netcdf_valid.nc"
}
]
}
11 changes: 6 additions & 5 deletions tests/outputs/raster-single.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
"variable_name": "",
"variable_unit": ""
},
"files": [
"associatedMedia": [
{
"path": "rasters/single/logan1.tif",
"size": 100749,
"checksum": "bebc0e5333d575b775cda48d6d27a21c",
"mime_type": "image/tiff"
"contentUrl": "rasters/single/logan1.tif",
"contentSize": "100.749 KB",
"sha256": "830f4b50e78e8a8fb0f7eee7369171dacbcaa43cc2c4deb59cef8e4fd2f641c5",
"encodingFormat": "image/tiff",
"name": "logan1.tif"
}
]
}
29 changes: 16 additions & 13 deletions tests/outputs/raster.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,27 @@
"variable_name": "",
"variable_unit": ""
},
"files": [
"associatedMedia": [
{
"path": "rasters/logan1.tif",
"size": 100749,
"checksum": "bebc0e5333d575b775cda48d6d27a21c",
"mime_type": "image/tiff"
"contentUrl": "rasters/logan1.tif",
"contentSize": "100.749 KB",
"sha256": "830f4b50e78e8a8fb0f7eee7369171dacbcaa43cc2c4deb59cef8e4fd2f641c5",
"encodingFormat": "image/tiff",
"name": "logan1.tif"
},
{
"path": "rasters/logan2.tif",
"size": 98943,
"checksum": "7265548b8f345605113bd9539313b4e7",
"mime_type": "image/tiff"
"contentUrl": "rasters/logan2.tif",
"contentSize": "98.943 KB",
"sha256": "b5ad48ae6428c23c63ceaa93838eb2b3a688a3ecfbf10f01fcbc25f0d2d16f46",
"encodingFormat": "image/tiff",
"name": "logan2.tif"
},
{
"path": "rasters/logan.vrt",
"size": 2150,
"checksum": "d1f18cc8a0a3c98403625d11a5096bfb",
"mime_type": null
"contentUrl": "rasters/logan.vrt",
"contentSize": "2.175 KB",
"sha256": "94a844d49defcafef815258d1d2bc558b464d9454de7e178b25d5377eca789b4",
"encodingFormat": null,
"name": "logan.vrt"
}
]
}
11 changes: 6 additions & 5 deletions tests/outputs/reftimeseries.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
"projection": "Unknown",
"units": "Decimal degrees"
},
"files": [
"associatedMedia": [
{
"path": "reftimeseries/multi_sites_formatted_version1.0.refts.json",
"size": 2176,
"checksum": "5ad44dba2cf0b9ef096dae121b05ba60",
"mime_type": "application/json"
"contentUrl": "reftimeseries/multi_sites_formatted_version1.0.refts.json",
"contentSize": "2.176 KB",
"sha256": "5ad44dba2cf0b9ef096dae121b05ba60",
"encodingFormat": "application/json",
"name": "multi_sites_formatted_version1.0.refts.json"
}
]
}
11 changes: 6 additions & 5 deletions tests/outputs/timeseries-csv.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"start": "2008-01-01T00:00:00",
"end": "2008-01-01T09:30:00"
},
"files": [
"associatedMedia": [
{
"path": "timeseries/ODM2_Multi_Site_One_Variable_Test.csv",
"size": 737,
"checksum": "db7548ad91f49e2a7ba663b77299a2fa",
"mime_type": "text/csv"
"contentUrl": "timeseries/ODM2_Multi_Site_One_Variable_Test.csv",
"contentSize": "0.737 KB",
"sha256": "7eab3b1b96d9fb2952e306dd82d673299f8a41a3af2e36dae57469a1e6d35941",
"encodingFormat": "text/csv",
"name": "ODM2_Multi_Site_One_Variable_Test.csv"
}
]
}
11 changes: 6 additions & 5 deletions tests/outputs/timeseries.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,13 @@
}
}
],
"files": [
"associatedMedia": [
{
"path": "timeseries/ODM2_Multi_Site_One_Variable.sqlite",
"size": 1894400,
"checksum": "12aa820cbd1d28d926ec6d28f0202659",
"mime_type": null
"contentUrl": "timeseries/ODM2_Multi_Site_One_Variable.sqlite",
"contentSize": "1894.4 KB",
"sha256": "2fba6f2ebac562dac6a57acf0fdc5fdfabc9654b3c910aa6ef69cf4385997e19",
"encodingFormat": null,
"name": "ODM2_Multi_Site_One_Variable.sqlite"
}
]
}
Loading

0 comments on commit 100b66d

Please sign in to comment.