Skip to content

Commit

Permalink
Merge pull request #232 from bird-house/allow-to-test-geoserver-on-ne…
Browse files Browse the repository at this point in the history
…w-production-server

subset.ipynb: allow to test GeoServer on new production server

Switch from `boreas.ouranos.ca` to `pavics.ouranos.ca` will allow us to
conditionally regex replace `pavics.ouranos.ca` to the server under test
so we can actually test the Geoserver on that new server.

Everywhere under this finch repo, we use `pavics.ouranos.ca`. This
is the only locations that hardcode `boreas.ouranos.ca` because
geoserver data are not replicated to standard test servers so hardcoding
it this way will use the data from the production server.

This patch achieve the same "data from prod" but also allow override if
We need to actually test the future production server.

Related to Ouranosinc/pavics-sdi#183 and Ouranosinc/PAVICS-e2e-workflow-tests#104.
  • Loading branch information
tlvu authored Apr 5, 2022
2 parents f23c383 + 8e84566 commit 56ab163
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/notebooks/subset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"from pathlib import Path\n",
"\n",
"# Connect to GeoServer WFS service.\n",
"wfs_url = 'https://boreas.ouranos.ca/geoserver/wfs'\n",
"wfs_url = 'https://pavics.ouranos.ca/geoserver/wfs' # TEST_USE_PROD_DATA\n",
"wfs = WebFeatureService(wfs_url, version='1.1.0')"
]
},
Expand Down Expand Up @@ -1234,9 +1234,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"96K\t/tmp/mtl_raw.geojson\r\n",
"16M\t/tmp/prov_raw.geojson\r\n",
"800K\t/tmp/prov_simp.geojson\r\n"
"96K\t/tmp/mtl_raw.geojson\n",
"16M\t/tmp/prov_raw.geojson\n",
"800K\t/tmp/prov_simp.geojson\n"
]
}
],
Expand Down Expand Up @@ -1729,7 +1729,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.9"
"version": "3.8.13"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 56ab163

Please sign in to comment.