From 1ea79abfaae15fd709575f49154071d5f6cfa57d Mon Sep 17 00:00:00 2001 From: asteroide Date: Mon, 12 Jun 2017 19:02:00 +0200 Subject: Add new elements in json files Change-Id: I0a70d3484250dfffaf71b036ab47b97d5e0b76cd --- moonv4/moon_interface/tests/apitests/set_authz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit 1.2.3-korg