diff options
author | asteroide <thomas.duval@orange.com> | 2017-06-12 19:02:00 +0200 |
---|---|---|
committer | asteroide <thomas.duval@orange.com> | 2017-06-12 19:02:00 +0200 |
commit | 1ea79abfaae15fd709575f49154071d5f6cfa57d (patch) | |
tree | 10371c3e1f664afe025211fdf9dae2009fbc51ca | |
parent | bcdb69dff50307d4be869b1af78b830d012e298c (diff) |
Add new elements in json files
Change-Id: I0a70d3484250dfffaf71b036ab47b97d5e0b76cd
-rw-r--r-- | moonv4/moon_interface/tests/apitests/set_authz.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/moonv4/moon_interface/tests/apitests/set_authz.py b/moonv4/moon_interface/tests/apitests/set_authz.py index c2d0adcf..9ac13142 100644 --- a/moonv4/moon_interface/tests/apitests/set_authz.py +++ b/moonv4/moon_interface/tests/apitests/set_authz.py @@ -109,7 +109,7 @@ class AsyncGet(threading.Thread): logger.debug(r.status_code) logger.debug(r.text) if r.status_code == 200: - logger.warning("error code 200 for {}".format(self.url)) + # logger.warning("error code 200 for {}".format(self.url)) logger.info("\033[1m{}\033[m {}".format(self.url, r.status_code)) try: j = r.json() @@ -118,8 +118,10 @@ class AsyncGet(threading.Thread): else: if j.get("authz"): logger.info("\t\033[32m{}\033[m {}".format(j.get("authz"), j.get("error", ""))) + current_request['result'] = "Grant" else: logger.info("\t\033[31m{}\033[m {}".format(j.get("authz"), j.get("error", ""))) + current_request['result'] = "Deny" self.result = current_request # self.sema.release() |