Skip to content
Permalink
Browse files

Make pre-1.1 http check optional

  • Loading branch information
dshafer committed Feb 10, 2019
1 parent bb06f3c commit c94738210a676d302f77008e5e332295fc293f73
Showing with 4 additions and 3 deletions.
  1. +4 −3 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

0 comments on commit c947382

Please sign in to comment.
You can’t perform that action at this time.