From c94738210a676d302f77008e5e332295fc293f73 Mon Sep 17 00:00:00 2001 From: David Shafer Date: Sun, 10 Feb 2019 16:44:37 -0600 Subject: [PATCH] Make pre-1.1 http check optional --- md-query.robot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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