Skip to content
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

Update dataset_metadata_template.j2 #185

Merged
merged 4 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 36 additions & 2 deletions api/templates/dataset_metadata_template.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "urn:wmo:md:eu-eumetnet:weather.observations.swob-realtime",
"id": "urn:wmo:md:eu-eumetnet-observations:swob-realtime",
"conformsTo": ["http://wis.wmo.int/spec/wcmp/2/conf/core"],
"type": "Feature",
"geometry": {
Expand All @@ -24,7 +24,41 @@
],
"scheme": "https://codes.wmo.int/wis/topic-hierarchy/earth-system-discipline/_weather"
}
]
],
"language": "en",
"type": "dataset",
"created": "2023-01-01T00:00:00Z",
"updated": "2024-09-19T00:00:00Z",
"contacts": [
{
"organization": "EUMETNET",
"addresses": [
{
"deliveryPoint": [
"Avenue Circulaire 3"
],
"city": "Bruxelles",
"postalCode": "1180",
"country": "Belgique"
}
],
"links": [
{
"rel": "about",
"type": "text/html",
"href": "https://www.eumetnet.eu/about-us/"

}
],
"roles": ["host"]
}
],
"keywords": [
"surface weather",
"observations",
"meteorology"
],
"wmo:dataPolicy": "core"
},
"links": [
{
Expand Down
7 changes: 7 additions & 0 deletions datastore/integration-test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,3 +494,10 @@ def test_items_no_data_return():
assert actual_response.status_code == 404
expected_json = load_json("response/items_no_data_found.json")
actual_response_is_expected_response(actual_response, expected_json)


def test_get_dataset():
collection_id = "observations"
actual_response = requests.get(url=BASE_URL + f"/collections/{collection_id}/dataset")

assert actual_response.status_code == 200