# The format of the POST request is mostly dependent on curl, and could possibly
# change with newer or older curl versions, or by configuration. curl 7.39.0
# makes POST requests like this on FreeBSD 10 and Ubuntu 14.04. If you find
# The format of the POST request is mostly dependent on curl, and could possibly
# change with newer or older curl versions, or by configuration. curl 7.39.0
# makes POST requests like this on FreeBSD 10 and Ubuntu 14.04. If you find
-# this failing, you'll need to make this a smarter comparison.
+# this failing, you'll need to make this a smarter comparison. Note that it is
+# sorted, so that it doesn't depend on the JSON being in a specific order.
POST /oauth/token HTTP/1.1
User-Agent: nmh/${MH_VERSION} ${CURL_USER_AGENT}
Host: 127.0.0.1:${http_port}
POST /oauth/token HTTP/1.1
User-Agent: nmh/${MH_VERSION} ${CURL_USER_AGENT}
Host: 127.0.0.1:${http_port}
- check "${testname}.http-req" "${testname}.expected-http-req"
+ sort -o "${testname}.http-req.sorted" "${testname}.http-req"
+ rm "${testname}.http-req"
+ check "${testname}.http-req.sorted" "${testname}.expected-http-req"
- check "${testname}.http-req" "${testname}.expected-http-req"
+ sort -o "${testname}.http-req.sorted" "${testname}.http-req"
+ rm "${testname}.http-req"
+ check "${testname}.http-req.sorted" "${testname}.expected-http-req"