Skip to content

Commit

Permalink
add chown in script
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakudyaA committed Oct 21, 2023
1 parent a7314b4 commit bac8317
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scenario_tests/stores/tests/test_gdal.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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)

Expand Down Expand Up @@ -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()

0 comments on commit bac8317

Please sign in to comment.