-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redirect old source page URLs to sourcegraph
- Loading branch information
Showing
7 changed files
with
17 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -333,7 +333,7 @@ mod tests { | |
let body = String::from_utf8(resp.bytes().unwrap().to_vec()).unwrap(); | ||
assert!(body.contains("<a href=\"/crate/aquarelle/latest/features\"")); | ||
assert!(body.contains("<a href=\"/crate/aquarelle/latest/builds\"")); | ||
assert!(body.contains("<a href=\"/crate/aquarelle/latest/source/\"")); | ||
assert!(body.contains("<a href=\"https://sourcegraph.com/crates/[email protected]\"")); | ||
assert!(body.contains("<a href=\"/crate/aquarelle/latest\"")); | ||
|
||
let resp_json = env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1050,7 +1050,7 @@ mod tests { | |
let body = String::from_utf8(resp.bytes().unwrap().to_vec()).unwrap(); | ||
assert!(body.contains("<a href=\"/crate/dummy/latest/features\"")); | ||
assert!(body.contains("<a href=\"/crate/dummy/latest/builds\"")); | ||
assert!(body.contains("<a href=\"/crate/dummy/latest/source/\"")); | ||
assert!(body.contains("<a href=\"https://sourcegraph.com/crates/[email protected]\"")); | ||
assert!(body.contains("<a href=\"/crate/dummy/latest\"")); | ||
|
||
assert_redirect("/crate/dummy/latest/", "/crate/dummy/latest", web)?; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,7 +310,7 @@ mod tests { | |
assert!(resp.url().as_str().ends_with("/crate/foo/latest/features")); | ||
let body = String::from_utf8(resp.bytes().unwrap().to_vec()).unwrap(); | ||
assert!(body.contains("<a href=\"/crate/foo/latest/builds\"")); | ||
assert!(body.contains("<a href=\"/crate/foo/latest/source/\"")); | ||
assert!(body.contains("<a href=\"https://sourcegraph.com/crates/[email protected]\"")); | ||
assert!(body.contains("<a href=\"/crate/foo/latest\"")); | ||
Ok(()) | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.