cargo/tests/testsuite
bors 902bb0c2fc Auto merge of #11111 - Muscraft:http-publish-not-noop, r=ehuss
Http publish not noop

Currently the `cargo-test-support` `HttpServer` is noop on publish. This was causing issues with #11062 as there is [not function registry to pull from](https://github.com/rust-lang/cargo/pull/11062#issuecomment-1241220565). [A suggested fix](https://github.com/rust-lang/cargo/pull/11062#issuecomment-1241349110) to this was to have the test `HttpServer` act like a real registry and write to the filesystem. This would allow for tests to be run over the HTTP API and not fail since there was nothing to pull from.

This PR implements that suggestion by adding a body field to `Request`, and when hitting the publish endpoint it will try and write the `.crate` and manifest information to the filesystem.
2022-09-23 00:08:26 +00:00
..
cargo_add make unknown features on cargo add more discoverable 2022-09-21 08:07:16 +02:00
init Fix formats_source test requiring rustfmt. 2022-08-01 21:07:19 -07:00
mock-std Revert "Check if rust-src contains a vendor dir, and patch it in" 2020-12-11 07:45:27 -08:00
advanced_env.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
alt_registry.rs Improve testing framework for http registries 2022-06-10 16:51:35 -05:00
artifact_dep.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
bad_config.rs Dont swallow errors when checking existence of a config key 2022-09-22 10:52:39 +01:00
bad_manifest_path.rs track_caller on custom assert functions 2021-03-03 17:17:07 +00:00
bench.rs Rework test error handling 2022-08-27 19:23:30 -07:00
binary_name.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
build.rs test: renamed uplifted artifact remains unmodified after rebuild 2022-09-21 16:02:42 +01:00
build_plan.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
build_script.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
build_script_env.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
build_script_extra_link_arg.rs remove .masquerade_as_nightly_cargo() from build_script_extra_link_arg.rs 2022-07-14 15:05:33 -05:00
cache_messages.rs Deduplicate compiler diagnostics. 2021-07-09 16:20:46 -07:00
cargo_alias_config.rs Dont swallow errors when checking existence of a config key 2022-09-22 10:52:39 +01:00
cargo_command.rs Do not add home bin path to PATH if it's already there 2022-09-08 09:37:41 -07:00
cargo_config.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
cargo_env_config.rs remove unneeded nightly flags from various tests 2022-07-14 19:55:44 -05:00
cargo_features.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
cargo_targets.rs Warn if an "all" target is specified, but we don't match anything 2021-06-09 19:29:24 +02:00
cfg.rs Fix issue with filtering exclusive target dependencies. 2021-03-11 11:41:00 -08:00
check.rs Make the empty rustc-wrapper test more explicit. 2022-07-24 13:10:35 -07:00
check_cfg.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
clean.rs Use is_symlink() method 2022-01-14 00:36:24 +03:00
collisions.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
concurrent.rs Re-enable killing_cargo_releases_the_lock on windows. 2022-08-02 12:30:42 -07:00
config.rs Dont swallow errors when checking existence of a config key 2022-09-22 10:52:39 +01:00
config_cli.rs Stabilize --config 2022-06-17 22:46:04 +00:00
config_include.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
corrupt_git.rs Move paths to cargo-util. 2021-03-20 17:42:41 -07:00
credential_process.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
cross_compile.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
cross_publish.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
custom_target.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
death.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
dep_info.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
directory.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
doc.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
edition.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
error.rs Rework internal errors. 2020-02-17 19:03:57 -08:00
features.rs add preloading for workspace packages in resolve_with_previous so manifests aren't parsed twice 2022-06-16 15:34:22 -05:00
features2.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
features_namespaced.rs Only override published resolver when the workspace is different 2022-08-10 09:26:50 +02:00
fetch.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
fix.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
freshness.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
future_incompat_report.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
generate_lockfile.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
git.rs Add support for relative git submodule paths 2022-09-21 13:08:41 +02:00
git_auth.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
git_gc.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
glob_targets.rs fix typos found by the typos-cli crate 2022-05-10 16:47:28 -05:00
help.rs fix panic if an alias is defined to "" 2021-12-12 13:30:31 -07:00
inheritable_workspace_fields.rs Only override published resolver when the workspace is different 2022-08-10 09:26:50 +02:00
install.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
install_upgrade.rs fix(yank): Use '--version' like install 2022-04-19 16:45:13 -05:00
jobserver.rs Auto merge of #10511 - weihanglo:issue-10477, r=ehuss 2022-09-02 14:29:28 +00:00
list_availables.rs test: list availables for clean,tree,update 2020-10-28 02:46:20 +08:00
local_registry.rs Restore proper error for crate not in local reg 2022-05-20 18:24:26 +00:00
locate_project.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
lockfile_compat.rs add a test 2022-03-03 18:49:52 +00:00
login.rs Improve testing framework for http registries 2022-06-10 16:51:35 -05:00
logout.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
lto.rs Merge branch 'master' into yerke/no-run-test-executable-path 2022-01-30 23:13:35 -08:00
main.rs Move check cfg tests to their own module 2022-05-06 22:42:28 +02:00
member_discovery.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
member_errors.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
message_format.rs Bump to 0.54.0 2021-03-26 12:28:47 -07:00
messages.rs add short path name for executables 2022-01-31 10:37:02 -08:00
metabuild.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
metadata.rs Add metadata test for invalid publish field 2022-09-20 09:34:58 -04:00
minimal_versions.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
multitarget.rs Update tests to reflect -Zmultitarget stabilization 2022-07-17 11:02:01 +01:00
net_config.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
new.rs Update non-ASCII crate name warning message 2022-08-23 14:23:59 -05:00
offline.rs Add offline_and_locked_and_no_frozen test 2022-03-27 11:13:24 +08:00
old_cargos.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
out_dir.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
owner.rs Minor update to registry API error messages. 2021-02-27 12:38:17 -08:00
package.rs test: ignore broken but excluded file during traversing 2022-08-20 00:56:43 +01:00
package_features.rs remove unneeded nightly flags from various tests 2022-07-14 19:55:44 -05:00
patch.rs Grammar fixup unused patch message 2022-08-03 02:22:50 +01:00
path.rs Emit warning upon encountering ambiguous deps 2022-05-28 03:32:04 +00:00
paths.rs Replace deprecated [replace] references with [patch] 2021-06-02 12:30:56 +02:00
pkgid.rs fix some typos 2022-05-08 01:07:28 +08:00
plugins.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
proc_macro.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
profile_config.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
profile_custom.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
profile_overrides.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
profile_targets.rs fix typos found by the typos-cli crate 2022-05-10 16:47:28 -05:00
profiles.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
progress.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
pub_priv.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
publish.rs cargo-test-support: Make publish http api write to file system 2022-09-22 10:00:49 -06:00
publish_lockfile.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
read_manifest.rs Add rust_metadata to SerializedPackage 2021-10-12 14:07:19 +02:00
registry.rs Run reach_max_unpack_size test only on debug build 2022-09-15 19:02:26 +01:00
rename_deps.rs Remove more unused code 2021-10-12 14:22:17 -07:00
replace.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
required_features.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
run.rs Update old tests 2022-08-19 10:56:29 +08:00
rust_version.rs Only show advice to use cargo update --precise for non-local packages 2022-08-08 10:37:15 -07:00
rustc.rs Merge branch 'master' into stabilize-crate-type 2022-07-17 13:14:44 -07:00
rustc_info_cache.rs Don't re-use rustc cache when RUSTC_WRAPPER changes 2021-04-16 20:08:11 +03:00
rustdoc.rs Update rustdoc tests with -Cmetadata flag 2021-10-12 19:33:23 -07:00
rustdoc_extern_html.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
rustdocflags.rs test: make tests compatible when force using argfile 2022-04-10 22:23:20 +08:00
rustflags.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
search.rs Improve testing framework for http registries 2022-06-10 16:51:35 -05:00
shell_quoting.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
standard_lib.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
test.rs Rework test error handling 2022-08-27 19:23:30 -07:00
timings.rs Move timing reports to target/cargo-timings 2022-01-30 21:43:52 -08:00
tool_paths.rs Fix test 2022-08-10 23:19:35 +08:00
tree.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
tree_graph_features.rs Do not ignore --features when --all-features is present 2022-01-28 02:49:42 +03:00
unit_graph.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
update.rs Remove useless log deps and add more test for precise update 2022-08-21 17:16:01 +08:00
vendor.rs test: cargo-vendor with path specified 2022-05-13 20:46:33 +08:00
verify_project.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
version.rs Re-enable version_works_without_rustc on windows. 2022-08-02 12:54:16 -07:00
warn_on_failure.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
weak_dep_features.rs Only override published resolver when the workspace is different 2022-08-10 09:26:50 +02:00
workspaces.rs Auto merge of #10784 - tedinski:fix-10783, r=epage 2022-07-16 02:32:05 +00:00
yank.rs feat(yank): Support foo@version like cargo-add 2022-04-19 17:00:42 -05:00