Intermountain_H_3
15 years agoContributor
Redacting / replacing info in HTTP Log
As part of the service testing, we are doing SAML authentication, which requires supplying login credentials. These credentials are written out to the HTTP log and the Soap Response.
I've been able to redact / replace the login credentials in the response by placing the code below into the SubmitListener.afterSubmit event. How can this be done to the HTTP Log? I've poured through the API doc, and have come up empty. (http://www.soapui.org/apidocs/)
I've been able to redact / replace the login credentials in the response by placing the code below into the SubmitListener.afterSubmit event. How can this be done to the HTTP Log? I've poured through the API doc, and have come up empty. (http://www.soapui.org/apidocs/)
if( submit.response == null )
return
def content = submit.response.responseLog
content = content.replaceAll("username", "*******" )
content = content.replaceAll("password", "*******" )
submit.response.responseContent = content