Test env documentation and new features
First part of README updated
Added panic stop of test case with retrieving logs
Added test result file of scripting support
Change-Id: I283dbf2013eaba2006391cde3c9cb2acd0a0239f
Issue-ID: NONRTRIC-154
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
diff --git a/test/common/delete_policies_process.py b/test/common/delete_policies_process.py
index be15e92..fe87919 100644
--- a/test/common/delete_policies_process.py
+++ b/test/common/delete_policies_process.py
@@ -23,6 +23,7 @@
import json
import sys
import requests
+import traceback
# disable warning about unverified https requests
from requests.packages import urllib3
@@ -51,7 +52,10 @@
try:
resp=requests.delete(url, verify=False, timeout=90)
except Exception as e1:
- print("1Delete failed for id:"+str(i)+ ", "+str(e1))
+ print("1Delete failed for id:"+str(i)+ ", "+str(e1) + " "+traceback.format_exc())
+ sys.exit()
+ if (resp.status_code == None):
+ print("1Delete failed for id:"+str(i)+ ", expected response code: "+responsecode+", got: None")
sys.exit()
if (resp.status_code != responsecode):
print("1Delete failed for id:"+str(i)+ ", expected response code: "+responsecode+", got: "+str(resp.status_code))