aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/http-cache/third_party_proxy.py
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2018-12-20 09:42:53 +0100
committersebdet <sebastien.determe@intl.att.com>2018-12-20 09:42:53 +0100
commitda1d57b1870726437149949d1228848ac37da165 (patch)
treefa85cf04674ec16aa5b5144d1cbc8672fb9b0f4f /src/test/resources/http-cache/third_party_proxy.py
parent5ece487f3896affa9aa9d9860e843585b7609cd6 (diff)
Add tests
Add tests to Tosca code to increase coverage Issue-ID: CLAMP-252 Change-Id: Ie18cb94444e7e47b6dfb3e8271a0db238cfeeb1b Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/test/resources/http-cache/third_party_proxy.py')
-rwxr-xr-xsrc/test/resources/http-cache/third_party_proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/resources/http-cache/third_party_proxy.py b/src/test/resources/http-cache/third_party_proxy.py
index de40ca90..30f51075 100755
--- a/src/test/resources/http-cache/third_party_proxy.py
+++ b/src/test/resources/http-cache/third_party_proxy.py
@@ -171,7 +171,7 @@ class Proxy(SimpleHTTPServer.SimpleHTTPRequestHandler):
with open(cached_file_content, 'w') as f:
f.write(jsonGenerated)
return True
- elif self.path.startswith("/pdp/api/") and http_type == "PUT" or http_type == "DELETE":
+ elif (self.path.startswith("/pdp/api/") and http_type == "PUT" or http_type == "DELETE") or (self.path.startswith("/pdp/api/policyEngineImport") and http_type == "POST"):
print "self.path start with /pdp/api/, copying body to response ..."
if not os.path.exists(cached_file_folder):
os.makedirs(cached_file_folder, 0777)