Skip to content

Commit 3aabc79

Browse files
authored
Drop index/ prefix when uploading crate metadata. (#4826)
The metadata is already uploaded into a dedicated bucket, so the additional index/ prefix is unnecessary.
1 parent 46b8d40 commit 3aabc79

33 files changed

+54
-45
lines changed

src/tests/http-data/krate_publish_features_version_2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/foo",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/foo",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_good_badges

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/ob/foobadger",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/ob/foobadger",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_good_categories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_good_cat",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_good_cat",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_ignored_badges

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_ignored_badge",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_ignored_badge",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_ignored_categories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_ignored_cat",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_ignored_cat",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_crate_allow_empty_alternative_registry_dependency

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"request": {
38-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/foo",
38+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/foo",
3939
"method": "PUT",
4040
"headers": [
4141
[

src/tests/http-data/krate_publish_new_krate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_new",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_new",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_git_upload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fgt",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fgt",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_git_upload_appends

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fpp",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fpp",
139139
"method": "PUT",
140140
"headers": [
141141
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fpp",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fpp",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/krate_publish_new_krate_git_upload_with_conflicts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_conflicts",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_conflicts",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_records_verified_email

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_verified_email",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_verified_email",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_too_big_but_whitelisted

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_whitelist",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_whitelist",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_twice

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_twice",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_twice",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_weird_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_weird",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_weird",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_with_dependency

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ne/w_/new_dep",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/ne/w_/new_dep",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_krate_with_readme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_readme",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_readme",
139139
"method": "PUT",
140140
"headers": [
141141
[

src/tests/http-data/krate_publish_new_krate_with_token

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_new",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_new",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_with_renamed_dependency

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ne/w-/new-krate",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/ne/w-/new-krate",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_new_with_underscore_renamed_dependency

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ne/w-/new-krate",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/ne/w-/new-krate",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_publish_after_removing_documentation

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/do/cs/docscrate",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/do/cs/docscrate",
139139
"method": "PUT",
140140
"headers": [
141141
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/do/cs/docscrate",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/do/cs/docscrate",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/krate_publish_publish_new_crate_rate_limited

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited1",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited1",
7272
"method": "PUT",
7373
"headers": [
7474
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited2",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited2",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/krate_publish_publish_rate_limit_doesnt_affect_existing_crates

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited1",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited1",
139139
"method": "PUT",
140140
"headers": [
141141
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited1",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited1",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/krate_publish_publish_records_an_audit_action

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_publish_uploading_new_version_touches_crate

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_versions_updated_at",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_versions_updated_at",
139139
"method": "PUT",
140140
"headers": [
141141
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_versions_updated_at",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_versions_updated_at",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/krate_yanking_publish_after_yank_max_version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
7272
"method": "PUT",
7373
"headers": [
7474
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/krate_yanking_unyank_records_an_audit_action

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_yanking_yank_max_version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
139139
"method": "PUT",
140140
"headers": [
141141
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/krate_yanking_yank_records_an_audit_action

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/krate_yanking_yank_works_as_intended

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"request": {
71-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
71+
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
7272
"method": "PUT",
7373
"headers": [
7474
[

src/tests/http-data/owners_new_crate_owner

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_owner",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_owner",
139139
"method": "PUT",
140140
"headers": [
141141
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_owner",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_owner",
206206
"method": "PUT",
207207
"headers": [
208208
[

src/tests/http-data/team_publish_owned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@
580580
},
581581
{
582582
"request": {
583-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_team_owned",
583+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_team_owned",
584584
"method": "PUT",
585585
"headers": [
586586
[

src/tests/http-data/version_version_size

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"request": {
138-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_version_size",
138+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_version_size",
139139
"method": "PUT",
140140
"headers": [
141141
[
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"request": {
205-
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_version_size",
205+
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_version_size",
206206
"method": "PUT",
207207
"headers": [
208208
[

0 commit comments

Comments
 (0)