From 814ded6ae91c0f20433243a399cef51a17e05a13 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Sat, 4 Mar 2023 09:11:37 +0800 Subject: [PATCH] Check publish_to_alt_registry publish content --- tests/testsuite/alt_registry.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/testsuite/alt_registry.rs b/tests/testsuite/alt_registry.rs index d9bbf47d29d..f5195a7b8b6 100644 --- a/tests/testsuite/alt_registry.rs +++ b/tests/testsuite/alt_registry.rs @@ -461,6 +461,32 @@ fn publish_to_alt_registry() { ", ) .run(); + + validate_alt_upload( + r#"{ + "authors": [], + "badges": {}, + "categories": [], + "deps": [], + "description": null, + "documentation": null, + "features": {}, + "homepage": null, + "keywords": [], + "license": null, + "license_file": null, + "links": null, + "name": "foo", + "readme": null, + "readme_file": null, + "repository": null, + "homepage": null, + "documentation": null, + "vers": "0.0.1" + }"#, + "foo-0.0.1.crate", + &["Cargo.lock", "Cargo.toml", "Cargo.toml.orig", "src/main.rs"], + ); } #[cargo_test]