Rework the SDC cache
Rework the SDC cache used during the integration tests as it was not
working on windows
Issue-ID: CLAMP-85
Change-Id: I56f19e7dc5e817a21714c4a19609c1de8e76e8dc
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
diff --git a/src/test/resources/http-cache/sdc_proxy.py b/src/test/resources/http-cache/sdc_proxy.py
old mode 100644
new mode 100755
index 301e7af..45dac41
--- a/src/test/resources/http-cache/sdc_proxy.py
+++ b/src/test/resources/http-cache/sdc_proxy.py
@@ -91,6 +91,9 @@
self.check_credentials()
cached_file = '%s/%s' % (CACHE_ROOT, self.path,)
+ print("Cached file name before escaping : %s" % cached_file)
+ cached_file = cached_file.replace('<','<').replace('>','>').replace('?','?').replace('*','*').replace('\\','*').replace(':',':').replace('|','|')
+ print("Cached file name after escaping (used for cache storage) : %s" % cached_file)
cached_file_content = "%s/.file" % (cached_file,)
cached_file_header = "%s/.header" % (cached_file,)
@@ -100,7 +103,7 @@
return "404 Not found"
if not _file_available:
- print("Request for not cached file : %s" % (cached_file,))
+ print("SDC Request for data currently not present in cache: %s" % (cached_file,))
url = '%s%s' % (SDC_HOST, self.path)
response = requests.get(url, auth=SDC_AUTH, headers=SDC_HEADERS, stream=True)