usnistgov / asbestos

13 stars 4 forks source link

FHIR Toolkit test setup errors when using relative URLs in Document Recipient's ITI-65 responses #226

Closed skbhaskarla closed 5 months ago

skbhaskarla commented 7 months ago

Negative tests fail when the Document Recipient uses relative URLs for its ITI-65 responses' location fields.

Original issue submitter reference: https://groups.google.com/g/ihe-mhd-implementors/c/5tWoqA4akNM

Temporary fix: your_external_cache_directory\FhirTestCollections\Library\DocumentResponderBaseAddress.xml

Source code reference: https://github.com/usnistgov/asbestos/blob/523a163f5941091f503f450a1ed6bb77d530eb3a/asbestos-war/src/main/webapp/data/TestCollections/Library/DocumentResponderBaseAddress.xml#L91

The following two assertions should be removed or commented out. Remove or comment Line 91 to Line 110:

    <action>
            <assert>
                <description value="Verify resource location value has an indexOf 'DocumentReference' is greater than -1."/>
                <expression value="${indexOfdocRefInLocation}"/>
                <operator value="greaterThan"/>
                <value value="-1" />
                <sourceId value="pdb-response"/>
                <warningOnly value="false"/>
            </assert>
        </action>
        <action>
            <assert>
                <description value="Verify Document Responder base address length is greater than zero."/>
                <expression value="${docRespBaseAddress}.length()"/>
                <operator value="greaterThan"/>
                <value value="0" />
                <sourceId value="pdb-response"/>
                <warningOnly value="false"/>
            </assert>
        </action>

Please restart Toolkit after updating the TestScript file.