Skip to content

Commit

Permalink
subset.ipynb: allow to test GeoServer on new production server
Browse files Browse the repository at this point in the history
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 pavics-sdi 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
  • Loading branch information
tlvu committed Apr 4, 2022
1 parent f23c383 commit 8e84566
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 8e84566

Please sign in to comment.