Skip to content

Commit

Permalink
different name to avoid match with into-wmo
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Nov 19, 2024
1 parent 8d25bf4 commit e01ca10
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ jobs:
curl -s http://localhost/data/metadata/$DISCOVERY_METADATA_ID.json --output /tmp/$DISCOVERY_METADATA_ID
pywcmp ets validate /tmp/$DISCOVERY_METADATA_ID
python3 wis2box-ctl.py execute wis2box data ingest -mdi $DISCOVERY_METADATA_ID -p $TEST_DATA
- name: add int-daycli-test data (csv2bufr)
- name: add org-daycli-test data (csv2bufr)
env:
TOPIC_HIERARCHY: origin/a/wis2/int-daycli-test/data/core/climate/surface-based-observations/daily
DISCOVERY_METADATA: /data/wis2box/metadata/discovery/int-daycli-test.yml
DISCOVERY_METADATA_ID: urn:wmo:md:int-daycli-test:surface-climate-observations:daily
TOPIC_HIERARCHY: origin/a/wis2/org-daycli-test/data/core/climate/surface-based-observations/daily
DISCOVERY_METADATA: /data/wis2box/metadata/discovery/org-daycli-test.yml
DISCOVERY_METADATA_ID: urn:wmo:md:org-daycli-test:surface-climate-observations:daily
STATION_METADATA: /data/wis2box/metadata/station/daycli-test.csv
TEST_DATA: /data/wis2box/observations/daycli-test
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
wis2box:
retention: P30D
topic_hierarchy: int-daycli-test/data/core/climate/surface-based-observations/daily
topic_hierarchy: org-daycli-test/data/core/climate/surface-based-observations/daily
country: int
centre_id: int-daycli-test
centre_id: org-daycli-test
data_mappings:
plugins:
csv:
Expand All @@ -18,7 +18,7 @@ mcf:
version: 1.0

metadata:
identifier: urn:wmo:md:int-daycli-test:surface-climate-observations:daily
identifier: urn:wmo:md:org-daycli-test:surface-climate-observations:daily
hierarchylevel: dataset

identification:
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_wis2downloader():
'origin/a/wis2/int-wmo-test/data/core/weather/surface-based-observations/ship': 5, # noqa
'origin/a/wis2/it-meteoam/data/core/weather/surface-based-observations/synop': 31, # noqa
'origin/a/wis2/int-wmo-test/data/core/weather/advisories-warnings': 1, # noqa
'int-daycli-test/data/core/climate/surface-based-observations/daily': 30 # noqa
'origin/a/wis2/org-daycli-test/data/core/climate/surface-based-observations/daily': 30 # noqa
}

topic_nfiles_dict_found = {}
Expand Down Expand Up @@ -172,7 +172,7 @@ def test_metadata_discovery_publish():
'ro-rnimh-test',
'cg-met',
'int-wmo-test',
'int-daycli-test'
'org-daycli-test'
]

for centre_id in centre_ids:
Expand Down Expand Up @@ -307,10 +307,10 @@ def test_message_api():
'cg-met': 15,
'int-wmo': 13,
'cn-cma': 11,
'int-daycli-test': 30
'org-daycli-test': 30
}
for key, value in counts.items():
url = f'{API_URL}/collections/messages/items?sortby=-datetime&data_id={key}&limit=1' # noqa
url = f'{API_URL}/collections/messages/items?sortby=-datetime&q={key}&limit=1' # noqa
r = SESSION.get(url).json()
assert r['numberMatched'] == value

Expand Down

0 comments on commit e01ca10

Please sign in to comment.