From bac8317c6db52d1a5f08755cd137d1ab24db47c1 Mon Sep 17 00:00:00 2001 From: mazano Date: Sat, 21 Oct 2023 07:37:43 +0200 Subject: [PATCH] add chown in script --- scenario_tests/stores/tests/test_gdal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()