Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jterry64 committed Sep 20, 2023
1 parent eb9ad20 commit e01aaaf
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions tests/fixtures/session_start.sql
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ CREATE TABLE public.assets
is_default boolean NOT NULL,
creation_options jsonb,
metadata jsonb,
fields jsonb,
stats jsonb,
change_log jsonb[],
CONSTRAINT assets_pkey PRIMARY KEY (dataset, version, asset_type),
Expand Down Expand Up @@ -182,10 +181,10 @@ CREATE INDEX geostore_gfw_geostore_id_idx
INSERT INTO public.datasets (dataset) VALUES ('nasa_viirs_fire_alerts');
INSERT INTO public.versions (dataset, version, is_latest, status)
VALUES ('nasa_viirs_fire_alerts', 'v202003', true, 'saved');
INSERT INTO public.assets (dataset, version, asset_type, creation_options, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('nasa_viirs_fire_alerts', 'v202003', 'Geo database table', '{}', '[{"field_name":"test", "field_alias": "TEST", "field_type": "text", "field_description": null, "is_feature_info": true, "is_filter": false}]', '327fdd68-2d07-4ced-99f1-69e7f74b20b7', 'saved', 'my_uri', true, true);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('nasa_viirs_fire_alerts', 'v202003', 'Dynamic vector tile cache', '{"min_zoom": 0, "max_zoom": 12, "field_attributes": null}', '[{"field_name":"dynamic_test", "field_alias": "TEST", "field_type": "text", "field_description": null, "is_feature_info": true, "is_filter": false}]', '33fd3dee-8f21-4ee6-9a90-e2bd2e1d5533', 'saved', 'my_uri2', true, false);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('nasa_viirs_fire_alerts', 'v202003', 'Geo database table', '{}', '{"fields":[{"name":"test", "alias": "TEST", "data_type": "text", "description": null, "is_feature_info": true, "is_filter": false}]}', '327fdd68-2d07-4ced-99f1-69e7f74b20b7', 'saved', 'my_uri', true, true);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('nasa_viirs_fire_alerts', 'v202003', 'Dynamic vector tile cache', '{"min_zoom": 0, "max_zoom": 12, "field_attributes": null}', '{"fields":[{"name":"dynamic_test", "alias": "TEST", "data_type": "text", "description": null, "is_feature_info": true, "is_filter": false}]}', '33fd3dee-8f21-4ee6-9a90-e2bd2e1d5533', 'saved', 'my_uri2', true, false);
INSERT INTO public.version_metadata (dataset, version, content_start_date, content_end_date, id)
VALUES ('nasa_viirs_fire_alerts', 'v202003', '2019-01-01', '2020-01-01', 'bb5b7bd2-eb83-11ed-a05b-0242ac120003');

Expand All @@ -195,40 +194,40 @@ INSERT INTO public.versions (dataset, version, is_latest, status)
INSERT INTO public.version_metadata (dataset, version, content_start_date, content_end_date, id)
VALUES ('umd_modis_burned_areas', 'v202003', '2019-01-01', '2020-01-01', '10246476-eb84-11ed-a05b-0242ac120003');

INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('umd_modis_burned_areas', 'v202003', 'Geo database table', '{}', '{}', '[{"field_name":"test", "field_alias": "TEST", "field_type": "text", "field_description": null, "is_feature_info": true, "is_filter": false}]', '327fdd68-2d07-4ced-99f1-69e7f74b20b7', 'saved', 'my_uri8', true, true);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('umd_modis_burned_areas', 'v202003', 'Dynamic vector tile cache', '{"min_zoom": 0, "max_zoom": 12, "field_attributes": null}', '[{"field_name":"dynamic_test", "field_alias": "TEST", "field_type": "text", "field_description": null, "is_feature_info": true, "is_filter": false}]', '33fd3dee-8f21-4ee6-9a90-e2bd2e1d5533', 'saved', 'my_uri9', true, false);
VALUES ('umd_modis_burned_areas', 'v202003', 'Geo database table', '{}', '{"fields":[{"name":"test", "alias": "TEST", "data_type": "text", "description": null, "is_feature_info": true, "is_filter": false}]}', '327fdd68-2d07-4ced-99f1-69e7f74b20b7', 'saved', 'my_uri8', true, true);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('umd_modis_burned_areas', 'v202003', 'Dynamic vector tile cache', '{"min_zoom": 0, "max_zoom": 12, "attributes": null}', '{"fields":[{"name":"dynamic_test", "alias": "TEST", "data_type": "text", "description": null, "is_feature_info": true, "is_filter": false}]', '33fd3dee-8f21-4ee6-9a90-e2bd2e1d5533', 'saved', 'my_uri9', true, false);

INSERT INTO public.datasets (dataset) VALUES ('wdpa_protected_areas');
INSERT INTO public.versions (dataset, version, is_latest, status)
VALUES ('wdpa_protected_areas', 'v201912', true, 'saved');
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('wdpa_protected_areas', 'v201912', 'Geo database table', '{}', '{}', '[{"field_name":"test", "field_alias": "TEST", "field_type": "text", "field_description": null, "is_feature_info": true, "is_filter": false}]', 'dc647190-c74b-4c9a-865e-e26e90480ec9', 'saved', 'my_uri3', true, true);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('wdpa_protected_areas', 'v201912', 'Geo database table', '{}', '{"fields":[{"name":"test", "alias": "TEST", "data_type": "text", "description": null, "is_feature_info": true, "is_filter": false}]}', 'dc647190-c74b-4c9a-865e-e26e90480ec9', 'saved', 'my_uri3', true, true);

INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('wdpa_protected_areas', 'v201912', 'Static vector tile cache', '{"min_zoom": 0, "max_zoom": 9, "field_attributes": null, "tile_strategy": "discontinuous", "implementation": "default", "layer_style": null}', '{}', '[{"field_name":"static_test", "field_alias": "TEST", "field_type": "text", "field_description": null, "is_feature_info": true, "is_filter": false}]', '0637a11b-18f7-42de-9a15-a0ec488c09b6', 'saved', 'my_uri4', true, false);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('wdpa_protected_areas', 'v201912', 'Static vector tile cache', '{"min_zoom": 0, "max_zoom": 9, "field_attributes": null, "tile_strategy": "discontinuous", "implementation": "default", "layer_style": null}', '{"fields":[{"name":"static_test", "alias": "TEST", "data_type": "text", "description": null, "is_feature_info": true, "is_filter": false}]}', '0637a11b-18f7-42de-9a15-a0ec488c09b6', 'saved', 'my_uri4', true, false);

INSERT INTO public.datasets (dataset) VALUES ('wur_radd_alerts');
INSERT INTO public.versions (dataset, version, is_latest, status)
VALUES ('wur_radd_alerts', 'v20201214', true, 'saved');

INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('wur_radd_alerts', 'v20201214', 'Raster tile cache', '{"min_zoom": 0, "max_zoom": 14, "max_static_zoom": 9, "implementation": "default", "symbology": null, "source_asset_id": null, "resampling":"average"}', '{}', '[]', '0637a11b-18f7-42de-9a15-a0ec488c09b7', 'saved', 'my_uri5', true, false);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('wur_radd_alerts', 'v20201214', 'Raster tile cache', '{"min_zoom": 0, "max_zoom": 14, "max_static_zoom": 9, "implementation": "default", "symbology": null, "source_asset_id": null, "resampling":"average"}', '{}', '0637a11b-18f7-42de-9a15-a0ec488c09b7', 'saved', 'my_uri5', true, false);

INSERT INTO public.datasets (dataset) VALUES ('umd_tree_cover_loss');
INSERT INTO public.versions (dataset, version, is_latest, status)
VALUES ('umd_tree_cover_loss', 'v1.8', true, 'saved');

INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('umd_tree_cover_loss', 'v1.8', 'Raster tile cache', '{"min_zoom": 0, "max_zoom": 12, "max_static_zoom": 12, "implementation": "tcd_30", "symbology": null, "source_asset_id": null, "resampling":"average"}', '{}', '[]', '8086c7f5-5f2f-491f-8792-5fc67b6a7b96', 'saved', 'my_uri6', true, false);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('umd_tree_cover_loss', 'v1.8', 'Raster tile cache', '{"min_zoom": 0, "max_zoom": 12, "max_static_zoom": 12, "implementation": "tcd_30", "symbology": null, "source_asset_id": null, "resampling":"average"}', '{}', '8086c7f5-5f2f-491f-8792-5fc67b6a7b96', 'saved', 'my_uri6', true, false);

INSERT INTO public.datasets (dataset) VALUES ('umd_glad_landsat_alerts');
INSERT INTO public.versions (dataset, version, is_latest, status)
VALUES ('umd_glad_landsat_alerts', 'v20210101', true, 'saved');

INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, fields, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('umd_glad_landsat_alerts', 'v20210101', 'Raster tile cache', '{"min_zoom": 0, "max_zoom": 12, "max_static_zoom": 9, "implementation": "default", "symbology": null, "source_asset_id": null, "resampling":"average"}', '{}', '[]', '3ac4028e-798d-4854-9b5e-6a9771ed06ed', 'saved', 'my_uri7', true, false);
INSERT INTO public.assets (dataset, version, asset_type, creation_options, metadata, asset_id, status, asset_uri, is_managed, is_default)
VALUES ('umd_glad_landsat_alerts', 'v20210101', 'Raster tile cache', '{"min_zoom": 0, "max_zoom": 12, "max_static_zoom": 9, "implementation": "default", "symbology": null, "source_asset_id": null, "resampling":"average"}', '{}', '3ac4028e-798d-4854-9b5e-6a9771ed06ed', 'saved', 'my_uri7', true, false);


CREATE SCHEMA umd_modis_burned_areas;
Expand Down

0 comments on commit e01aaaf

Please sign in to comment.