Repository: aurora Updated Branches: refs/heads/master 8e8e83036 -> 2df250e3e
Fix broken end-to-end tests TContentAwareServlet constrains the supported Content-Type headers, resulting in test_kerberos_end_to_end.sh failing with the error `Unsupported Content-Type: application/x-www-form-urlencoded`, which is the Content-Type header curl chooses when the --data-binary argument is passed Reviewed at https://reviews.apache.org/r/62857/ Project: http://git-wip-us.apache.org/repos/asf/aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/2df250e3 Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/2df250e3 Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/2df250e3 Branch: refs/heads/master Commit: 2df250e3e316c93fa70749ccaf9673a09d56c3f9 Parents: 8e8e830 Author: Bill Farner <[email protected]> Authored: Tue Oct 10 09:59:49 2017 -0700 Committer: Bill Farner <[email protected]> Committed: Tue Oct 10 09:59:49 2017 -0700 ---------------------------------------------------------------------- src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aurora/blob/2df250e3/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh ---------------------------------------------------------------------- diff --git a/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh b/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh index ecb3d3f..2a7a66d 100755 --- a/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh +++ b/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh @@ -58,6 +58,7 @@ function snapshot_as { curl -u : --negotiate -w '%{http_code}\n' \ -o $(printf $SNAPSHOT_RESPONSE_OUTFILE $principal) \ -v "http://$SCHEDULER_HOSTNAME:8081/api" \ + -H "Content-Type:application/vnd.apache.thrift.json" \ --data-binary "$SNAPSHOT_RPC_DATA" kdestroy }
