diff --git a/scenario_tests/stores/tests/test_gdal.py b/scenario_tests/stores/tests/test_gdal.py index 74829bbc..352674e7 100644 --- a/scenario_tests/stores/tests/test_gdal.py +++ b/scenario_tests/stores/tests/test_gdal.py @@ -1,10 +1,11 @@ import unittest -from os import environ +from os import environ, chown from subprocess import check_call from requests import get, post, exceptions from requests.auth import HTTPBasicAuth from geo.Geoserver import Geoserver + class TestGeoServerGDAL(unittest.TestCase): def setUp(self): @@ -21,6 +22,7 @@ def test_publish_gdal_store(self): built_vrt = f'gdalbuildvrt {self.geo_data_dir}/sfdem.vrt {self.geo_data_dir}/sfdem.tif' check_call(built_vrt, shell=True) vrt_path = f'{self.geo_data_dir}/sfdem.vrt' + chown(vrt_path, 1000, 1000) geo = Geoserver(self.gs_url, username=self.geo_username, password=self.geo_password) @@ -58,5 +60,6 @@ def test_publish_gdal_store(self): response = get(data_store_url, auth=auth) self.assertEqual(response.status_code, 200) + if __name__ == '__main__': unittest.main()