Skip to content

Commit 44f5880

Browse files
authored
tests/krate/publish: Add missing description and license fields to generated Cargo.toml files (#7192)
Without this the server is not supposed to accept any publish requests. Once we switch from reading the values from the metadata JSON blob to using the embedded `Cargo.toml` file, these tests would start to fail.
1 parent 3c45ff5 commit 44f5880

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/tests/krate/publish/manifest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ fn boolean_readme() {
1313
r#"[package]
1414
name = "foo"
1515
version = "1.0.0"
16+
description = "description"
17+
license = "MIT"
1618
rust-version = "1.69"
1719
readme = false"#,
1820
));

src/tests/krate/publish/max_size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn tarball_between_default_axum_limit_and_max_upload_size() {
2020
let tarball = {
2121
let mut builder = TarballBuilder::new();
2222

23-
let data = b"[package]\nname = \"foo\"\nversion = \"1.1.0\"\n" as &[_];
23+
let data = b"[package]\nname = \"foo\"\nversion = \"1.1.0\"\ndescription = \"description\"\nlicense = \"MIT\"\n" as &[_];
2424

2525
let mut header = tar::Header::new_gnu();
2626
assert_ok!(header.set_path("foo-1.1.0/Cargo.toml"));

0 commit comments

Comments
 (0)