Skip to content

Commit

Permalink
update GRIB/BUFR media types (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Oct 10, 2024
1 parent 53d2860 commit 22c15a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def test_message_api():

link_rel = msg['links'][0]

assert link_rel['type'] == 'application/x-bufr'
assert link_rel['type'] == 'application/bufr'

r = SESSION.get(link_rel['href'])

Expand Down Expand Up @@ -387,6 +387,6 @@ def test_message_api():

link_rel = msg['links'][0]

assert link_rel['type'] == 'application/x-bufr'
assert link_rel['type'] == 'application/bufr'
assert link_rel['security']['default']['type'] == 'http'
assert link_rel['security']['default']['scheme'] == 'bearer'
6 changes: 3 additions & 3 deletions wis2box-management/wis2box/pubsub/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class SecureHashAlgorithms(Enum):


DATA_OBJECT_MIMETYPES = {
'bufr4': 'application/x-bufr',
'grib2': 'application/x-grib2',
'bufr4': 'application/bufr',
'grib2': 'application/grib2',
'geojson': 'application/json'
}

Expand Down Expand Up @@ -183,7 +183,7 @@ def __init__(self, identifier: str, metadata_id: str, filepath: str,
}
},
'links': links,
'generated-by': f'wis2box {__version__}'
'generated_by': f'wis2box {__version__}'
}

if metadata_id is not None:
Expand Down

0 comments on commit 22c15a5

Please sign in to comment.