Skip to content

Commit

Permalink
Merge #1394
Browse files Browse the repository at this point in the history
1394: Update tests to use hyper 0.12 r=sgrif

This PR updates the HTTP recording test infrastructure to use hyper 0.12.  The goal is to update hyper in the tests now to minimize any version changes when eventually moving production over to hyper (see companion PR #1378).  While we don't *have* to use the same version of hyper in production and our tests, having different versions would regress compile times.

Ignoring the crate additions/removals (as production code obviously don't depend on them), the only overlap I see with production is updating `libc` from 0.2.33 to 0.2.40.  As far as I can tell, the following changes do not affect production, even transitively (and if they do, are minimal):

* `net2` - 0.2.31 to 0.2.32
* `bytes` - 0.4.5 to 0.4.7
* `futures` - 0.1.17 to 0.1.21
* `tokio-core` - 0.1.12 to 0.1.17
* `tokio-io` - 0.1.3 to 0.1.6

It was necessary to lowercase the request header names in the recordings under `http-data` because the hyper client sending the request no longer uses title-case.

[source]: https://twitter.com/seanmonstar/status/992156132411035648
  • Loading branch information
bors-voyager[bot] committed Jun 6, 2018
2 parents 918eb5f + 459cf01 commit c8a6b5f
Show file tree
Hide file tree
Showing 34 changed files with 450 additions and 267 deletions.
504 changes: 339 additions & 165 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ civet = "0.9"

[dev-dependencies]
conduit-test = "0.8"
hyper = "0.11"
hyper-tls = "0.1"
hyper = "0.12"
hyper-tls = "0.2"
futures = "0.1"
tokio-core = "0.1"
tokio-service = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_good_badges
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foobadger/foobadger-1.0.0.crate","method":"PUT","headers":[["Accept","*/*"],["Proxy-Connection","Keep-Alive"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:kDm23yhf8YuOKpTcbHhNBa6BtQw="],["Content-Length","35"],["Content-Type","application/x-tar"],["Date","Fri, 15 Sep 2017 07:53:05 -0700"],["Host","alexcrichton-test.s3.amazonaws.com"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["x-amz-id-2","0/6/0sEHhOcZrrbuV7bwaKRjkpt9tRXEElKebeZNRK8DoEfSdnTFO/gfr0Zj86ZR726bMeuwuv4="],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["Content-Length","0"],["x-amz-request-id","042143F2421CB177"]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foobadger/foobadger-1.0.0.crate","method":"PUT","headers":[["accept","*/*"],["proxy-connection","Keep-Alive"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:kDm23yhf8YuOKpTcbHhNBa6BtQw="],["content-length","35"],["content-type","application/x-tar"],["date","Fri, 15 Sep 2017 07:53:05 -0700"],["host","alexcrichton-test.s3.amazonaws.com"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["x-amz-id-2","0/6/0sEHhOcZrrbuV7bwaKRjkpt9tRXEElKebeZNRK8DoEfSdnTFO/gfr0Zj86ZR726bMeuwuv4="],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["content-length","0"],["x-amz-request-id","042143F2421CB177"]],"body":[]}}]
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_good_categories
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_good_cat/foo_good_cat-1.0.0.crate","method":"PUT","headers":[["Date","Fri, 15 Sep 2017 07:53:05 -0700"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:Im1mLvCQhM33OHARbpyyZYiZ9jE="],["Proxy-Connection","Keep-Alive"],["Accept","*/*"],["Content-Type","application/x-tar"],["Host","alexcrichton-test.s3.amazonaws.com"],["Content-Length","35"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["x-amz-id-2","YakCRWvFv2xQT/tB0+Z44KnaWWs/LqMmXJXENGujPnNPOlkwbg5T33XRyHbSJtOEBXETKAXdrZI="],["x-amz-request-id","E9C1F36ED4D753C3"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["Content-Length","0"]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_good_cat/foo_good_cat-1.0.0.crate","method":"PUT","headers":[["date","Fri, 15 Sep 2017 07:53:05 -0700"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:Im1mLvCQhM33OHARbpyyZYiZ9jE="],["proxy-connection","Keep-Alive"],["accept","*/*"],["content-type","application/x-tar"],["host","alexcrichton-test.s3.amazonaws.com"],["content-length","35"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["x-amz-id-2","YakCRWvFv2xQT/tB0+Z44KnaWWs/LqMmXJXENGujPnNPOlkwbg5T33XRyHbSJtOEBXETKAXdrZI="],["x-amz-request-id","E9C1F36ED4D753C3"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["content-length","0"]],"body":[]}}]
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_ignored_badges
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_ignored_badge/foo_ignored_badge-1.0.0.crate","method":"PUT","headers":[["Accept","*/*"],["Date","Fri, 15 Sep 2017 07:53:05 -0700"],["Host","alexcrichton-test.s3.amazonaws.com"],["Content-Type","application/x-tar"],["Proxy-Connection","Keep-Alive"],["Content-Length","35"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:d5z7PoInZdjSdMpMeR61v/ZnsRE="]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-request-id","6B48927A9B90CFF0"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-id-2","n8HEiySuglMWYp3qgLANtS8v47tmBJgyFi0i3UdksOWd1aofssPNuRCNr0/j4Ej1sKt91OMoI5w="],["Content-Length","0"]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_ignored_badge/foo_ignored_badge-1.0.0.crate","method":"PUT","headers":[["accept","*/*"],["date","Fri, 15 Sep 2017 07:53:05 -0700"],["host","alexcrichton-test.s3.amazonaws.com"],["content-type","application/x-tar"],["proxy-connection","Keep-Alive"],["content-length","35"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:d5z7PoInZdjSdMpMeR61v/ZnsRE="]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-request-id","6B48927A9B90CFF0"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-id-2","n8HEiySuglMWYp3qgLANtS8v47tmBJgyFi0i3UdksOWd1aofssPNuRCNr0/j4Ej1sKt91OMoI5w="],["content-length","0"]],"body":[]}}]
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_ignored_categories
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_ignored_cat/foo_ignored_cat-1.0.0.crate","method":"PUT","headers":[["Content-Type","application/x-tar"],["Host","alexcrichton-test.s3.amazonaws.com"],["Proxy-Connection","Keep-Alive"],["Accept","*/*"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:V37kbEzeh57sB4yTSZIOJACPoP4="],["Content-Length","35"],["Date","Fri, 15 Sep 2017 07:53:06 -0700"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["x-amz-id-2","m2T+IGVTurpCTLS3pmhcHrpbLGeL0mDQ90vroViQ2v2Sc1/woSi09kpm0BvRl24/0sMonCW7td4="],["Content-Length","0"],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-request-id","6435C4EA7602CE4E"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["Server","AmazonS3"]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_ignored_cat/foo_ignored_cat-1.0.0.crate","method":"PUT","headers":[["content-type","application/x-tar"],["host","alexcrichton-test.s3.amazonaws.com"],["proxy-connection","Keep-Alive"],["accept","*/*"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:V37kbEzeh57sB4yTSZIOJACPoP4="],["content-length","35"],["date","Fri, 15 Sep 2017 07:53:06 -0700"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["x-amz-id-2","m2T+IGVTurpCTLS3pmhcHrpbLGeL0mDQ90vroViQ2v2Sc1/woSi09kpm0BvRl24/0sMonCW7td4="],["content-length","0"],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-request-id","6435C4EA7602CE4E"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["Server","AmazonS3"]],"body":[]}}]
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_new_krate
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_new/foo_new-1.0.0.crate","method":"PUT","headers":[["Date","Fri, 15 Sep 2017 07:53:06 -0700"],["Content-Length","35"],["Content-Type","application/x-tar"],["Proxy-Connection","Keep-Alive"],["Accept","*/*"],["Host","alexcrichton-test.s3.amazonaws.com"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:uDc39eNdF6CcwB+q+JwKsoDLQc4="]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Content-Length","0"],["Server","AmazonS3"],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-id-2","JdIvnNTw53aqXjBIqBLNuN4kxf/w1XWX+xuIiGBDYy7yzOSDuAMtBSrTW4ZWetcCIdqCUHuQ51A="],["x-amz-request-id","26589A5E52F8395C"]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_new/foo_new-1.0.0.crate","method":"PUT","headers":[["date","Fri, 15 Sep 2017 07:53:06 -0700"],["content-length","35"],["content-type","application/x-tar"],["proxy-connection","Keep-Alive"],["accept","*/*"],["host","alexcrichton-test.s3.amazonaws.com"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:uDc39eNdF6CcwB+q+JwKsoDLQc4="]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["content-length","0"],["Server","AmazonS3"],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-id-2","JdIvnNTw53aqXjBIqBLNuN4kxf/w1XWX+xuIiGBDYy7yzOSDuAMtBSrTW4ZWetcCIdqCUHuQ51A="],["x-amz-request-id","26589A5E52F8395C"]],"body":[]}}]
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_new_krate_git_upload
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/fgt/fgt-1.0.0.crate","method":"PUT","headers":[["Proxy-Connection","Keep-Alive"],["Date","Thu, 14 Sep 2017 09:44:05 -0700"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:Hpi3LGRB4W3nXoPoX+A78xTzmIE="],["Accept","*/*"],["Host","alexcrichton-test.s3.amazonaws.com"],["Content-Type","application/x-tar"],["Content-Length","35"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Content-Length","0"],["Server","AmazonS3"],["x-amz-request-id","5D8919DDF187F850"],["Date","Thu, 14 Sep 2017 16:44:06 GMT"],["x-amz-id-2","7N6yjY/oPkOJcDqcf5YSeABzp+hHEiwC67AXfbNqQNQAp0wRwU1c8KtN9Vh7vRshnmD/Hdjs6KY="],["ETag","\"fc9f988c1ba7ccea220952fd61213979\""]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/fgt/fgt-1.0.0.crate","method":"PUT","headers":[["proxy-connection","Keep-Alive"],["date","Thu, 14 Sep 2017 09:44:05 -0700"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:Hpi3LGRB4W3nXoPoX+A78xTzmIE="],["accept","*/*"],["host","alexcrichton-test.s3.amazonaws.com"],["content-type","application/x-tar"],["content-length","35"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["content-length","0"],["Server","AmazonS3"],["x-amz-request-id","5D8919DDF187F850"],["date","Thu, 14 Sep 2017 16:44:06 GMT"],["x-amz-id-2","7N6yjY/oPkOJcDqcf5YSeABzp+hHEiwC67AXfbNqQNQAp0wRwU1c8KtN9Vh7vRshnmD/Hdjs6KY="],["ETag","\"fc9f988c1ba7ccea220952fd61213979\""]],"body":[]}}]
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_new_krate_git_upload_appends
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/FPP/FPP-1.0.0.crate","method":"PUT","headers":[["Content-Type","application/x-tar"],["Host","alexcrichton-test.s3.amazonaws.com"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:UgUqqHJ9cQAZDdbcsxpnC0BI2eE="],["Date","Fri, 15 Sep 2017 07:53:06 -0700"],["Proxy-Connection","Keep-Alive"],["Content-Length","35"],["Accept","*/*"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["x-amz-request-id","949E6183C81895B0"],["Content-Length","0"],["Server","AmazonS3"],["x-amz-id-2","JWMemhtsWvAdoKxFS4Cp2RnI8fOqriCnXdHGFakRPw6k4JALJsToegxrkl9qzNoF9rhPAGKti4w="],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/FPP/FPP-1.0.0.crate","method":"PUT","headers":[["content-type","application/x-tar"],["host","alexcrichton-test.s3.amazonaws.com"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:UgUqqHJ9cQAZDdbcsxpnC0BI2eE="],["date","Fri, 15 Sep 2017 07:53:06 -0700"],["proxy-connection","Keep-Alive"],["content-length","35"],["accept","*/*"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["x-amz-request-id","949E6183C81895B0"],["content-length","0"],["Server","AmazonS3"],["x-amz-id-2","JWMemhtsWvAdoKxFS4Cp2RnI8fOqriCnXdHGFakRPw6k4JALJsToegxrkl9qzNoF9rhPAGKti4w="],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""]],"body":[]}}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_conflicts/foo_conflicts-1.0.0.crate","method":"PUT","headers":[["Content-Type","application/x-tar"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:241ftMxnamoj94RBOB/al86Xwjk="],["Content-Length","35"],["Accept","*/*"],["Host","alexcrichton-test.s3.amazonaws.com"],["Proxy-Connection","Keep-Alive"],["Date","Fri, 15 Sep 2017 07:53:06 -0700"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["Server","AmazonS3"],["x-amz-request-id","97468A1C2B450E47"],["Content-Length","0"],["x-amz-id-2","BvCbtCZAAKOsaLx5dc9Vw+SIlfrPULUTLofQduPAnm3b7079gxn5NlvEjEN+www3UOYZOZa8FWk="]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_conflicts/foo_conflicts-1.0.0.crate","method":"PUT","headers":[["content-type","application/x-tar"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:241ftMxnamoj94RBOB/al86Xwjk="],["content-length","35"],["accept","*/*"],["host","alexcrichton-test.s3.amazonaws.com"],["proxy-connection","Keep-Alive"],["date","Fri, 15 Sep 2017 07:53:06 -0700"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["date","Fri, 15 Sep 2017 14:53:07 GMT"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["Server","AmazonS3"],["x-amz-request-id","97468A1C2B450E47"],["content-length","0"],["x-amz-id-2","BvCbtCZAAKOsaLx5dc9Vw+SIlfrPULUTLofQduPAnm3b7079gxn5NlvEjEN+www3UOYZOZa8FWk="]],"body":[]}}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/new_dep/new_dep-1.0.0.crate","method":"PUT","headers":[["Content-Type","application/x-tar"],["Host","alexcrichton-test.s3.amazonaws.com"],["Authorization","AWS AKIAICL5IWUZYWWKA7JA:lH91IZJxBDr21vB3eSZXwXTQelk="],["Proxy-Connection","Keep-Alive"],["Date","Fri, 15 Sep 2017 07:53:06 -0700"],["Accept","*/*"],["Content-Length","35"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-id-2","PQEXq2S9IgVfG/u0l2cjHuWU8EDPlRSwxqai2oNPCz8TyX/CEwn2ydL+A1qnNK3Ng+FpC9ukVl8="],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-request-id","8190F375F5651D47"],["Content-Length","0"]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/new_dep/new_dep-1.0.0.crate","method":"PUT","headers":[["content-type","application/x-tar"],["host","alexcrichton-test.s3.amazonaws.com"],["authorization","AWS AKIAICL5IWUZYWWKA7JA:lH91IZJxBDr21vB3eSZXwXTQelk="],["proxy-connection","Keep-Alive"],["date","Fri, 15 Sep 2017 07:53:06 -0700"],["accept","*/*"],["content-length","35"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["Server","AmazonS3"],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-id-2","PQEXq2S9IgVfG/u0l2cjHuWU8EDPlRSwxqai2oNPCz8TyX/CEwn2ydL+A1qnNK3Ng+FpC9ukVl8="],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-request-id","8190F375F5651D47"],["content-length","0"]],"body":[]}}]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_whitelist/foo_whitelist-1.1.0.crate","method":"PUT","headers":[["Authorization","AWS AKIAICL5IWUZYWWKA7JA:qt4nSgvxT4p0mzUU9mA+lDtnKdE="],["Proxy-Connection","Keep-Alive"],["Date","Fri, 15 Sep 2017 07:53:06 -0700"],["Accept","*/*"],["Content-Type","application/x-tar"],["Host","alexcrichton-test.s3.amazonaws.com"],["Content-Length","95"]],"body":[31,139,8,0,0,0,0,0,0,255,237,200,61,10,128,48,12,6,208,28,37,23,176,166,10,237,113,164,130,63,1,161,96,35,94,223,193,205,201,169,32,126,111,124,115,206,195,185,170,77,155,22,107,188,243,78,218,81,23,170,65,110,125,236,228,249,33,72,100,170,225,40,150,118,102,250,169,4,0,0,0,159,71,0,0,47,93,157,95,173,158,0,14,0,0]},"response":{"status":200,"headers":[["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-request-id","A154F439BE2F1178"],["Server","AmazonS3"],["ETag","\"9facb520b24bd39bb1ee070422257b83\""],["x-amz-id-2","sJQf1gwHhtO9UupUzVzcH5l1yvS64tKrNFy59yuhFRCrLpSEGAAm/S4LNhUDFCqS2HOsyw0FXBo="],["Content-Length","0"]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_whitelist/foo_whitelist-1.1.0.crate","method":"PUT","headers":[["authorization","AWS AKIAICL5IWUZYWWKA7JA:qt4nSgvxT4p0mzUU9mA+lDtnKdE="],["proxy-connection","Keep-Alive"],["date","Fri, 15 Sep 2017 07:53:06 -0700"],["accept","*/*"],["content-type","application/x-tar"],["host","alexcrichton-test.s3.amazonaws.com"],["content-length","95"]],"body":[31,139,8,0,0,0,0,0,0,255,237,200,61,10,128,48,12,6,208,28,37,23,176,166,10,237,113,164,130,63,1,161,96,35,94,223,193,205,201,169,32,126,111,124,115,206,195,185,170,77,155,22,107,188,243,78,218,81,23,170,65,110,125,236,228,249,33,72,100,170,225,40,150,118,102,250,169,4,0,0,0,159,71,0,0,47,93,157,95,173,158,0,14,0,0]},"response":{"status":200,"headers":[["date","Fri, 15 Sep 2017 14:53:07 GMT"],["x-amz-request-id","A154F439BE2F1178"],["Server","AmazonS3"],["ETag","\"9facb520b24bd39bb1ee070422257b83\""],["x-amz-id-2","sJQf1gwHhtO9UupUzVzcH5l1yvS64tKrNFy59yuhFRCrLpSEGAAm/S4LNhUDFCqS2HOsyw0FXBo="],["content-length","0"]],"body":[]}}]
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_new_krate_twice
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_twice/foo_twice-2.0.0.crate","method":"PUT","headers":[["Authorization","AWS AKIAICL5IWUZYWWKA7JA:3P5wvArAHvV7o8atB0gUc0RTCCc="],["Content-Type","application/x-tar"],["Proxy-Connection","Keep-Alive"],["Host","alexcrichton-test.s3.amazonaws.com"],["Content-Length","35"],["Date","Fri, 15 Sep 2017 07:53:06 -0700"],["Accept","*/*"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["x-amz-request-id","FD643F2FC49A7DF3"],["Date","Fri, 15 Sep 2017 14:53:07 GMT"],["Content-Length","0"],["Server","AmazonS3"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-id-2","9ZLFTsEwh2iNu+BlWzaTZ85mFA7pxZgsGhQCj3Qi67LqT/iB5eiCOJQPYww2BEkoivJbr0mWruo="]],"body":[]}}]
[{"request":{"uri":"http://alexcrichton-test.s3.amazonaws.com/crates/foo_twice/foo_twice-2.0.0.crate","method":"PUT","headers":[["authorization","AWS AKIAICL5IWUZYWWKA7JA:3P5wvArAHvV7o8atB0gUc0RTCCc="],["content-type","application/x-tar"],["proxy-connection","Keep-Alive"],["host","alexcrichton-test.s3.amazonaws.com"],["content-length","35"],["date","Fri, 15 Sep 2017 07:53:06 -0700"],["accept","*/*"]],"body":[31,139,8,0,0,0,0,0,0,255,237,192,1,1,0,0,0,130,32,255,175,110,72,80,192,171,1,46,175,181,239,0,4,0,0]},"response":{"status":200,"headers":[["x-amz-request-id","FD643F2FC49A7DF3"],["date","Fri, 15 Sep 2017 14:53:07 GMT"],["content-length","0"],["Server","AmazonS3"],["ETag","\"f9016ad360cebb4fe2e6e96e5949f022\""],["x-amz-id-2","9ZLFTsEwh2iNu+BlWzaTZ85mFA7pxZgsGhQCj3Qi67LqT/iB5eiCOJQPYww2BEkoivJbr0mWruo="]],"body":[]}}]
Loading

0 comments on commit c8a6b5f

Please sign in to comment.