diff options
author | 2020-02-27 11:41:51 -0800 | |
---|---|---|
committer | 2020-02-27 11:41:51 -0800 | |
commit | d4cae4d8115445c4662ab9a1b71cccd8f3ddde20 (patch) | |
tree | f48c84864480553629dd840fa459fc1f0e4b1a64 /src/test/resources/http-cache/third_party_proxy.py | |
parent | 58135b810746267b300fbd5b1483e9920166c221 (diff) |
Change emulator policy response
Return the right policy response for each policy model requested by Clamp
Issue-ID: CLAMP-653
Change-Id: I68524bd3d5bfbf5ca6a4acf6c59823df06fd4cd9
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/test/resources/http-cache/third_party_proxy.py')
-rwxr-xr-x | src/test/resources/http-cache/third_party_proxy.py | 2 |
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 79e152ebb..97a2a1a18 100755 --- a/src/test/resources/http-cache/third_party_proxy.py +++ b/src/test/resources/http-cache/third_party_proxy.py @@ -237,7 +237,7 @@ class Proxy(SimpleHTTPServer.SimpleHTTPRequestHandler): with open(cached_file_content, 'w+') as f: f.write(self.data_string) return True - elif (self.path.startswith("/policy/api/v1/policytypes/") or self.path.startswith("/policy/pap/v1/policies/deployed/")) and http_type == "GET": + elif (self.path.startswith("/policy/pap/v1/policies/deployed/")) and http_type == "GET": print "self.path start with /policy/api/v1/policytypes/, generating response json..." jsonGenerated = "{\"policyTypeId\": \"onap.policies.controlloop.operational\",\"policyTypeVersion\": \"1.0.0\",\"policyId\": \"OPERATIONAL_z711F_v1_0_ResourceInstanceName1_tca\"}" print "jsonGenerated: " + jsonGenerated |