onelson / estuary

33 stars 8 forks source link

Updates the `my-crate` test payload to cover deps. #16

Closed onelson closed 3 years ago

onelson commented 3 years ago

It turns out the "empty" project we used for the initial integration-style tests didn't cover a base case of having dependencies listed by the crate being published.

Turns out, the schema for dependencies differs by the name of one field between the index format and what Cargo sends.

This diff updates the payload we use to test such that it lists some deps:

[package]
name = "my-crate"
version = "0.1.0"
authors = ["Owen Nelson <onelson@gmail.com>"]
edition = "2018"

[dependencies]
serde = "1"
chrono = { version = "0.4", features = ["serde"], optional = true }

[build-dependencies]
uuid = "0.8"

Also included: some notes on using mitmproxy to capture payloads.

refs #12.