Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakudyaA committed Oct 21, 2023
1 parent bac8317 commit 6a6a005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion scenario_tests/stores/docker-compose-gdal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ services:
environment:
GEOSERVER_ADMIN_PASSWORD: myawesomegeoserver
GEOSERVER_ADMIN_USER: admin
SAMPLE_DATA: TRUE
TEST_CLASS: test_gdal.TestGeoServerGDAL
ports:
- "8080"
Expand Down
8 changes: 5 additions & 3 deletions scenario_tests/stores/tests/test_gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ def test_publish_gdal_store(self):
curl_command = f'curl -u {self.geo_username}:{self.geo_password} -v -XPUT -H "Content-type: text/plain" -d "file:{vrt_path}" {vrt_upload_url}'
check_call(curl_command, shell=True)

# Check that the data store exists
data_store_url = f'{self.gs_url}/rest/workspaces/{self.geo_workspace_name}/datastores/{self.store_name}.json'
response = get(data_store_url, auth=auth)
# Check that the published layer exists
layer_source_url = f'{self.gs_url}/{self.geo_workspace_name}/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=true&STYLES&LAYERS={self.geo_workspace_name}:{self.store_name}&exceptions=application/vnd.ogc.se_inimage&SRS=EPSG:26713&WIDTH=768&HEIGHT=578&BBOX=594739.7048312925,4919224.415741393,602069.4450795503,4924731.264860202'
response = get(layer_source_url)

# Check that the response has a status code of 200 (OK)
self.assertEqual(response.status_code, 200)


Expand Down

0 comments on commit 6a6a005

Please sign in to comment.