diff --git a/md-query.robot b/md-query.robot index 64f73c3..6b68c3c 100644 --- a/md-query.robot +++ b/md-query.robot @@ -10,14 +10,15 @@ Variables variables.py 2.2.1 HTTP Version (Required) # Using curl because the Requests library doesn't let us specify HTTP version - ${Curl} Run Process /usr/bin/curl --http1.0 -i ${BASE_URL}/entities/${ENTITY_ID_ENCODED} |head -n 1 shell=true - Should Contain ${Curl.stdout} 505 msg=MUST NOT support HTTP versions prior to 1.1 - ${Curl} Run Process /usr/bin/curl --http1.1 -i ${BASE_URL}/entities/${ENTITY_ID_ENCODED} |head -n 1 shell=true Should Contain ${Curl.stdout} 200 OK msg=MUST support HTTP version 1.1 2.2.2 HTTP Version (Optional) [Tags] optional + + ${Curl} Run Process /usr/bin/curl --http1.0 -i ${BASE_URL}/entities/${ENTITY_ID_ENCODED} |head -n 1 shell=true + Should Contain ${Curl.stdout} 505 msg=MUST NOT support HTTP versions prior to 1.1 + ${Curl} Run Process /usr/bin/curl --http2 -i ${BASE_URL}/entities/${ENTITY_ID_ENCODED} |head -n 1 shell=true Should Contain ${Curl.stdout} 200 OK msg=MAY support HTTP versions later than 1.1