-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reject if namespace contains string mismatched with env #232
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9be1e4e
reject if namespace contains string mismatched with env
charlienegri 2d3140d
Add namespaces to test
mortenwh c48c41d
fix flake error
mortenwh aa83811
split namespace rejection test in staging/dev
charlienegri 467f6fd
fix syntax
charlienegri ceeb4b0
Merge branch 'main' into issue_228
charlienegri 7bcc282
condense tests, add comments to test
charlienegri 9f27b99
fix comment
charlienegri 85a3925
Merge branch 'main' into issue_228
mortenwh f2e74a3
Merge branch 'main' into issue_228
mortenwh 864e85e
Merge branch 'issue_228' of github.com:metno/discovery-metadata-catal…
mortenwh 41f3924
Merge branch 'main' into issue_228
mortenwh fdf32b1
Merge branch 'main' into issue_228
mortenwh 90301d7
#228: add comment
mortenwh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
<mmd:mmd xmlns:mmd="http://www.met.no/schema/mmd" xmlns:gml="http://www.opengis.net/gml"> | ||
<mmd:metadata_identifier>test.no.staging:a1ddaf0f-cae0-4a15-9b37-3468e9cb1a2b</mmd:metadata_identifier> | ||
<mmd:title xml:lang="en">Direct Broadcast data processed in satellite swath to L1C</mmd:title> | ||
<mmd:title xml:lang="nor">Direktesendte satellittdata prosessert i satellittsveip til L1C.</mmd:title> | ||
<mmd:abstract xml:lang="en">Direct Broadcast data received at MET NORWAY Oslo. Processed by standard processing software to geolocated and calibrated values in satellite swath in received instrument resolution.</mmd:abstract> | ||
<mmd:abstract xml:lang="nor">Direktesendte satellittdata mottatt ved Meteorologisk Institutt Oslo. Prosessert med standard prosesseringssoftware til geolokaliserte og kalibrerte verdier i satellitsveip i mottatt instrument oppløsning.</mmd:abstract> | ||
<mmd:metadata_status>Active</mmd:metadata_status> | ||
<mmd:dataset_production_status>Complete</mmd:dataset_production_status> | ||
<mmd:collection>METNCS</mmd:collection> | ||
<mmd:last_metadata_update> | ||
<mmd:update> | ||
<mmd:datetime>2021-04-29T00:46:05Z</mmd:datetime> | ||
<mmd:type>Created</mmd:type> | ||
</mmd:update> | ||
</mmd:last_metadata_update> | ||
<mmd:temporal_extent> | ||
<mmd:start_date>2021-04-29T00:28:44.977627Z</mmd:start_date> | ||
<mmd:end_date>2021-04-29T00:39:55.000000Z</mmd:end_date> | ||
</mmd:temporal_extent> | ||
<mmd:iso_topic_category>climatologyMeteorologyAtmosphere</mmd:iso_topic_category> | ||
<mmd:iso_topic_category>environment</mmd:iso_topic_category> | ||
<mmd:iso_topic_category>oceans</mmd:iso_topic_category> | ||
<mmd:keywords vocabulary="GCMD"> | ||
<mmd:keyword>Earth Science > Atmosphere > Atmospheric radiation</mmd:keyword> | ||
<mmd:resource>https://gcmdservices.gsfc.nasa.gov/static/kms/</mmd:resource> | ||
<mmd:separator></mmd:separator> | ||
</mmd:keywords> | ||
<mmd:keywords vocabulary="GEMET"> | ||
<mmd:keyword>Meteorological geographical features</mmd:keyword> | ||
<mmd:keyword>Atmospheric conditions</mmd:keyword> | ||
<mmd:keyword>Oceanographic geographical features</mmd:keyword> | ||
<mmd:resource>http://inspire.ec.europa.eu/theme</mmd:resource> | ||
<mmd:separator></mmd:separator> | ||
</mmd:keywords> | ||
<mmd:keywords vocabulary="Norwegian thematic categories"> | ||
<mmd:keyword>Weather and climate</mmd:keyword> | ||
<mmd:resource>https://register.geonorge.no/subregister/metadata-kodelister/kartverket/nasjonal-temainndeling</mmd:resource> | ||
<mmd:separator></mmd:separator> | ||
</mmd:keywords> | ||
<mmd:geographic_extent> | ||
<mmd:rectangle srsName="EPSG:4326"> | ||
<mmd:north>80.49233</mmd:north> | ||
<mmd:south>36.540688</mmd:south> | ||
<mmd:east>79.40124</mmd:east> | ||
<mmd:west>1.5549301</mmd:west> | ||
</mmd:rectangle> | ||
</mmd:geographic_extent> | ||
<mmd:dataset_language>en</mmd:dataset_language> | ||
<mmd:operational_status>Operational</mmd:operational_status> | ||
<mmd:use_constraint> | ||
<mmd:identifier>CC-BY-4.0</mmd:identifier> | ||
<mmd:resource>http://spdx.org/licenses/CC-BY-4.0</mmd:resource> | ||
</mmd:use_constraint> | ||
<mmd:personnel> | ||
<mmd:role>Technical contact</mmd:role> | ||
<mmd:name>DIVISION FOR OBSERVATION QUALITY AND DATA PROCESSING</mmd:name> | ||
<mmd:email>[email protected]</mmd:email> | ||
<mmd:organisation>MET NORWAY</mmd:organisation> | ||
</mmd:personnel> | ||
<mmd:personnel> | ||
<mmd:role>Metadata author</mmd:role> | ||
<mmd:name>DIVISION FOR OBSERVATION QUALITY AND DATA PROCESSING</mmd:name> | ||
<mmd:email>[email protected]</mmd:email> | ||
<mmd:organisation>unknown</mmd:organisation> | ||
</mmd:personnel> | ||
<mmd:data_center> | ||
<mmd:data_center_name> | ||
<mmd:short_name>MET NORWAY</mmd:short_name> | ||
<mmd:long_name>MET NORWAY</mmd:long_name> | ||
</mmd:data_center_name> | ||
<mmd:data_center_url>met.no</mmd:data_center_url> | ||
</mmd:data_center> | ||
<mmd:data_access> | ||
<mmd:type>OPeNDAP</mmd:type> | ||
<mmd:description>Open-source Project for a Network Data Access Protocol</mmd:description> | ||
<mmd:resource>https://thredds.met.no/thredds/dodsC/remotesensingsatellite/polar-swath/2021/04/29/aqua-modis-1km-20210429002844-20210429003955.nc</mmd:resource> | ||
</mmd:data_access> | ||
<mmd:data_access> | ||
<mmd:type>OGC WMS</mmd:type> | ||
<mmd:description>OGC Web Mapping Service, URI to GetCapabilities Document.</mmd:description> | ||
<mmd:resource>https://thredds.met.no/thredds/wms/remotesensingsatellite/polar-swath/2021/04/29/aqua-modis-1km-20210429002844-20210429003955.nc?service=WMS&version=1.3.0&request=GetCapabilities</mmd:resource> | ||
<mmd:wms_layers> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_brightness_temperature</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
<mmd:wms_layer>toa_bidirectional_reflectance</mmd:wms_layer> | ||
</mmd:wms_layers> | ||
</mmd:data_access> | ||
<mmd:data_access> | ||
<mmd:type>HTTP</mmd:type> | ||
<mmd:description>Direct download of file</mmd:description> | ||
<mmd:resource>https://thredds.met.no/thredds/fileServer/remotesensingsatellite/polar-swath/2021/04/29/aqua-modis-1km-20210429002844-20210429003955.nc</mmd:resource> | ||
</mmd:data_access> | ||
<mmd:related_dataset relation_type="parent">test.no.staging:64db6102-14ce-41e9-b93b-61dbb2cb8b4e</mmd:related_dataset> | ||
<mmd:storage_information> | ||
<mmd:file_name>aqua-modis-1km-20210429002844-20210429003955.nc</mmd:file_name> | ||
<mmd:file_location>/lustre/storeB/immutable/archive/projects/remotesensing/satellite-thredds/polar-swath/2021/04/29/aqua-modis-1km-20210429002844-20210429003955.nc</mmd:file_location> | ||
<mmd:file_format>NetCDF-CF</mmd:file_format> | ||
<mmd:file_size unit="MB">1862.00</mmd:file_size> | ||
<mmd:checksum type="md5sum">4e1833610272ee63228f575d1c875fbe</mmd:checksum> | ||
</mmd:storage_information> | ||
<mmd:project> | ||
<mmd:short_name>Govermental core service</mmd:short_name> | ||
<mmd:long_name>Govermental core service</mmd:long_name> | ||
</mmd:project> | ||
<mmd:platform> | ||
<mmd:short_name>Aqua</mmd:short_name> | ||
<mmd:long_name>Aqua</mmd:long_name> | ||
<mmd:resource>https://www.wmo-sat.info/oscar/satellites/view/aqua</mmd:resource> | ||
<mmd:instrument> | ||
<mmd:short_name>MODIS</mmd:short_name> | ||
<mmd:long_name>MODIS</mmd:long_name> | ||
<mmd:resource>https://www.wmo-sat.info/oscar/instruments/view/modis</mmd:resource> | ||
</mmd:instrument> | ||
</mmd:platform> | ||
<mmd:activity_type>Space Borne Instrument</mmd:activity_type> | ||
<mmd:dataset_citation> | ||
<mmd:author>DIVISION FOR OBSERVATION QUALITY AND DATA PROCESSING</mmd:author> | ||
<mmd:publication_date>2021-04-29</mmd:publication_date> | ||
<mmd:title>Direct Broadcast data processed in satellite swath to L1C</mmd:title> | ||
</mmd:dataset_citation> | ||
</mmd:mmd> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just check
and so on? Does it fail for prod then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that this will also be wrong. The point is that I prefer to avoid hardcoding "dev" and "staging"...