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 TaxHub URL with GeoNature 2.15 #48

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
4 changes: 2 additions & 2 deletions datasync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Module settings can be loaded from JSON as follow:
{
"sync": {
"geonature_url": "https://demo.geonature/geonature",
"taxhub_url": "https://demo.geonature/taxhub",
"taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
"gn_application_id": 3,
"observers_list_id": 1,
"taxa_list_id": 100,
Expand All @@ -59,7 +59,7 @@ or
```json
{
"geonature_url": "https://demo.geonature/geonature",
"taxhub_url": "https://demo.geonature/taxhub",
"taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
"gn_application_id": 3,
"observers_list_id": 1,
"taxa_list_id": 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import java.io.StringReader
* ```json
* {
* "geonature_url": "https://demo.geonature/geonature",
* "taxhub_url": "https://demo.geonature/taxhub",
* "taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
* "gn_application_id": 3,
* "observers_list_id": 1,
* "taxa_list_id": 100,
Expand All @@ -33,7 +33,7 @@ import java.io.StringReader
* {
* "sync": {
* "geonature_url": "https://demo.geonature/geonature",
* "taxhub_url": "https://demo.geonature/taxhub",
* "taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
* "gn_application_id": 3,
* "observers_list_id": 1,
* "taxa_list_id": 100,
Expand Down Expand Up @@ -169,4 +169,4 @@ class DataSyncSettingsJsonReader(private val fromExistingDataSyncSettings: DataS
)
}
.getOrThrow()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AppPackageJsonReaderTest {
"area_observation_duration" to 365.0,
"sync" to mapOf(
"geonature_url" to "https://demo.geonature.fr/geonature",
"taxhub_url" to "https://demo.geonature.fr/taxhub",
"taxhub_url" to "https://demo.geonature.fr/geonature/api/taxhub",
"gn_application_id" to 1.0,
"observers_list_id" to 1.0,
"taxa_list_id" to 100.0,
Expand Down Expand Up @@ -195,4 +195,4 @@ class AppPackageJsonReaderTest {

assertTrue(appPackages.isEmpty())
}
}
}
4 changes: 2 additions & 2 deletions datasync/src/test/resources/fixtures/settings_datasync.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"geonature_url": "https://demo.geonature.fr/geonature",
"taxhub_url": "https://demo.geonature.fr/taxhub",
"taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
"gn_application_id": 3,
"observers_list_id": 1,
"taxa_list_id": 100,
"code_area_type": "M10",
"page_size": 1000,
"sync_periodicity_data_essential": "20m",
"sync_periodicity_data": "30m"
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"geonature_url": "https://demo.geonature.fr/geonature",
"taxhub_url": "https://demo.geonature.fr/taxhub",
"taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
"uh_application_id": 3,
"observers_list_id": 1,
"taxa_list_id": 100,
"code_area_type": "M10",
"page_size": 1000,
"sync_periodicity_data_essential": "20m",
"sync_periodicity_data": "30m"
}
}
4 changes: 2 additions & 2 deletions datasync/src/test/resources/fixtures/settings_sync.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sync": {
"geonature_url": "https://demo.geonature.fr/geonature",
"taxhub_url": "https://demo.geonature.fr/taxhub",
"taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
"gn_application_id": 3,
"observers_list_id": 1,
"taxa_list_id": 100,
Expand All @@ -10,4 +10,4 @@
"sync_periodicity_data_essential": "20m",
"sync_periodicity_data": "30m"
}
}
}
2 changes: 1 addition & 1 deletion datasync/src/test/resources/fixtures/t_mobile_app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"area_observation_duration": 365,
"sync": {
"geonature_url": "https://demo.geonature.fr/geonature",
"taxhub_url": "https://demo.geonature.fr/taxhub",
"taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
"gn_application_id": 1,
"observers_list_id": 1,
"taxa_list_id": 100,
Expand Down
4 changes: 2 additions & 2 deletions datasync/src/test/resources/fixtures/t_mobile_apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"area_observation_duration": 365,
"sync": {
"geonature_url": "https://demo.geonature.fr/geonature",
"taxhub_url": "https://demo.geonature.fr/taxhub",
"taxhub_url": "https://demo.geonature.fr/geonature/api/taxhub",
"gn_application_id": 1,
"observers_list_id": 1,
"taxa_list_id": 100,
Expand Down Expand Up @@ -63,4 +63,4 @@
}
}
}
]
]