simonjdonnelly
6 years agoContributor
Swagger Compliance Assertion - Is it possible to use a relative swagger url path?
Is it possible to provide a relative path as the URL for a Swagger Compliance Assertion? I know it is possible when using the Schema Compliance assertion for SOAP requests. I've tried various combinations (for example: using ${projectDir} etc.) but with no luck thus far...
Swagger Example:
<con:assertion type="SwaggerComplianceAssertion" id="678ae158-9e15-418d-b145-65aa7a32bc5e" name="Swagger Compliance Assertion"> <con:configuration> <swaggerUrl>C:\ABC\API\metrics\metrics-v1\swagger\Test.swagger.json</swaggerUrl> <strictMode>true</strictMode> </con:configuration> </con:assertion>
WSDL Example:
<con:assertion type="Schema Compliance" id="710c1657-1fa0-491a-98b9-c8e4d66169c3" name="Schema Compliance"> <con:configuration> <definition>../mds/apps/services/Testing/App/Proxy/Trial_Business_v1.wsdl</definition> </con:configuration> </con:assertion>
If anyone has had any success with this, please let me know.
Thanks!